我在网上找到的关于此故障的主题非常少,因此我无法进行调试或调查。几个月前,在启动过程中,我开始看到此错误:
* Starting Pre-cache and pre-load apparmor profiles [fail]
我无法确定它是否在特定升级后启动。我在使用 Ubuntu 14.10。
cat /var/log/upstart/apparmor.log
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
AppArmor parser error for /etc/apparmor.d/usr.bin.mediascanner-service-2.0 in /etc/apparmor.d/usr.bin.mediascanner-service-2.0 at line 14: Could not open '/usr/share/apparmor/hardware/audio.d'
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
AppArmor parser error for /etc/apparmor.d/usr.bin.mediascanner-service-2.0 in /etc/apparmor.d/usr.bin.mediascanner-service-2.0 at line 14: Could not open '/usr/share/apparmor/hardware/audio.d'
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
AppArmor parser error for /etc/apparmor.d/usr.bin.mediascanner-service-2.0 in /etc/apparmor.d/usr.bin.mediascanner-service-2.0 at line 14: Could not open '/usr/share/apparmor/hardware/audio.d'
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
AppArmor parser error for /etc/apparmor.d/usr.bin.mediascanner-service-2.0 in /etc/apparmor.d/usr.bin.mediascanner-service-2.0 at line 14: Could not open '/usr/share/apparmor/hardware/audio.d'
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
答案1
这是 mediascanner2.0 中的一个错误,我已经提交错误 1443693为你。
作为一种解决方法,您可以运行:
sudo mkdir -p /usr/share/apparmor/hardware/{audio,graphics,video}.d
或者清除mediascanner2.0
如果您不需要该包(假设这是一台台式机而不是一部手机)。
答案2
尝试降级到 14.04,应该可行。
如果您想要 14.10,请尝试备份所有数据,然后使用 CD 或闪存驱动器进行全新安装。