更新后损坏的包: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. 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) 

看起来你的驱动器已满,没有可用空间。 尝试将一些不需要的文件(如音乐,video,文档等)移动到另一个分区。 然后尝试sudo apt-get install --fix-broken 。 你需要准确地移动大约76.2 MB的东西,但也可以移动你所能做的。

之后你的系统应该恢复正常,没有破坏的包:)