发行版升级冻结


5

从Ubuntu 10.04升级到10.10时,发行版升级程序在通知我更改后冻结,/etc/apparmor.d/usr.bin.mysqld并要求我保留旧文件或接受新更改(我接受了它们)。

终端说:

Configuration file `/etc/apparmor.d/usr.sbin.mysqld'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** usr.sbin.mysqld (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/apparmor.d/usr.sbin.mysqld ...

此后大约2个小时,该程序什么都没做,现在我不知道该怎么办。我可以退出程序并重新启动它吗?还是我应该采取其他措施?

但是它确实将'/etc/apparmor.d/usr.sbin.mysqld'更改为新版本,但是仍然冻结...

Answers:


2

从10.04升级到10.10时,我也遇到此错误。但是,未安装AppArmor。因此,以下内容为我解决了该问题:

sudo /etc/init.d/mysql stop

从单独的SSH会话运行此命令后,升级将继续。


1

这非常有用。我必须使用此命令来重新启动升级

sudo /etc/init.d/apparmor teardown 

1

我遇到了同样的问题,但是对于杯子来说,升级就挂在了升级杯子上(已经剩下32分钟一个半小时了)。

为了解决这个问题,我做到了(在终端中)

sudo service cups stop

并且升级继续(并且在我撰写本文时正在运行)。


0

首先尝试使用以下命令停止Apparmor:

sudo /etc/init.d/apparmor stop
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.