/snap/bin path cannot be found after installing core snap

Bug #1663174 reported by XiaoGuo, Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Invalid
Undecided
Unassigned

Bug Description

I follow the following instructions to install core on 14.04 system

1) sudo apt-get install snapd
2) sudo snap install hello-world

In step 2, it installs the "core" and "hello-world" snaps at the same time. Finally, I run

$ hello-world

it shows the command cannot be found. I rebooted my machine, and I found that it was the same problem. The /snap/bin path is missing in the PATH.

liuxg@liuxg:/snap/bin$ ./hello-world
ERROR: ld.so: object '/lib/$LIB/liblsp.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/lib/$LIB/liblsp.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Hello World!

My desktop info is:

liuxg@liuxg:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

liuxg@liuxg:~$ snap list
Name Version Rev Developer Notes
core 16.04.1 888 canonical -
hello-world 6.3 27 canonical -

Tags: trusty
Revision history for this message
Thomas Voß (thomas-voss) wrote :

I fail to reproduce the issue you are reporting. PATH is adjusted after logout/login and after reboot. I also fail to reproduce the ERROR messages from ld.so.

Are you running this in a VM? Could you pastebin the output of ls /etc/profile.d?

tags: added: trusty
Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

liuxg@liuxg:/$ ls /etc/profile.d
appmenu-qt5.sh bash_completion.sh vte.sh

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

Sorry, I reinstalled my 14.04 system, and it worked fine. I tested it in a real hardware instead of a VM.

Changed in snapd:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.