I have found other people talking about this issue, but the solutions did not work for me, so I am here posting about it.

I have Ubuntu 20.04 on a Mid-2009 MBP 8GB Ram, Intel i5 MBP model is a1286

When I log into Ubuntu on start-up I get this error:

Error Found when loading /home/russ/.profile:

/home/russ/.profile: line 28: /bin/brew: is a directory

As a result the session will not be configured correctly.
You should fix the problem as soon as feasible.

It used to say "line 28: /bin/brew: is not a directory" but then I made the directory and it says IT IS a directory, but the error still persists.

Here is what line 28 in .profile says:

eval $(/bin/brew shellenv)

So I am not sure what the issue is. I didn't want to change anything in .profile in case I messed something up bad.

Now I think this is what is causing my OVERALL issue of my laptop running EXTREMELY slow after about 30 of me using it. After that time limit, it lags terribly. I can barely even do anything and half the time it just freezes.

What I have done to try and resolve the problem: Ran commands:

brew update
brew config
brew doctor

And that is it beside creating the directory /bin/brew/ like most other posts online suggested.

What else can I try?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.