Firefox 和 Chromium 无法再打开。我通过重新安装 snap 修复了 Firefox。但重新安装 chromium-browser 没有帮助。
该错误指向权限问题。文件的正确权限是什么?它们是如何改变的?
chromium-browser
/snap/chromium/2011/snap/command-chain/desktop-launch: line 52: /home/username/.config/user-dirs.dirs: Permission denied
sed: can't read /home/username/.config/user-dirs.dirs: Permission denied
/snap/chromium/2011/snap/command-chain/desktop-launch: line 261: /home/username/.config/user-dirs.dirs: Permission denied
cp: cannot open '/home/username/.config/user-dirs.locale' for reading: Permission denied
/snap/chromium/2011/snap/command-chain/desktop-launch: line 266: /home/username/.config/user-dirs.locale: Permission denied
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
Trace/breakpoint trap (core dumped)
-rw------- 1 username username 633 Apr 24 2020 /home/username/.config/user-dirs.dirs
-rw-rw-r-- 1 username username 5 Apr 24 2020 /home/username/.config/user-dirs.locale
Ubuntu 22.04
答案1
这解决了这个问题;清除是至关重要的
sudo snap remove --purge chromium