无法为 Ubuntu 16.04 安装 linux-headers

无法为 Ubuntu 16.04 安装 linux-headers

我正在尝试使用 apt-get 安装软件包,并且每次尝试安装任何东西时都会得到:

acanada@ubuntu:~$ sudo apt-get install python3-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-headers-4.4.0-45-generic : Depends: linux-headers-4.4.0-45 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

因此,我执行 apt-get -f install 命令并得到:

acanada@ubuntu:~$ sudo apt-get -f install
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:
  gnome-video-effects guile-2.0-libs libgc1c2 libwhoopsie-preferences0
  linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic
  linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
  whoopsie-preferences
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  linux-headers-4.4.0-45
The following NEW packages will be installed:
  linux-headers-4.4.0-45
0 upgraded, 1 newly installed, 0 to remove and 146 not upgraded.
41 not fully installed or removed.
Need to get 0 B/9,988 kB of archives.
After this operation, 70.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 270809 files and directories currently installed.)
Preparing to unpack .../linux-headers-4.4.0-45_4.4.0-45.66_all.deb ...
Unpacking linux-headers-4.4.0-45 (4.4.0-45.66) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/linux-headers-4.4.0-45_4.4.0-45.66_all.deb (--unpack):
 subprocess dpkg-deb --fsys-tarfile returned error exit status 2
No apport report written because the error message indicates an issue on the local system
         Errors were encountered while processing:
 /var/cache/apt/archives/linux-headers-4.4.0-45_4.4.0-45.66_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

有什么办法可以解决这个问题?我无法安装任何软件包,因为出现相同的错误。

相关内容