Search path not updated after snap install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Search paths are for snaps are not in effect after snap installation. Observed on
http://
http://
$ sudo apt-get install hello
$ hello
Hello, world!
$ sudo snap install hello
hello 2.12 from Canonical✓ installed
$ hello
Hello, world!
$ which hello
/usr/bin/hello
$ /snap/bin/hello
Hello, world!
$ sudo apt-get purge hello
$ hello
-bash: /usr/bin/hello: No such file or directory
After logout and login
$ hello
Hello, world!
$ snap --version
snap 2.56-dirty
snapd 2.56-dirty
series 16
ubuntu 20.04
kernel 5.15.0-1018-generic
My expectation is that after uninstall /usr/bin/hello /snap/bin/hello is in the search path.
This bug has been reported on the Ubuntu ISO testing tracker.
A list of all reports related to this bug can be found here: /iso.qa. ubuntu. com/qatracker/ reports/ bugs/1988131
https:/