最近从 14.04 升级到 16.04 后,无法删除或重新安装 mysql 和其他软件包

最近从 14.04 升级到 16.04 后,无法删除或重新安装 mysql 和其他软件包

升级后,我不断收到一个名为 ampagent 的软件包的问题。既无法删除也无法重新安装。现在问题扩展到其他。以下是我点击时的信息apt-get autoremove

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up lightdm (1.18.2-0ubuntu2) ...
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service AMPAgentBootup and rc.local if started
insserv:  loop involving service rc.local at depth 8
insserv:  loop involving service AMPAgentBootup at depth 3
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package lightdm (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up mysql-server-5.7 (5.7.13-0ubuntu0.16.04.2) ...
Renaming removed key_buffer and myisam-recover options (if present)
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service AMPAgentBootup and rc.local if started
insserv:  loop involving service rc.local at depth 8
insserv:  loop involving service AMPAgentBootup at depth 3
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package mysql-server-5.7 (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up ampagent (6.4.180-1) ...
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service AMPAgentBootup and rc.local if started
insserv:  loop involving service rc.local at depth 8
insserv:  loop involving service AMPAgentBootup at depth 3
insserv: Starting AMPAgentBootup depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package ampagent (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.7; however:
  Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 lightdm
 mysql-server-5.7
 ampagent
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

注意:工作正在进行中

快速搜索后发现,这ampagent是一个戴尔系统管理工具。

您可以尝试使用以下方法从终端卸载它

sudo opt/dell/kace/bin/AMPTools uninstall

正如他们所建议的那样。https://support.software.dell.com/k1000-systems-management-appliance/kb/114887

卸载完成后,发出sudo dpkg --configure --all命令sudo apt-get -f install来修复剩余问题。

相关内容