2020-02-04 17:14:11 |
Alfonso Sanchez-Beato |
description |
Refreshing a snap using core18 to one using core16 makes the apps in the snap fail due to problems loading libraries. For instance, installing network-manager snap from the 1.10 track, that has core18 as base:
$ snap install --channel=1.10 network-manager
$ nmcli
...
If we refresh to the default track, that has core16 as base:
$ snap refresh --stable network-manager
$ nmcli
/snap/network-manager/516/usr/bin/nmcli: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory
$ snap run --shell network-manager.nmcli
<user@dev>:/home/admin$ ls /snap/core/current/lib/arm-linux-gnueabihf/libreadline.so.6
/snap/core/current/lib/arm-linux-gnueabihf/libreadline.so.6
<user@dev>:/home/admin$ ls /lib/arm-linux-gnueabihf/libreadline.so.6
ls: cannot access '/lib/arm-linux-gnueabihf/libreadline.so.6': No such file or directory
It looks like /lib/arm-linux-gnueabihf/ does not contain the right libraries. Rebooting the system solves the problem. |
Refreshing a snap using core18 to one using core16 makes the apps in the snap fail due to problems loading libraries. For instance, installing network-manager snap from the 1.10 track, that has core18 as base:
$ snap install --channel=1.10 network-manager
$ nmcli
...
If we refresh to the default track, that has core16 as base:
$ snap refresh --stable network-manager
$ nmcli
/snap/network-manager/516/usr/bin/nmcli: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory
$ snap run --shell network-manager.nmcli
<user@dev>:/home/admin$ ls /snap/core/current/lib/arm-linux-gnueabihf/libreadline.so.6
/snap/core/current/lib/arm-linux-gnueabihf/libreadline.so.6
<user@dev>:/home/admin$ ls /lib/arm-linux-gnueabihf/libreadline.so.6
ls: cannot access '/lib/arm-linux-gnueabihf/libreadline.so.6': No such file or directory
It looks like /lib/arm-linux-gnueabihf/ does not contain the right libraries. Rebooting the system solves the problem.
This has been detected on a UC16 system. |
|