snap-update-ns failed with code 1 when user home has a trailing /
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
New
|
Undecided
|
Unassigned | ||
Ubuntu |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Fix/Workaround: Edit /etc/passwd to remove trailing / of home directory
Snap should probably clean the path before using if it's so important to it.
---
Situation and fix:
$ uname -a
Linux proxy 6.5.0-27-generic #28~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 15 10:51:06 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
$ snap list
Name Version Rev Tracking Publisher Notes
bare 1.0 5 latest/stable canonical✓ base
certbot 2.10.0 3700 latest/stable certbot-eff✓ classic
chromium 123.0.6312.122 2821 latest/stable canonical✓ -
core 16-2.61.2 16928 latest/stable canonical✓ core
core20 20240227 2264 latest/stable canonical✓ base
core22 20240111 1122 latest/stable canonical✓ base
cups 2.4.7-8 1041 latest/stable openprinting✓ -
gnome-42-2204 0+git.510a601 176 latest/stable canonical✓ -
gtk-common-themes 0.1-81-g442e511 1535 latest/stable canonical✓ -
snapd 2.62 21465 latest/stable canonical✓ snapd
$ grep ieslogin /etc/passwd
ieslogin:
# as user ieslogin:
$ chromium --help
cannot update snap namespace: cannot expand mount entry (none $HOME/.local/share none x-snapd.
snap-update-ns failed with code 1
# (I've also seen some other errors when trying to use after rebooting/
# login as root and remove the trailing slash of the users home
$ grep ieslogin /etc/passwd
ieslogin:
# as user ieslogin:
$ chromium --help
> proceeds to man page
Status changed to 'Confirmed' because the bug affects multiple users.