When you install snapd from your distribution, things should be arranged so that the directory where it puts binaries from snaps is on your $PATH. Usually you need to restart your session for whatever mechanism to be effective though (in some distributions, just starting a new shell is enough). So if you get “command not found” when trying to run a snap’s apps from the terminal, the simplest thing you should first try is to log out and back in, or reboot.
If that doesn’t fix it, please let us know: tell us your combination of snapd (the output of snap version), distribution (the contents of /etc/os-release), GUI desktop if any, and your shell. We should then be able to tell you how to get things working, first, and we can then look into making sure it works for everybody automatically, second.
Warning: /var/lib/snapd/snap/bin was not found in your $PATH. If you've not
restarted your session since you installed snapd, try doing that.
Please see https://forum.snapcraft.io/t/9469 for more details.
the output of snap version
$ snap version
snap 2.38-2.fc30
snapd 2.38-2.fc30
series 16
fedora 30
kernel 5.0.9-301.fc30.x86_64
Warning: /var/lib/snapd/snap/bin was not found in your $PATH. If you've not
restarted your session since you installed snapd, try doing that.
Please see https://forum.snapcraft.io/t/9469 for more details.
The output of snap version:
snap 2.38
snapd 2.38
series 16
solus 4.0
kernel 5.0.7-114.current
Warning: /snap/bin was not found in your $PATH. If you've not restarted your
session since you installed snapd, try doing that. Please see
https://forum.snapcraft.io/t/9469 for more details.
Output of snap version:
snap 2.38.1
snapd 2.38.1
series 16
debian 9
kernel 4.9.0-9-amd64
Contents of etc/os-release:
(edited some links out so I can post)
Warning: /snap/bin was not found in your $PATH. If you've not restarted your
session since you installed snapd, try doing that. Please see
https://forum.snapcraft.io/t/9469 for more details.
The output of snap version:
snap 2.38
snapd 2.38
series 16
solus 4.0
kernel 5.0.7-114.current
Warning: /snap/bin was not found in your $PATH. If you’ve not restarted your
session since you installed snapd, try doing that. Please see
How to fix snap binaries not found for more details.
Snap version:
snap 2.38.1
snapd 2.38.1
series 16
debian -
kernel 4.19.0-4-amd64
Warning: /var/lib/snapd/snap/bin was not found in your $PATH. If you've not restarted your session
since you installed snapd, try doing that. Please see https://forum.snapcraft.io/t/9469
for more details.
Snap Version
$ snap version
snap 2.38-3.fc30
snapd 2.38-3.fc30
series 16
fedora 30
kernel 5.0.13-300.fc30.x86_64
Warning: /var/lib/snapd/snap/bin was not found in your $PATH. If you've not
restarted your session since you installed snapd, try doing that.
Please see https://forum.snapcraft.io/t/9469 for more details.
Turns out the recently installed FISH shell was the issue. Switching back to BASH fixed it for me. It also fixed an unmentioned issue where installing a Snap app with the error would not create the corresponding shortcut in Gnome.
I suppose adding the missing PATH to my FISH exports might work too. But I coudln’t find a clear cut way of doing that. Those of you experiencing this issue might want to look at your shells.
[root@server ~]# sudo snap install snap-store
Warning: /var/lib/snapd/snap/bin was not found in your $PATH. If you’ve not
restarted your session since you installed snapd, try doing that.
Please see How to fix snap binaries not found for more details.
[root@server ~]# snap version
snap 2.39.1-1.el7
snapd 2.39.1-1.el7
series 16
centos 7
kernel 3.10.0-957.12.2.el7.x86_64
Warning: /snap/bin was not found in your $PATH. If you’ve not restarted your session since you
installed snapd, try doing that. Please see How to fix snap binaries not found for more
details.
Output of snap version:
snap 2.38
snapd 2.38
series 16
solus 4.0
kernel 5.0.7-114.current
Warning: /snap/bin was not found in your $PATH. If you’ve not restarted your
session since you installed snapd, try doing that. Please see How to fix snap binaries not found for more details.
caddy (edge) 1.0.0 from Konstantin Schneeberger (nixberg) installed
mindey@home:~$ snap version
snap 2.39.3
snapd 2.39.3
series 16
debian 9
kernel 4.9.0-9-amd64
Warning: /snap/bin was not found in your $PATH. If you've not restarted your session since you
installed snapd, try doing that. Please see https://forum.snapcraft.io/t/9469 for
more details.
Output of snap version:
snap 2.39.1-3.9
snapd 2.39.1-3.9
series 16
opensuse-tumbleweed 20190704
kernel 5.1.15-1-default
Warning: /var/lib/snapd/snap/bin was not found in your $PATH. If you've not
restarted your session since you installed snapd, try doing that.
Please see https://forum.snapcraft.io/t/9469 for more details.
when I perform
sudo snap install packagename
However, when I use
snap install packagename
gnome asks me to authenticate (as opposed to through the terminal), and it works with no errors. I only get this error when running snap install as root. Although, I haven’t noticed any issues even when this error is returned.
As requested these are my vitals:
snap version
snap 2.39.2-1.fc30
snapd 2.39.2-1.fc30
series 16
fedora 30
kernel 5.1.16-300.fc30.x86_64
sudo snap install snap-store
Warning: /snap/bin was not found in your $PATH. If you’ve not restarted your session since you
installed snapd, try doing that. Please see How to fix snap binaries not found for more
details.
snap-store 20190709.23f439a from Canonical✓ installed
[pve]/home/davec (503): snap version
snap 2.39.3
snapd 2.39.3
series 16
debian 10
kernel 4.19.0-5-amd64
Snap breaks every time I restart and I have to reinstall all of my snaps individually in order to run them after a reboot. This is the process, and the bug: