Brew not installed error

I get this error on top of my terminal every time I open it: bash: /home/linuxbrew/.linuxbrew/bin/brew: No such file or directory and brew commands don't work (bash: brew: command not found). So, how to install brew on bazzite? I did a fresh from scratch bazzite install only a few days ago but somehow brew did not get installed and there's no ujust brew or ujust brew install command available. bazzite-gnome-nvidia-open:stable Bazzite 40 (FROM Fedora Silverblue) Linux 6.9.12-210.fsync.fc40.x86_64 Spawned on Oct 15 2024
7 Replies
Zeglius
Zeglius5w ago
Just by running the script in the homebrew page should suffice. Though this is weird. Can you run this on your terminal and paste the output pls?:
systemctl status brew-setup.service
systemctl status brew-setup.service
kociol21
kociol215w ago
I'd like to add to this - I've installed Bazzite - specifically Bazzite-Gnome-Nvidia-Open - twice in last week and both times this was exactly what happened. Brew wasn't installed. There was some brew content in these folders but no "bin" directory. Both times installing Brew from script on their site fixed the problem. I also installed KDE version of Bazzite and in this version Brew was installed properly.
iljo
iljo4w ago
Can I jump in on this issue? I also have the same problem, on an existing install
bash-5.2$ systemctl status brew-setup.service
brew-setup.service - Setup Brew
Loaded: loaded (/usr/lib/systemd/system/brew-setup.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: inactive (dead)
Condition: start condition unmet at Mon 2024-10-21 16:43:35 CEST; 10min ago

Oct 21 16:43:35 stchristopher systemd[1]: brew-setup.service - Setup Brew was skipped because of an unmet condition check (ConditionPathExists=!/var/home/linuxbrew/.linu>
lines 1-8/8 (END)
bash-5.2$ systemctl status brew-setup.service
brew-setup.service - Setup Brew
Loaded: loaded (/usr/lib/systemd/system/brew-setup.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: inactive (dead)
Condition: start condition unmet at Mon 2024-10-21 16:43:35 CEST; 10min ago

Oct 21 16:43:35 stchristopher systemd[1]: brew-setup.service - Setup Brew was skipped because of an unmet condition check (ConditionPathExists=!/var/home/linuxbrew/.linu>
lines 1-8/8 (END)
which means brew is installed I think, but then when trying to run brew command's it just doesn' texis /home/linuxbrew/.linuxbrew/bin/brew: line 45: readlink: command not found /home/linuxbrew/.linuxbrew/bin/brew: line 46: dirname: command not found /bin/bash: /var/home/linuxbrew/.linuxbrew/Library/Homebrew/brew.sh: No such file or directory
Zeglius
Zeglius4w ago
Yeah no, manually ran service wont do. I need the logs of a fresh installed one
/bin/bash: /var/home/linuxbrew/.linuxbrew/Library/Homebrew/brew.sh: No such file or directory
/bin/bash: /var/home/linuxbrew/.linuxbrew/Library/Homebrew/brew.sh: No such file or directory
Also there is nothing like that in my side. Strange
Linus Xu
Linus Xu4w ago
Readlink and dirname failing is strange enough tho…?
Zeglius
Zeglius4w ago
Oh, missed that. That's for sure way too strange Is that from the systemctl status or something?. There is no way dirname or readlink is not available in a normal bash session
iljo
iljo4w ago
that's the error I get when running the brew command in the terminal
Want results from more Discord servers?
Add your server