Hi!
I’m working on a web based user interface over ubuntu gnome on Odroid C4 machine (aarch64).
When I try to install Chromium or Firefox I get:
Run configure hook of "chromium" snap if present (run hook "configure": cannot perform operation: mount --bind /snap/core20/current/etc/nsswitch.conf /tmp/snap.rootfs_o7Dm9B/etc/nsswitch.conf: Permission denied)
Tried to install throught apt
Tried to install throught snap
Tried to install throught dpkg
Tried to purge and installsnapd
Tried to fresh install ubuntu
Tried to move from ubuntu20 to ubuntu22
Tried to make a sudo user and install from GUI
Tried to download the snap package, mount with squashfs and execute snap try
Tried to modify the snap package to remove the configure hook
3 months ago I was able to install Chromium by apt chromium-browser package (now it executes the same snap package)
The only working solution is to install the apt beta since it doesn’t require snapd at all but it have some graphical issues…
I search many forums and found some similar cases, but any working solution.
well, that is not an awful lot of information, could you capture your journal to some pastebin and link it here ?
and as usual when there are problems also the full output of snap version … my wild guess would be that your kernel misses bits and pieces an official ubuntu kernel usually has enabled, but that is hard to tell without more info …
i typically just run journalctl -f, hit enter a few times to clear the screen, then do the action that i want logs for and copy/paste the output back to the empty block i created with hitting space …
hmm, sorry, i was not clear … you should indeed run the journalctl -fwhile executing the command … i.e. from a second terminal or ssh session … your log seems to be captured only after you executed the snap install command
yes, i tried htop and before I followed a possible solution that consists in purge and reinstall snapd and install core with snap install --edge core, so yes, some packages are able to install. Chrome and firefox don’t work…
(and yes, my next question would have been about the 2.57.2 snapd version that only comes from the edge channel currently and is potentially unstable, i’d suggest to switch all your snaps back to the stable channel)
I’m using the root user directly, but I have a not sudo user for the graphical environment. And also I tried to create a new user with sudo, and tried to install from this user.
The folders aren’t symlinks (I saw some posts over Internet with problems related with that and I checked before)
PD: This morning I tried to create a sudo user again, login in GUI and purge-reinstall snapd. Same issues…
sudo mv /var/lib/snapd/apparmor/profiles/usr.lib.snapd.snap-confine.real $HOME/.
(not sure if that is actually necessary, probably not, since : )
sudo systemctl disable apparmor
sudo reboot
sudo apt-get install firefox
NB1 and of course you shoule reanable apparmor if security is a concern
NB2 sudo systemctl stopapparmor won’t work, and the reboot is necessary
NB3 you can also google how to install firefox without snap and that gives another way around the probleme (ie usr.lib.snapd.snap-confine.real is not working properly)