首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我在执行apt-get util-linux时遇到了分段错误。

我在执行apt-get util-linux时遇到了分段错误。
EN

Server Fault用户
提问于 2011-09-06 23:46:43
回答 2查看 3.6K关注 0票数 4

我发现我的系统上的很多升级命令和Apache都因为分段错误而失败。我不知道这是否是主要的包,但是很多包都依赖util:

代码语言:javascript
复制
root@myUbuntuHardyHeronServer:~# apt-get install util-linux
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  util-linux
1 upgraded, 0 newly installed, 0 to remove and 72 not upgraded.
20 not fully installed or removed.
Need to get 0B/441kB of archives.
After this operation, 0B of additional disk space will be used.
(Reading database ... 20547 files and directories currently installed.)
Preparing to replace util-linux 2.13.1-5ubuntu2 (using .../util-linux_2.13.1-5ub
untu3.1_i386.deb) ...
Unpacking replacement util-linux ...
Segmentation fault
dpkg: warning - old post-removal script returned error exit status 139
dpkg - trying script from the new package instead ...
Segmentation fault
dpkg: error processing /var/cache/apt/archives/util-linux_2.13.1-5ubuntu3.1_i386
.deb (--unpack):
 subprocess new post-removal script returned error exit status 139
Segmentation fault
dpkg: error while cleaning up:
 subprocess post-removal script returned error exit status 139
Errors were encountered while processing:
 /var/cache/apt/archives/util-linux_2.13.1-5ubuntu3.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
EN

回答 2

Server Fault用户

发布于 2014-08-21 04:00:47

第一种方法:您必须从dpkg package下载packages.ubuntu.com并安装它。

第二种方法:您必须从dpkg package下载packages.ubuntu.com并在/usr/bin中提取它和cp dpkg。

票数 1
EN

Server Fault用户

发布于 2011-11-09 19:58:36

也许/var/cache/apt/ file /中的文件是坏的?试着跑“聪明干净”然后再试一次?

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

https://serverfault.com/questions/308775

复制
相关文章

相似问题

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