1

I've installed a command called gsutil on my Ubuntu VM with the command

sudo snap install google-cloud-sdk --classic

However, when running gsutil I started an unrelated existing program of the same name (GSutil, a GrandStream BudgeTone phone backup, restore and reboot utility), which was stored in usr/bin/gsutil. Following advice from here I ran

sudo dpkg --purge gsutil

which removed it. But now when I run gsutil I get

-bash: /usr/bin/gsutil: No such file or directory

With which gsutil I get

/snap/bin/gsutil

And I tried to make a symlink with

ln -s /snap/bin/gsutil gsutil

but still get the same results. Why can't bash find it? Both locations are in my PATH: echo $PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

0 Answers0