急需帮助。我打开了 Ubuntu,它需要更新运行,我执行了更新,但收到 1 个损坏软件包的错误消息。打开 synaptic 软件包管理器,看到它是一个名为的软件包linux-image-generic 4.15.0.65.67_amd64
。所以它是 Ubuntu 网站上的最新版本。错误消息已附上。我尝试通过软件包管理器完全删除并重新安装两次。不行。不知道该怎么办。以前从未遇到过这个问题。
谢谢你!
更新:尝试运行 sudo apt-get install -f 结果:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libllvm7 linux-headers-5.0.0-27 linux-headers-5.0.0-27-generic
linux-image-5.0.0-27-generic linux-modules-5.0.0-27-generic
linux-modules-extra-5.0.0-27-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
linux-modules-extra-4.15.0-65-generic
The following NEW packages will be installed:
linux-modules-extra-4.15.0-65-generic
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/32.9 MB of archives.
After this operation, 170 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
E: Invalid archive member header mu~|�0��ŵ a�d��Kj]�m��4���i�m�a\�8�a���<-�%g�Y}�0k�
E: Prior errors apply to /var/cache/apt/archives/linux-modules-extra-4.15.0-65-generic_4.15.0-65.74_amd64.deb
debconf: apt-extracttemplates failed: No such file or directory
(Reading database ... 402329 files and directories currently installed.)
Preparing to unpack .../linux-modules-extra-4.15.0-65-generic_4.15.0-65.74_amd64.deb ...
Unpacking linux-headers-4.15.0-65 (4.15.0-65.74) over (4.15.0-65.74) ...
Setting up linux-headers-4.15.0-65 (4.15.0-65.74) ...
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-modules-extra-4.15.0-65-generic; however:
Package linux-modules-extra-4.15.0-65-generic is not installed.
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
另外:在管理器中包的属性中我拥有以下内容:
Depends: linux-image-4.15.0-65-generic
Conflicts:linux-image-generic
答案1
所以发生的事情是存在冲突的软件包。与 Firefox 无关,也不是其他帖子的重复,不过谢谢你 :) 我进入 synaptic 并完全删除了损坏的软件包,然后手动下载了 Ubuntu 网站指定的最新版本的软件包。自动命令无法解决这个问题。必须手动操作。