I’m having some issues with homebrew on my Aurora computer. Every time I open the terminal, I get “bash: /home/linuxbrew/.linuxbrew/bin/brew: No such file or directory” printed. I also recently tried doing “brew install mods” as per the documentation here but got the error “bash: brew: command not found”, despite the fact that from what I gather I should have had homebrew automatically installed. All of this seems pretty much identical to this old closed thread, but it’s still unclear to me how to resolve this. Anyone have any ideas for what I could do?
As far es I know, you have to install it first.
Either ujust install brew or ujust install homebrew. Just type ujust in the terminal and press Enter. There you find the proper spelling.
Oh, I see that this was part of bazzite. Sorry, but then I have no clue.
Hm, for some reason your brew disappeared. On a fresh Aurora (non-DX) install, I can use brew just fine. Could you please try running the brew install command from brew.sh and report back?
My Aurora VM:
I would start by checking the paths in their dotfiles before trying a reinstall.
Could you please try running the brew install command from brew.sh
I found brew.sh in etc/profile.d and ran it in the terminal, but nothing happened. I then tried doing so as administrator, and got the following error: “Warning: Could not find ‘/home/[MY USER]/.cache/kioexec/krun/30955_0/brew.sh’, starting ‘/bin/bash’ instead. Please check your profile settings.” I’m a little unsure if this is what you meant to do, please let me know if I messed something up.
I would start by checking the paths in their dotfiles before trying a reinstall.
I’m not sure exactly which dotfile would be most relevant - as I’m seeing something everytime I open the terminal I thought perhaps .bashrc - I have that copied below.
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then
. "$rc"
fi
done
fi
unset rc
Thank you everyone for your help!