首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >14.04.5 LTS:更新后,“包系统坏了”

14.04.5 LTS:更新后,“包系统坏了”
EN

Ask Ubuntu用户
提问于 2017-09-05 02:59:41
回答 4查看 401关注 0票数 0

是的,我搜了又搜,试了又试,现在我发帖.

几周前,我定期更新了我的14.04.5LTS系统,现在它给了我错误的“包系统坏了”。它说要尝试两件事:

  1. 禁用任何第三方PPA。我检查了我的资源列表(在),而且没有。他们都是ubuntu.com的消息来源。好的,不,有谷歌的来源,但禁用它没有任何帮助。
  2. 运行"sudo apt install -f",这给了我下面的输出。这个输出意味着我的磁盘已经满了,但是根据df,它绝对不是。问题似乎是在其他地方,但它导致人们认为驱动器是满的。

有什么想法吗?

代码语言:javascript
运行
复制
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)
EN

回答 4

Ask Ubuntu用户

回答已采纳

发布于 2017-09-05 03:49:49

根据apt-get:设备上没有空间(12.04)中的第一个答案,您的系统可能已经没有inode了。比较df -ihdf -h的输出。

从‘apt-获取安装-f’输出,您的系统有一定数量的旧包,可以自动删除。这可能会使更新正常运行。

运行sudo apt-get autoremove。运行df -hdf -ih来比较这两个输出。考虑张贴前后的结果。

如果apt-get autoremove没有释放足够多的inode,您可能需要通过归档一些文件来释放一些文件。du ~/ | sort -n | head -n 10将列出当前用户home dir中最小的10个文件。归档或删除许多小文件将为这一努力提供最大的冲击,在释放节点。

票数 0
EN

Ask Ubuntu用户

发布于 2017-09-05 03:35:29

做一个df -hi来检查磁盘的完整状态;我敢打赌你已经没有节点了;这样就不能写新的文件,也不能扩展文件(没有更大的文件)。-i的意思是显示inode信息(思考块、集群.)。

毫无疑问,您做了一些类似于创建大量小型日志/电子邮件文件的工作&它使用了所有的inodes,并且“磁盘已满”,因为没有更多的文件可以写入(即使一些空间未分配;inodes都用完了!)inodes是按格式分配的;但是要查找一个包含成千上万个小文件的目录,删除不需要的垃圾,或者至少移到一个非系统的卷中,并且理想地限制日志/电子邮件或任何其他限制(由磁盘类型、容量等设置的数字)等等。

票数 0
EN

Ask Ubuntu用户

发布于 2017-09-05 03:36:24

看起来你的源文件被破坏了,而且包也坏了。按Ctrl + Alt +T键打开终端,删除损坏的源文件,然后键入:

代码语言:javascript
运行
复制
sudo rm /etc/apt/sources.list

然后,输入

代码语言:javascript
运行
复制
sudo software-properties-gtk

这将打开软件属性-gtk和一个新的sources.list将自动创建。

然后将服务器更改为US或您选择的任何其他服务器。您必须从新对话框中启用存储库,以便创建新的sources.list。

勾选所有框,然后单击“还原”,然后单击“关闭”。

代码语言:javascript
运行
复制
sudo apt-get update && sudo apt-get dist-upgrade -y

E:子进程/usr/bin/dpkg返回一个错误代码(1) [与google chrome相关]

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/952821

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档