20.04 LTS:未完全安装或删除的软件包

20.04 LTS:未完全安装或删除的软件包

我的搜索并没有为我找到这个问题的解决方案,而且我看到的错误并没有帮助我应用其他人建议的修复......

运行 20.04LTS 服务器,已从 18.04 升级(do-release-ugrade)。一切似乎都按预期运行,但以下情况除外:

assetto@racetrack:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-5.4.0-64-generic
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 13.9 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 132405 files and directories currently installed.)
Removing linux-headers-5.4.0-64-generic (5.4.0-64.72~18.04.1) ...
dpkg: error processing package linux-headers-5.4.0-64-generic (--remove):
 cannot remove '/usr/src/linux-headers-5.4.0-64-generic/include/config/snd/soc/wm8711.h': Bad message
dpkg: too many errors, stopping
Errors were encountered while processing:
 linux-headers-5.4.0-64-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

我已经尝试了所有标准的 apt、dpkg、apt-get 命令,包括尝试强制重新安装命名的 pkgs,但一切都以同样的方式失败。

任何帮助,将不胜感激。

相关内容