首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用apt安装任何软件包

无法使用apt安装任何软件包
EN

Ask Ubuntu用户
提问于 2013-02-15 07:23:47
回答 1查看 3.4K关注 0票数 2

似乎我的Ubuntu上的一些软件包(Ubuntu10.04.4LTS,清晰)被破坏了,使我无法安装任何新的软件包。我在这个网站上也经历过类似的问题,但事实证明都是无用的。以下是我在输出中尝试的一些命令:

代码语言:javascript
复制
'sudo apt-get install -f' OR 'sudo apt-get --fix-broken install':


Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 44 not upgraded.
6 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up gcalctool (5.30.0.is.5.28.2-0ubuntu3) ...


dpkg: error processing gcalctool (--configure):


 subprocess installed post-installation script returned error exit status 245

Setting up shared-mime-info (0.71-1ubuntu2) ...

Segmentation fault

dpkg: error processing shared-mime-info (--configure):

 subprocess installed post-installation script returned error exit status 139

Setting up update-manager (1:0.134.12.1) ...

dpkg: error processing update-manager (--configure):

 subprocess installed post-installation script returned error exit status 245

Setting up vino (2.28.2-0ubuntu2.2) ...

dpkg: error processing vino (--configure):

 subprocess installed post-installation script returned error exit status 245


No apport report written because MaxReports is reached already
Setting up libgweather-common (2.30.0-0ubuntu1.1) ...

dpkg: error processing libgweather-common (--configure):

 subprocess installed post-installation script returned error exit status 245

No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libgweather1:

 libgweather1 depends on libgweather-common (>= 2.24.0); however:

  Package libgweather-common is not configured yet.

dpkg: error processing libgweather1 (--configure):

 dependency problems - leaving unconfigured

No apport report written because MaxReports is reached already
Processing triggers for menu ...

Errors were encountered while processing:

 gcalctool

 shared-mime-info

 update-manager

 vino

 libgweather-common

 libgweather1

E: Sub-process /usr/bin/dpkg returned an error code (1)


* 'sudo dkpg --configure -a':
Setting up shared-mime-info (0.71-1ubuntu2) ...

Segmentation fault

dpkg: error processing shared-mime-info (--configure):

 subprocess installed post-installation script returned error exit status 139

Setting up gcalctool (5.30.0.is.5.28.2-0ubuntu3) ...

dpkg: error processing gcalctool (--configure):

 subprocess installed post-installation script returned error exit status 245

Setting up libgweather-common (2.30.0-0ubuntu1.1) ...

dpkg: error processing libgweather-common (--configure):

 subprocess installed post-installation script returned error exit status 245

Setting up vino (2.28.2-0ubuntu2.2) ...

dpkg: error processing vino (--configure):

 subprocess installed post-installation script returned error exit status 245

Setting up update-manager (1:0.134.12.1) ...

dpkg: error processing update-manager (--configure):

 subprocess installed post-installation script returned error exit status 245

dpkg: dependency problems prevent configuration of libgweather1:

 libgweather1 depends on libgweather-common (>= 2.24.0); however:

  Package libgweather-common is not configured yet.

dpkg: error processing libgweather1 (--configure):

 dependency problems - leaving unconfigured

Processing triggers for menu ...

Errors were encountered while processing:

 shared-mime-info

 gcalctool

 libgweather-common

 vino

 update-manager

 libgweather1

希望有人能帮我,提前谢谢!

编辑:我通过重新安装系统最终解决了这个问题.事实上,我不需要重新安装,但只是重新对系统与所有数据保持原封不动。

EN

回答 1

Ask Ubuntu用户

发布于 2013-02-15 07:33:09

作为最后的手段,我会去并尝试它的“修复坏包”菜单项下的编辑菜单。如果失败,我会在同一个程序中检查所有破损的包并删除它们(如果它在突触中失败,只需在终端sudo apt-get remove中执行),然后我执行sudo apt-get autoremove和sudo apt-get autoclean

在尝试安装它们之前,需要运行sudo apt-get update

顺便问一下,你最后一次尝试安装的软件包是什么?这很重要,应该是你问题的一部分!

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

https://askubuntu.com/questions/256328

复制
相关文章

相似问题

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