Public bug reported:
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:x:113:122::/home/ieslogin/:/bin/bash
# as user ieslogin:
$ chromium --help
cannot update snap namespace: cannot expand mount entry (none
$HOME/.local/share none x-snapd.kind=ensure-dir,x-snapd.must-exist-dir=$HOME 0
0): cannot use invalid home directory "/home/ieslogin/": cannot allow unclean
path
snap-update-ns failed with code 1
# (I've also seen some other errors when trying to use after
rebooting/reinstalling chromium snap)
# login as root and remove the trailing slash of the users home
$ grep ieslogin /etc/passwd
ieslogin:x:113:122::/home/ieslogin:/bin/bash
# as user ieslogin:
$ chromium --help
> proceeds to man page
** Affects: snapd
Importance: Undecided
Status: New
** Affects: ubuntu
Importance: Undecided
Status: New
** Description changed:
- Fix/Workaround: Edit /etc/passwd to remove traling / of home directory
- Snapd should clean the path before using if it's so important to it.
+ 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:x:113:122::/home/ieslogin/:/bin/bash
# as user ieslogin:
$ chromium --help
cannot update snap namespace: cannot expand mount entry (none
$HOME/.local/share none x-snapd.kind=ensure-dir,x-snapd.must-exist-dir=$HOME 0
0): cannot use invalid home directory "/home/ieslogin/": cannot allow unclean
path
snap-update-ns failed with code 1
# (I've also seen some other errors when trying to use after
rebooting/reinstalling chromium snap)
# login as root and remove the trailing slash of the users home
$ grep ieslogin /etc/passwd
ieslogin:x:113:122::/home/ieslogin:/bin/bash
# as user ieslogin:
$ chromium --help
> proceeds to man page
** Also affects: ubuntu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2061876
Title:
snap-update-ns failed with code 1 when user home has a trailing /
To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/2061876/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs