更新后损坏的软件包:linux-headers,错误损坏计数 >0

更新后损坏的软件包:linux-headers,错误损坏计数 >0

Ubuntu 10.04。

更新后,系统托盘中出现一个红色警告图标,警告我error: broken count >0

打开更新管理器,我看到损坏的软件包linux-headers-2.6.32-38 (new install)

尝试使用更新管理器时,我收到进一步的错误消息:You have 1 broken package on your system! Use the "Broken" filter to locate it.

进而:

E: /var/cache/apt/archives/linux-headers-2.6.32-38_2.6.32-38.83_all.deb: unable to create `/usr/src/linux-headers-2.6.32-38/arch/arm/mach-netx/include/mach/vmalloc.h.dpkg-new' (while processing `./usr/src/linux-headers-2.6.32-38/arch/arm/mach-netx/include/mach/vmalloc.h')

apt-get clean按照该网站上另一个问题中的建议进行了尝试,并尝试在 Synaptic 中重新安装该软件包。

我还没有尝试过的一个选项就是简单地重新启动,但是我不敢这样做,以防我无法重新启动回到 Ubuntu。

我也尝试过apt-get install --fix-broken并得到以下结果:

The following extra packages will be installed:
  linux-headers-2.6.32-38
The following NEW packages will be installed
  linux-headers-2.6.32-38
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B/9,937kB of archives.
After this operation, 76.2MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 589950 files and directories currently installed.)
Unpacking linux-headers-2.6.32-38 (from .../linux-headers-2.6.32-38_2.6.32-38.83_all.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-2.6.32-38_2.6.32-38.83_all.deb (--unpack):
unable to create `/usr/src/linux-headers-2.6.32-38/arch/arm/mach-nomadik/Makefile.boot.dpkg-new' (while processing `./usr/src/linux-headers-2.6.32-38/arch/arm/mach-nomadik/Makefile.boot'): No space left on device
No apport report written because the error message indicates a disk full error
                                                                              dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-headers-2.6.32-38_2.6.32-38.83_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

看起来您的驱动器已满,没有可用空间。尝试将一些不需要的文件(如音乐、视频、文档等)移到另一个分区。然后尝试sudo apt-get install --fix-broken。您需要移动大约 76.2 MB 的内容(确切地说),但最好移动您可以移动的内容。

此后,你的系统应该恢复正常,并且不会出现任何损坏的软件包:)

相关内容