是的,我搜了又搜,试了又试,现在我发帖.
几周前,我定期更新了我的14.04.5LTS系统,现在它给了我错误的“包系统坏了”。它说要尝试两件事:
有什么想法吗?
command-prompt$ 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:
account-plugin-windows-live gir1.2-gnomekeyring-1.0 gir1.2-rb-3.0
gir1.2-secret-1 libdmapsharing-3.0-2 libgpod-common libgpod4 libhdb9-heimdal
libkdc2-heimdal libllvm3.5 libntdb1 librhythmbox-core8 libsgutils2-2
libupstart1 linux-headers-3.13.0-117 linux-headers-3.13.0-117-generic
linux-headers-3.16.0-30 linux-headers-3.16.0-30-generic
linux-headers-4.4.0-34 linux-headers-4.4.0-34-generic linux-headers-4.4.0-45
linux-headers-4.4.0-45-generic linux-headers-4.4.0-64
linux-headers-4.4.0-64-generic linux-image-3.16.0-30-generic
linux-image-4.4.0-34-generic linux-image-4.4.0-64-generic
linux-image-extra-3.16.0-30-generic linux-image-extra-4.4.0-34-generic
linux-image-extra-4.4.0-64-generic media-player-info python-ntdb
python3-mako python3-markupsafe rhythmbox-data
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-headers-3.13.0-129 linux-headers-3.13.0-129-generic
linux-headers-4.4.0-91
The following NEW packages will be installed:
linux-headers-3.13.0-129 linux-headers-3.13.0-129-generic
linux-headers-4.4.0-91
0 upgraded, 3 newly installed, 0 to remove and 49 not upgraded.
4 not fully installed or removed.
Need to get 0 B/19.5 MB of archives.
After this operation, 149 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 1695950 files and directories currently installed.)
Preparing to unpack .../linux-headers-4.4.0-91_4.4.0-91.114~14.04.1_all.deb ...
Unpacking linux-headers-4.4.0-91 (4.4.0-91.114~14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-headers-4.4.0-91_4.4.0-91.114~14.04.1_all.deb (--unpack):
unable to create `/usr/src/linux-headers-4.4.0-91/drivers/staging/android/ion/Makefile.dpkg-new' (while processing `./usr/src/linux-headers-4.4.0-91/drivers/staging/android/ion/Makefile'): No space left on device
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../linux-headers-3.13.0-129_3.13.0-129.178_all.deb ...
Unpacking linux-headers-3.13.0-129 (3.13.0-129.178) ...
dpkg: error processing archive /var/cache/apt/archives/linux-headers-3.13.0-129_3.13.0-129.178_all.deb (--unpack):
unable to create `/usr/src/linux-headers-3.13.0-129/arch/mips/include/asm/lasat/head.h.dpkg-new' (while processing `./usr/src/linux-headers-3.13.0-129/arch/mips/include/asm/lasat/head.h'): No space left on device
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../linux-headers-3.13.0-129-generic_3.13.0-129.178_amd64.deb ...
Unpacking linux-headers-3.13.0-129-generic (3.13.0-129.178) ...
dpkg: error processing archive /var/cache/apt/archives/linux-headers-3.13.0-129-generic_3.13.0-129.178_amd64.deb (--unpack):
error creating directory `./usr/src/linux-headers-3.13.0-129-generic/include/config/module/sig': No space left on device
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-headers-4.4.0-91_4.4.0-91.114~14.04.1_all.deb
/var/cache/apt/archives/linux-headers-3.13.0-129_3.13.0-129.178_all.deb
/var/cache/apt/archives/linux-headers-3.13.0-129-generic_3.13.0-129.178_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
发布于 2017-09-05 03:49:49
根据apt-get:设备上没有空间(12.04)中的第一个答案,您的系统可能已经没有inode了。比较df -ih
和df -h
的输出。
从‘apt-获取安装-f’输出,您的系统有一定数量的旧包,可以自动删除。这可能会使更新正常运行。
运行sudo apt-get autoremove
。运行df -h
和df -ih
来比较这两个输出。考虑张贴前后的结果。
如果apt-get autoremove
没有释放足够多的inode,您可能需要通过归档一些文件来释放一些文件。du ~/ | sort -n | head -n 10
将列出当前用户home dir中最小的10个文件。归档或删除许多小文件将为这一努力提供最大的冲击,在释放节点。
发布于 2017-09-05 03:35:29
做一个df -hi
来检查磁盘的完整状态;我敢打赌你已经没有节点了;这样就不能写新的文件,也不能扩展文件(没有更大的文件)。-i的意思是显示inode信息(思考块、集群.)。
毫无疑问,您做了一些类似于创建大量小型日志/电子邮件文件的工作&它使用了所有的inodes,并且“磁盘已满”,因为没有更多的文件可以写入(即使一些空间未分配;inodes都用完了!)inodes是按格式分配的;但是要查找一个包含成千上万个小文件的目录,删除不需要的垃圾,或者至少移到一个非系统的卷中,并且理想地限制日志/电子邮件或任何其他限制(由磁盘类型、容量等设置的数字)等等。
发布于 2017-09-05 03:36:24
看起来你的源文件被破坏了,而且包也坏了。按Ctrl + Alt +T键打开终端,删除损坏的源文件,然后键入:
sudo rm /etc/apt/sources.list
然后,输入
sudo software-properties-gtk
这将打开软件属性-gtk和一个新的sources.list将自动创建。
然后将服务器更改为US或您选择的任何其他服务器。您必须从新对话框中启用存储库,以便创建新的sources.list。
勾选所有框,然后单击“还原”,然后单击“关闭”。
sudo apt-get update && sudo apt-get dist-upgrade -y
https://askubuntu.com/questions/952821
复制相似问题