Apt-get 操作失败并显示巨大错误消息

Apt-get 操作失败并显示巨大错误消息

无法安装任何软件包或使用 apt-get 命令执行任何操作。

我尝试使用此处另一个问题中找到的以下命令来修复它。

 sudo apt-get autoremove 
 sudo apt-get --purge remove && sudo apt-get
 autoclean sudo apt-get -f install 
 sudo dpkg-reconfigure -a

但是,我在命令中再次遇到了同样的错误sudo apt-get --purge remove && sudo apt-get

错误如下所示。

 Reading package lists... Done Building dependency tree        Reading
 state information... Done      The following packages were automatically
 installed and are no longer required:   linux-headers-4.8.0-36
 linux-headers-4.8.0-36-generic linux-headers-4.8.0-41
 linux-headers-4.8.0-41-generic   linux-headers-4.8.0-45
 linux-headers-4.8.0-45-generic linux-headers-4.8.0-46
 linux-headers-4.8.0-46-generic   linux-image-4.8.0-36-generic
 linux-image-4.8.0-41-generic linux-image-4.8.0-45-generic  
 linux-image-4.8.0-46-generic linux-image-extra-4.8.0-36-generic
 linux-image-extra-4.8.0-41-generic  
 linux-image-extra-4.8.0-45-generic linux-image-extra-4.8.0-46-generic
 linux-signed-image-4.8.0-41-generic  
 linux-signed-image-4.8.0-45-generic
 linux-signed-image-4.8.0-46-generic Use 'sudo apt autoremove' to
 remove them. 0 upgraded, 0 newly installed, 0 to remove and 112 not
 upgraded. 19 not fully installed or removed. After this operation, 0 
 of additional disk space will be used. Setting up apache2
 (2.4.18-2ubuntu3.2) ... insserv: warning: script
 'S99panasoniclpd-init' missing LSB tags and overrides insserv:
 warning: script 'panasoniclpd-init' missing LSB tags and overrides

修剪了错误消息,只留下最后几行,因为字符数已达限制,错误消息真的非常长。我将完整的错误信息添加到要点中,然后链接这里

 Errors were encountered while processing:  apache2  lightdm  mysql-server-5.7
 binfmt-support  wine1.6  wine1.6-i386:i386  grub-common  grub2-common 
 grub-efi-amd64-bin  grub-efi-amd64  resolvconf  grub-efi-amd64-signed 
 mysql-server  shim-signed  thermald  virtualbox  virtualbox-qt  wine 
 wine1.6-amd64 E: Sub-process /usr/bin/dpkg returned an error code (1)

请参阅完整错误这个要点

答案1

松下驱动程序造成了这个问题。我不知道是怎么回事。我所做的就是通过搜索从所有地方删除以下两个文件夹的所有实例。

  1. panasoniclpd-初始化
  2. 普利茅斯

我首先删除了它/etc/int.d/,然后递归搜索所有其他实例并将其删除。之后我重新启动,一切都解决了。

相关内容