How to fix snap binaries not found

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.

sudo cat /\etc/os-release

PRETTY_NAME=“Kali GNU/Linux Rolling”
NAME=“Kali GNU/Linux”
ID=kali
VERSION=“2020.2”
VERSION_ID=“2020.2”
VERSION_CODENAME=“kali-rolling”
ID_LIKE=debian
ANSI_COLOR=“1;31”
HOME_URL=“newuserlimit”
SUPPORT_URL=“newuserlimit”
BUG_REPORT_URL=“newuserlimit”

sudo snap version

snap 2.45
snapd 2.45
series 16
kali 2020.2
kernel 5.6.0-kali2-amd64

As pointed earlier, the applications installed via snap need to be run as

snap run AppName

Additionally for example
snap run brave

[8668:8668:0607/110358.436256:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I’m aborting now. You need to make sure that /snap/brave/69/opt/brave.com/brave/chrome-sandbox is owned by root and has mode 4755.
/snap/brave/69/opt/brave.com/brave/brave-browser: line 48: 8668 Trace/breakpoint trap “$HERE/brave” “$@”

ryan@pocketwee:~$ sudo snap install i2pd
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.

i2pd 2.32.1 from Darknet Villain (supervillain) installed

ryan@pocketwee:~$ snap version
snap    2.45
snapd   2.45
series  16
debian  10
kernel  4.19.0-9-amd64

ryan@pocketwee:~$ cat /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
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

But the snapd version I had installed from Debian is:

ryan@pocketwee:~$ apt list snapd
Listing... Done
snapd/stable,now 2.37.4-1+b1 amd64 [installed]

Somewhere online I saw instructions to run ‘snap install snapd’, and that installed the newer version. Is the problem a conflict between the two versions?

I don’t know what your talking about but I’m glad you fixed the issue, im on Centos7 and have the same problem.

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
for more details.

snap-store 3.31.1+git187.84b64e0b from Canonical✓ installed
[orca@orcacomputers ~]$ snap version
snap 2.45-1.el7
snapd 2.45-1.el7
series 16
centos 7
kernel 3.10.0-1062.18.1.el7.x86_64
[orca@orcacomputers ~]$ cat /etc/os-release
NAME=“CentOS Linux”
VERSION=“7 (Core)”
ID=“centos”
ID_LIKE=“rhel fedora”
VERSION_ID=“7”
PRETTY_NAME=“CentOS Linux 7 (Core)”
ANSI_COLOR=“0;31”
CPE_NAME=“cpe:/o:centos:centos:7”
HOME_URL=“https://www.centos.org/
BUG_REPORT_URL=“https://bugs.centos.org/

CENTOS_MANTISBT_PROJECT=“CentOS-7”
CENTOS_MANTISBT_PROJECT_VERSION=“7”
REDHAT_SUPPORT_PRODUCT=“centos”
REDHAT_SUPPORT_PRODUCT_VERSION=“7”

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.

ryan@pocketwee:~$ snap version
snap 2.45.1
snapd 2.45.1
series 16
debian 10
kernel 4.19.0-9-amd64

ryan@pocketwee
OS: Debian 10 buster
Kernel: x86_64 Linux 4.19.0-9-amd64
Uptime: 5d 21m
Packages: 2095
Shell: bash 5.0.3
Resolution: 1920x1080
WM: OpenBox
WM Theme: Nightmare-02
GTK Theme: Breeze-Dark [GTK2/3]
Icon Theme: breeze-dark
Font: Sans 12
CPU: Intel Core i3-4010U @ 4x 1.7GHz [27.8°C]
GPU: intel
RAM: 1528MiB / 7874MiB

$ sudo snap install postman
[sudo] password for xxx: 
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.

postman 7.27.1 from Postman, Inc. (postman-inc✓) installed
$ snap version
snap    2.45.1
snapd   2.45.1
series  16
deepin  15.11
kernel  4.15.0-30deepin-generic
$ cat /etc/os-release
PRETTY_NAME="Deepin 15"
NAME="Deepin"
VERSION_ID="15.11"
VERSION="15.11"
ID=deepin
HOME_URL="https://www.deepin.org/"
BUG_REPORT_URL="http://feedback.deepin.org/feedback/"
             ............                xxx@xxx 
         .';;;;;.       .,;,.            ------------- 
      .,;;;;;;;.       ';;;;;;;.         OS: Deepin 15.11 x86_64 
    .;::::::::'     .,::;;,''''',.       Model: 860-001np 1.04 
   ,'.::::::::    .;;'.          ';      Kernel: 4.15.0-30deepin-generic 
  ;'  'cccccc,   ,' :: '..        .:     Uptime: 9 minutes 
 ,,    :ccccc.  ;: .c, '' :.       ,;    Packages: 1656 
.l.     cllll' ., .lc  :; .l'       l.   Shell: bash 4.4.12 
.c       :lllc  ;cl:  .l' .ll.      :'   Resolution: 2560x1440, 2560x1440 
.l        'looc. .   ,o:  'oo'      c,   DE: Deepin 
.o.         .:ool::coc'  .ooo'      o.   WM: KWin 
 ::            .....   .;dddo      ;c    Theme: Deepin [GTK2/3] 
  l:...            .';lddddo.     ,o     Icons: Deepin [GTK2/3] 
   lxxxxxdoolllodxxxxxxxxxc      :l      Terminal: deepin-terminal 
    ,dxxxxxxxxxxxxxxxxxxl.     'o,       CPU: Intel i7-6700K (8) @ 4.2GHz 
      ,dkkkkkkkkkkkkko;.    .;o;         GPU: NVIDIA GeForce GTX 980 Ti 
        .;okkkkkdl;.    .,cl:.           Memory: 2313MB / 32094MB 
            .,:cccccccc:,.                
                                         ████████████████████████ 
                                          

What is the solution to fix this in centos 7? This happens every time I have tried to use snap on multiple installs.

Selinux is disabled. Below is more info requested:

[root@workstation ~]# snap install yq
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.

yq 3.3.1 from Mike Farah (mikefarah) installed
[root@workstation ~]# which yq
/usr/bin/which: no yq in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/git/bin:/root/bin)
[root@workstation ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

[root@workstation ~]# snap version
snap    2.45-1.el7
snapd   2.45-1.el7
series  16
centos  7
kernel  3.10.0-1127.13.1.el7.x86_64

I rebooted my system after install snap and /var/lib/snapd/bin was not found on my $PATH

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](https://forum.snapcraft.io/t/9469)
     for more details.

I’m here through this link on warning

Snap version

snap    2.45.3.1-1
snapd   2.45.3.1-1
series  16
arch    -
kernel  5.7.12-arch1-1

/etc/os-release

NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://www.archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux

System

             `ooo/                   OS: Arch Linux x86_64
            `+oooo:                  Host: A65 MUV / G1550 MUV Standard
           `+oooooo:                 Kernel: 5.7.12-arch1-1
           -+oooooo+:                Uptime: 41 mins
         `/:-:++oooo+:               Packages: 552 (pacman), 3 (snap)
        `/++++/+++++++:              Shell: fish 3.1.2
       `/++++++++++++++:             Resolution: 1920x1080
      `/+++ooooooooooooo/`           WM: i3
     ./ooosssso++osssssso+`          Theme: Adwaita [GTK3]
    .oossssso-````/ossssss+`         Icons: Adwaita [GTK3]
   -osssssso.      :ssssssso.        Terminal: alacritty
  :osssssss/        osssso+++.       CPU: Intel i7-9750H (12) @ 4.500GHz
 /ossssssss/        +ssssooo/-       GPU: Intel UHD Graphics 630
`/ossssso+/:-        -:/+osssso+-    GPU: NVIDIA GeForce GTX 1660 Ti Mobile
`+sso+:-`                 `.-/+oso:  Memory: 1410MiB / 15866MiB

I’m posting here after trying many tutorial on any forums to add de snap bin to $PATH but unsuccessfully

snap install certbot --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.

certbot 1.7.0 from Certbot Project (certbot-eff✓) installed

cat /etc/os-release

NAME="KDE neon"
VERSION="5.19"
ID=neon
ID_LIKE="ubuntu debian"
PRETTY_NAME="KDE neon User Edition 5.19"
VARIANT="User Edition"
VERSION_ID="20.04"
HOME_URL="https://neon.kde.org/"
SUPPORT_URL="https://neon.kde.org/"
BUG_REPORT_URL="https://bugs.kde.org/"
LOGO=start-here-kde-neon
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

snap --version

snap    2.45.3.1
snapd   2.45.3.1
series  16
neon    20.04
kernel  5.4.0-42-generic

screenfetch

              `..---+/---..`                root@laptop-acreat-01
          `---.``   ``   `.---.`            OS: Neon 20.04 focal
       .--.`        ``        `-:-.         Kernel: x86_64 Linux 5.4.0-42-generic
     `:/:     `.----//----.`     :/-        Uptime: 44m
    .:.    `---`          `--.`    .:`      Packages: 3057
   .:`   `--`                .:-    `:.     Shell: bash 5.0.17
  `/    `:.      `.-::-.`      -:`   `/`    Resolution: 3840x1080
  /.    /.     `:++++++++:`     .:    .:    DE: KDE 5.72.0
 `/    .:     `+++++++++++/      /`   `+`   WM: KWin
 /+`   --     .++++++++++++`     :.   .+:   Disk: 166G / 477G (37%)
 `/    .:     `+++++++++++/      /`   `+`   CPU: Intel Core i7-9750H @ 12x 4.5GHz [64.0°C]
  /`    /.     `:++++++++:`     .:    .:    GPU: GeForce RTX 2060
  ./    `:.      `.:::-.`      -:`   `/`    RAM: 4205MiB / 15931MiB
   .:`   `--`                .:-    `:.    
    .:.    `---`          `--.`    .:`     
     `:/:     `.----//----.`     :/-       
       .-:.`        ``        `-:-.        
          `---.``   ``   `.---.`           
              `..---+/---..`               

neofetch

             `..---+/---..`                root@laptop-acreat-01 
         `---.``   ``   `.---.`            --------------------- 
      .--.`        ``        `-:-.         OS: KDE neon User Edition 5.19 x86_64 
    `:/:     `.----//----.`     :/-        Host: 81SX Legion Y540-15IRH 
   .:.    `---`          `--.`    .:`      Kernel: 5.4.0-42-generic 
  .:`   `--`                .:-    `:.     Uptime: 46 mins 
 `/    `:.      `.-::-.`      -:`   `/`    Packages: 3103 (dpkg), 39 (flatpak), 12 (snap) 
 /.    /.     `:++++++++:`     .:    .:    Shell: bash 5.0.17 
`/    .:     `+++++++++++/      /`   `+`   Resolution: 1920x1080, 1920x1080 
/+`   --     .++++++++++++`     :.   .+:   DE: KDE5 
`/    .:     `+++++++++++/      /`   `+`   WM: KWin 
 /`    /.     `:++++++++:`     .:    .:    Theme: Adwaita [GTK3] 
 ./    `:.      `.:::-.`      -:`   `/`    Icons: Adwaita [GTK3] 
  .:`   `--`                .:-    `:.     Terminal: konsole 
   .:.    `---`          `--.`    .:`      CPU: Intel i7-9750H (12) @ 4.500GHz 
    `:/:     `.----//----.`     :/-        GPU: NVIDIA GeForce RTX 2060 Mobile 
      .-:.`        ``        `-:-.         Memory: 3876MiB / 15931MiB 
         `---.``   ``   `.---.`
             `..---+/---..`                                        
                                                                   

Saw this solution on github (but can’t get the link)

you can add the path into .bashrc file

$ echo ‘export PATH=$PATH:/snap/bin’ >> ~/.bashrc

open new terminal or execute this command

$ source ~/.bashrc

snap version
snap    2.38-2.fc28
snapd   2.38-2.fc28
series  16
fedora  28
kernel  5.0.13-100.fc28.x86_64

cat /etc/os-release
NAME=Fedora
VERSION="28 (Workstation Edition)"
ID=fedora
VERSION_ID=28
VERSION_CODENAME=""
PLATFORM_ID="platform:f28"
PRETTY_NAME="Fedora 28 (Workstation Edition)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:28"
HOME_URL="https://fedoraproject.org/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=28
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=28
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edi


 neofetch
      /:-------------:\          
   :-------------------::        ---------------- 
 :-----------/shhOHbmp---:\      OS: Fedora release 28 (Twenty Eight) x86_6 

/-----------omMMMNNNMMD —: Host: HP ProBook 450 G3
:-----------sMMMMNMNMP. —: Kernel: 5.0.13-100.fc28.x86_64
:-----------:MMMdP------- —\ Uptime: 15 mins
,------------:MMMd-------- —: Packages: 2289
:------------:MMMd------- .—: Shell: bash 4.4.23
:---- oNMMMMMMMMMNho .----: Resolution: 1280x720, 1920x1080
:-- .+shhhMMMmhhy++ .------/ DE: GNOME 3.28.3
:- -------:MMMd--------------: Theme: Borealis-Green [GTK2/3]
:- --------/MMMd-------------; Icons: Zafiro-icons-0.6 [GTK2/3]
:- ------/hMMMy------------: Terminal: gnome-terminal
:-- :dMNdhhdNMMNo------------; CPU: Intel i7-6500U (4) @ 3.100GHz
:—:sdNMMMMNds:------------: GPU: Intel HD Graphics 520
:------:://:-------------:: Memory: 5074MiB / 7869MiB
:---------------------://

Hello, sharing my experience too!

Everything is installed and working:

rik@devrikx:~$ echo $PATH
~/.npm-global/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin

However, I’m still getting the warning (and I’ve restarted several times):

rik@devrikx:~$ sudo snap install flutter --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 How to fix snap binaries not found for more
details.

flutter 0+git.142868f from Flutter Team✓ installed

Snap version:

rik@devrikx:~$ snap version
snap    2.45.3.1
snapd   2.45.3.1
series  16
debian  -
kernel  5.7.0-2-amd64

Contents of /etc/os-release:

rik@devrikx:~$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux bullseye/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Lastly:

  • GUI Desktop -> GNOME
    rik@devrikx:~$ gnome-shell --version
    GNOME SHELL 3.36.4
    

Hope that helps!

This is shit, compared to sudo snap install skype --classicand before adding up sudo visudo uncommenting hardcoded path, adding /snap/bin to it, it works. Like a charm, dudes.

Sharing my experience while doing this nextcloud.manual-install
Error:
Command ‘nextcloud.manual-install’ is available in ‘/snap/bin/nextcloud.manual-install’
The command could not be located because ‘/snap/bin’ is not included in the PATH environment variable.

snap version

snap 2.45.3.1
snapd 2.45.3.1
series 16
ubuntu 20.04
kernel 5.4.0-42-generic

cat /etc/os-release

NAME=“Ubuntu”
VERSION=“20.04.1 LTS (Focal Fossa)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=“Ubuntu 20.04.1 LTS”
VERSION_ID=“20.04”

VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

  .-/+oossssoo+/-.               root@theserver
    `:+ssssssssssssssssss+:`           --------------
  -+ssssssssssssssssssyyssss+-         OS: Ubuntu 20.04.1 LTS x86_64
.ossssssssssssssssssdMMMNysssso.       Host: HP ProBook 650 G1 A3009DD10303

/ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 5.4.0-42-generic
+ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 39 mins
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 749 (dpkg), 7 (snap)
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.0.17
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 1366x768
ossyNMMMNyMMhsssssssssssssshmmmhssssssso CPU: Intel i5-4200M (4) @ 3.100GHz
ossyNMMMNyMMhsssssssssssssshmmmhssssssso GPU: Intel 4th Gen Core Processor
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Memory: 768MiB / 7874MiB
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
/sssssssshNMMMyhhyyyyhdNMMMNhssssssss/
+sssssssssdmydMMMMMMMMddddyssssssss+
/ssssssssssshdmNNNNmyNMMMMhssssss/
.ossssssssssssssssssdMMMNysssso.
-+sssssssssssssssssyyyssss±
:+ssssssssssssssssss+:
.-/+oossssoo+/-.

snap 2.45.3.1
snapd 2.45.3.1
series 16
debian 10
kernel 4.19.0-10-amd64

PRETTY_NAME=“Debian GNU/Linux 10 (buster)”
NAME=“Debian GNU/Linux”
VERSION_ID=“10”
VERSION=“10 (buster)”
VERSION_CODENAME=buster
ID=debian
HOME_URL=“https://www.debian.org/
SUPPORT_URL=“https://www.debian.org/support
BUG_REPORT_URL=

     _,met$$$$$gg.           xxxx@xxxxx
  ,g$$$$$$$$$$$$$$$P.        OS: Debian 10 buster
,g$$P""       """Y$$.".      Kernel: x86_64 Linux 4.19.0-10-amd64

,$$P’ $$$. Uptime: 26m ',$$P ,ggs. $$b: Packages: 1958
d$$' ,$P"' . $$$ Shell: bash 5.0.3 $$P d$' , $$P Resolution: 1366x768 $$: $$. - ,d$$' DE: GNOME $$\; Y$b._ _,d$P' WM: GNOME Shell Y$$. ."Y$$$$P"' WM Theme: $$b "-.__ GTK Theme: Adwaita [GTK2/3]
Y$$ Icon Theme: Adwaita Y$$. Font: Cantarell 11
$$b. CPU: Intel Celeron N4000 @ 2x 2.6GHz [43.0°C] Y$$b. GPU: intel
`"Y$b._ RAM: 1471MiB / 3768MiB

$ snap version

snap 2.45.3.1-1.fc32
snapd 2.45.3.1-1.fc32
series 16
fedora 32
kernel 5.8.7-200.fc32.x86_64

$ cat /etc/os-release

NAME=Fedora
VERSION="32 (KDE Plasma)"
ID=fedora
VERSION_ID=32
VERSION_CODENAME=""
PLATFORM_ID="platform:f32"
PRETTY_NAME="Fedora 32 (KDE Plasma)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:32"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f32/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=32
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=32
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="KDE Plasma"
VARIANT_ID=kde

$ screenfetch

           /:-------------:\          chaos@flaptop.chaosnet
        :-------------------::        OS: Fedora 
      :-----------/shhOHbmp---:\      Kernel: x86_64 Linux 5.8.7-200.fc32.x86_64
    /-----------omMMMNNNMMD  ---:     Uptime: 12m
   :-----------sMMMMNMNMP.    ---:    Packages: 1785
  :-----------:MMMdP-------    ---\   Shell: bash 5.0.17
 ,------------:MMMd--------    ---:   Resolution: 1920x1080
 :------------:MMMd-------    .---:   DE: KDE 5.70.0 / Plasma 5.18.5
 :----    oNMMMMMMMMMNho     .----:   WM: KWin
 :--     .+shhhMMMmhhy++   .------/   GTK Theme:  [GTK2/3]
 :-    -------:MMMd--------------:    Disk: 8.2G / 131G (7%)
 :-   --------/MMMd-------------;     CPU: Intel Core i7-6700HQ @ 8x 3.5GHz [39.0°C]
 :-    ------/hMMMy------------:      GPU: Mesa Intel(R) HD Graphics 530 (SKL GT2)
 :-- :dMNdhhdNMMNo------------;       RAM: 2895MiB / 15886MiB
 :---:sdNMMMMNds:------------:       
 :------:://:-------------::         
 :---------------------://           

$ sudo snap install hello-world

2020-09-14T12:27:05-07:00 INFO Waiting for automatic snapd restart…
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.

hello-world 6.4 from Canonical✓ installed

Hello, I’m in Debian Buster Xfce and /snap/bin is not in my $PATH either.

snap version

snap    2.47
snapd   2.47
series  16
debian  10
kernel  4.19.0-11-amd64

/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
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
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.47
snapd   2.47
series  16
debian  10
kernel  4.19.0-10-amd64

the contents of /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
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Desktop, shell, etc:

       _,met$$$$$gg.          noh@orang 
    ,g$$$$$$$$$$$$$$$P.       --------- 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 10 (buster) x86_64 
 ,$$P'              `$$$.     Host: 20078 Lenovo G470 
',$$P       ,ggs.     `$$b:   Kernel: 4.19.0-10-amd64 
`d$$'     ,$P"'   .    $$$    Uptime: 13 mins 
 $$P      d$'     ,    $$P    Packages: 2778 (dpkg), 3 (snap) 
 $$:      $$.   -    ,d$$'    Shell: bash 5.0.3 
 $$;      Y$b._   _,d$P'      Resolution: 1366x768 
 Y$$.    `.`"Y$$$$P"'         DE: Xfce 
 `$$b      "-.__              WM: Xfwm4 
  `Y$$                        WM Theme: WhiteSur-light 
   `Y$$.                      Theme: WhiteSur-light [GTK2], Adwaita [GTK3] 
     `$$b.                    Icons: WhiteSur [GTK2], Adwaita [GTK3] 
       `Y$$b.                 Terminal: xfce4-terminal 
          `"Y$b._             Terminal Font: Monospace 11 
              `"""            CPU: Intel i3-2350M (4) @ 2.300GHz 
                              GPU: AMD ATI Radeon HD 6370M/7370M 
                              GPU: Intel 2nd Generation Core Processor Family 
                              Memory: 1332MiB / 3889MiB
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.48
snapd 2.48
series 16
debian -
kernel 5.9.0-4-amd64

$ cat /etc/os-release
PRETTY_NAME=“Debian GNU/Linux bullseye/sid”
NAME=“Debian GNU/Linux”
ID=debian

Shell is Bash 5.1-1. GUI is XFCE4, 4.14.

I’ve found that I get this error when installing hello-world with ‘snap install hello-world’, from xfce-term, but I don’t get the error from a console window. (That’s with ‘snap remove hello-world’ between tests.) Furthermore, whichever I used to install hello-world, hello-world executes on the console window, but not in xfce-term.

I think this is related to this bug report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931776#15

Hi,

So, snapd sets $PATH and $XDG_DATA_DIRS in /etc/profile.d/apps-bin-path.sh, but /etc/profile
and /etc/profile.d aren’t used in the graphical logins in Debian. [1]

Older versions of snapd also had set $XDG_DATA_DIRS in /etc/X11/Xsession.d/65snappy, which
was used in the X sessions. But that was dropped upstream in [2], which happened some time
after Stretch was released, but before Buster was released.

I guess this is the cause of the problem…

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     2.49-2
snapd    2.49-2
series   16
manjaro  -
kernel   5.10.19-1-MANJARO

/etc/os-release

NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch
BUILD_ID=rolling
PRETTY_NAME="Manjaro Linux"
ANSI_COLOR="32;1;24;144;200"
HOME_URL="https://manjaro.org/"
DOCUMENTATION_URL="https://wiki.manjaro.org/"
SUPPORT_URL="https://manjaro.org/"
BUG_REPORT_URL="https://bugs.manjaro.org/"
LOGO=manjarolinux

Using KDE’s Plasma