I will also suggest there might be something wrong with your test. /var/lib/snapd/snap/bin is in my $PATH and there’s no issue with executing the binaries. I still get the error message during installation of all applications.
snap 2.42.2-1.fc31
snapd 2.42.2-1.fc31
series 16
fedora 31
kernel 5.3.14-300.fc31.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
https://forum.snapcraft.io/t/9469 for more details.
$ snap version
snap 2.42.4
snapd 2.42.4
series 16
linuxmint 3
kernel 4.9.0-11-amd64
The problem here, at least on Raspberry pi systems running Debian, is that sudo does not pick up on paths exported from your user profile. See here for details.
The solution is to add /snap/bin to the list of paths that sudo recognises –
sudo visudo
and then add
/snap/bin/
to the line that starts
secure_paths
in that file. After that, snaps will run with sudo and without errors. Otherwise, commands like
/etc/os-release:
PRETTY_NAME=“Debian GNU/Linux 10 (buster)”
NAME=“Debian GNU/Linux”
VERSION_ID=“10”
VERSION=“10 (buster)”
VERSION_CODENAME=buster
ID=debian
URLs removed as I cannot post three links!
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 ******************* for more
details.
And it said this
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 This link for more
details.
I have Authy installed on CentOS 8 and latest Fedora. Fedora works as expected, but CentOS does not. When I install in CentOS I get
$ sudo snap install authy --beta
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.
The install seems to have worked, I can execute Authy from the command line. Problem is, the application doesn’t show in the application folder and when it does execute it shows a “broken” icon on the panel. I am unable to add it to favorites or launch the application by any other means.
Had to add manually to my .bashrc, without it /snap/bin was not in path:
# Expand $PATH to include the directory where snappy applications go.
snap_bin_path="/snap/bin"
if [ -n "${PATH##*${snap_bin_path}}" -a -n "${PATH##*${snap_bin_path}:*}" ]; then
export PATH=$PATH:${snap_bin_path}
fi
Tried in following terminal emulator: Guake, Gnome terminal (from cinnamon DE)
Getting the following error, despite having the /snap/bin in the path:
~$ sudo snap install phpstorm --classic
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.
phpstorm 2020.1 from jetbrains✓ installed
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 version
snap 2.44.1
snapd 2.44.1
series 16
debian 10
kernel 4.19.0-8-amd64
Contents of etc/os-release:
(edited some links out so I can post)
I’ve tried adding it to myu path manually with no luck, when I echo $PATH it’s there. Applications will install but they are only available via snap run <name>
$ sudo snap install --classic --candidate inkscape
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.
Warning: flag --classic ignored for strictly confined snap inkscape
inkscape (candidate) 1.0rc1 from Inkscape Project (inkscape✓) installed
$ snap --version
snap 2.44.1-2
snapd 2.44.1-2
series 16
kali 2020.2
kernel 5.5.0-kali1-amd64
Warning: /snap/bin was not found in your $PATH....
snap 2.44.3
snapd 2.44.3
series 16
debian 10
kernel 5.4.28-imx6
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
I installed snap on crostini ( docs ), which lets a linux container ( debian 10 ) run on Chrome OS.
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.
snap 2.45
snapd 2.45
series 16
debian 10
kernel 4.19.98-08076-g24ab33fb8e14