分页: 1 / 2

UBUNTU软件中心无法安装软件

发表于 : 2012-12-08 19:02
ZUOZHIBIAO1983
请救,我今天准备在ubuntu软件中心安装一个glade开发工具,点击安装后,提示有一个守护进程发生错误,无法安装,具体提示如下:aptdaemon 中似乎有编程错误,该软件用于安装、卸载软件并且执行其他的软件包管理任务。Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 972, in simulate
trans.unauthenticated = self._simulate_helper(trans)
File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 1096, in _simulate_helper
return depends, self._cache.required_download, \
File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 235, in required_download
pm.get_archives(fetcher, self._list, self._records)
SystemError: E:Method has died unexpectedly!, E:Sub-process returned an error code (100), E:Method /usr/lib/apt/methods/ did not start correctly
我去尝试安装其它程序也一样,请问是什么问题,该如何解决?

Re: UBUNTU软件中心无法安装软件

发表于 : 2012-12-08 19:14
mraandtux
sudo apt-get install synaptic

Re: UBUNTU软件中心无法安装软件

发表于 : 2012-12-08 19:24
ZUOZHIBIAO1983
我运行你的命令后,再去软件中心尝试,结果还是一样的。

Re: UBUNTU软件中心无法安装软件

发表于 : 2012-12-08 19:34
mraandtux
ZUOZHIBIAO1983 写了:我运行你的命令后,再去软件中心尝试,结果还是一样的。
用新力得删了软件中心

Re: UBUNTU软件中心无法安装软件

发表于 : 2012-12-08 19:39
wgj

代码: 全选

sudo apt-get purge software-center
sudo apt-get install software-center
删了重装

Re: UBUNTU软件中心无法安装软件

发表于 : 2012-12-08 19:42
ZUOZHIBIAO1983
sudo apt-get install software-center
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列【新】软件包将被安装:
software-center
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 2 个软件包未被升级。
Failed to exec method /usr/lib/apt/methods/
E: Method has died unexpectedly!
E: 子进程 返回了一个错误号 (100)
E: 获取软件包的渠道 /usr/lib/apt/methods/ 所需的驱动程序没有正常启动。

Re: UBUNTU软件中心无法安装软件

发表于 : 2012-12-08 19:47
lainme
贴一下/etc/apt/sources.list 和 /etc/apt/sources.list.d 下的文件看看

Re: UBUNTU软件中心无法安装软件

发表于 : 2012-12-08 19:50
ZUOZHIBIAO1983
zuozhibiao@zuozhibiao-laptop:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)]/ oneiric main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ oneiric main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ oneiric main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ oneiric universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ oneiric universe
deb http://cn.archive.ubuntu.com/ubuntu/ oneiric-updates universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ oneiric-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cn.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb http://security.ubuntu.com/ubuntu oneiric-security universe
deb-src http://security.ubuntu.com/ubuntu oneiric-security universe
deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu oneiric partner
# deb-src http://archive.canonical.com/ubuntu oneiric partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu oneiric main
deb-src http://extras.ubuntu.com/ubuntu oneiric main

Re: UBUNTU软件中心无法安装软件

发表于 : 2012-12-08 19:52
ZUOZHIBIAO1983
uozhibiao@zuozhibiao-laptop:~$ cat /etc/apt/sources.list.d
cat: /etc/apt/sources.list.d: 是一个目录
zuozhibiao@zuozhibiao-laptop:~$ ls /etc/apt/sources.list.d
oneiric-partner.list
zuozhibiao@zuozhibiao-laptop:~$ cat /etc/apt/sources.list.d/oneiric-parner.list
cat: /etc/apt/sources.list.d/oneiric-parner.list: 没有那个文件或目录
zuozhibiao@zuozhibiao-laptop:~$ cat /etc/apt/sources.list.d/oneiric-partner.list
deb http://archive.canonical.com/ubuntu oneiric partner #Added by software-center
zuozhibiao@zuozhibiao-laptop:~$

Re: UBUNTU软件中心无法安装软件

发表于 : 2012-12-08 20:29
lainme
那再试一下

sudo dpkg --configure -a

sudo apt-get install -f

Re: UBUNTU软件中心无法安装软件

发表于 : 2012-12-08 20:51
ZUOZHIBIAO1983
还是不行,哎,见鬼了
zuozhibiao@zuozhibiao-laptop:~$ sudo dpkg --configure -a
zuozhibiao@zuozhibiao-laptop:~$ sudo apt-get install -f
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
libglade2-0
使用'apt-get autoremove'来卸载它们
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
zuozhibiao@zuozhibiao-laptop:~$ sudo apt-get install software-center
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
libglade2-0
使用'apt-get autoremove'来卸载它们
下列【新】软件包将被安装:
software-center
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
Failed to exec method /usr/lib/apt/methods/
E: Method has died unexpectedly!
E: 子进程 返回了一个错误号 (100)
E: 获取软件包的渠道 /usr/lib/apt/methods/ 所需的驱动程序没有正常启动。
zuozhibiao@zuozhibiao-laptop:~$

Re: UBUNTU软件中心无法安装软件

发表于 : 2012-12-08 21:46
mraandtux

Re: UBUNTU软件中心无法安装软件

发表于 : 2012-12-08 21:50
xw_y_am
个人认为,软件中心存在的价值在于教会用户如何卸载它 :em11 :em11

Re: UBUNTU软件中心无法安装软件

发表于 : 2012-12-08 21:57
lainme
那就试下先把 libglade2-0 和 software-center 都卸载掉,可能是 libglade2-0 安装出错导致的。

Re: UBUNTU软件中心无法安装软件

发表于 : 2012-12-08 23:05
taohunter
xw_y_am 写了:个人认为,软件中心存在的价值在于教会用户如何卸载它 :em11 :em11
:em04 话损了点儿,但有道理。pythin+gtk做的这个半残废实在该扔到代码垃圾堆里去。