系统是 Ubuntu 22.04 x86
发现无法启动 Firefox,输出:
missing profile snap.firefox.firefox.
Please make sure that the snapd.apparmor service is enabled and started
执行 sudo systemctl status snapd.apparmor.service:
willy69wu31 snapd-apparmor[398]: AppArmor parser error for
/var/lib/snapd/apparmor/profiles/snap.firefox.geckodriver in profile
/var/lib/snapd/apparmor/profiles/snap.firefox.geckodriver at line 3281:
syntax error, unexpected TOK_END_OF_RULE, expecting TOK_MODE
willy69wu31 snapd-apparmor[398]: AppArmor parser error for
/var/lib/snapd/apparmor/profiles/snap.firefox.firefox in profile
/var/lib/snapd/apparmor/profiles/snap.firefox.firefox at line 3232:
syntax error, unexpected TOK_END_OF_RULE, expecting TOK_MODE
更奇怪的是,执行 sudo systemctl restart snapd.apparmor.service 后
服务就从 failed 变成 active 了,Firefox 也能启动了
重开机后又 failed 了,打不开 Firefox
请问有什么方法可以解决,例如重设这些 profiles 档?
不知道有无相关,我是用 xrdp 登入桌面系统