2024-04-16 16:32:36 |
Dionysius |
description |
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.
---
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 |
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 |
|