软件安装问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
李金豪
帖子: 8
注册时间: 2010-03-11 14:11

软件安装问题

#1

帖子 李金豪 » 2010-03-19 22:36

我在安装amule时总是提示不能安装,如下所示:
lijinhao@Ubuntu:~$ sudo apt-get install amule-utils正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
amule-utils 已经是最新的版本了。
下列软件包是自动安装的并且现在不再被使用了:
linux-headers-2.6.31-14 libcrypto++8 linux-headers-2.6.31-14-generic
使用'apt-get autoremove'来删除它们
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
lijinhao@Ubuntu:~$ sudo remove linux-headers-2.6.31-14 libcrypto++8 linux-headers-2.6.31-14-generic
sudo: remove: command not found
lijinhao@Ubuntu:~$
这是什么原因阿?
请高手帮忙!再次谢谢拉!
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 软件安装问题

#2

帖子 wangdu2002 » 2010-03-19 22:39

sudo aptitude autoclean
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
头像
xiaomao101
帖子: 474
注册时间: 2006-04-05 18:12
联系:

Re: 软件安装问题

#3

帖子 xiaomao101 » 2010-03-19 22:46

$ sudo apt-get install amule
然后就装上amule了。

那些提示和amule没有关系,是说你已经安装了比2.6.31-14更高版本的Linux内核了,所以当前版本的内核可以删掉了。
如果你想删掉旧内核,请使用
$ sudo apt-get autoremove

你所使用的
$ sudo remove linux-headers-2.6.31-14 libcrypto++8 linux-headers-2.6.31-14-generic
命令不对,没有remove这个命令。
但是你可以使用
$ sudo apt-get remove linux-headers-2.6.31-14 libcrypto++8 linux-headers-2.6.31-14-generic
来达到你想要的目的。
因为remove是apt-get命令的一个参数;
just like “install”是apt-get命令的一个参数一样。
所以同样可以看到好多类似的命令:
$ sudo apt-get install
$ sudo apt-get remove
$ sudo apt-get audoremove
$ sudo apt-get update
$ sudo apt-get upgrade
具体解释如下:
update - Retrieve new lists of packages
upgrade - Perform an upgrade
install - Install new packages (pkg is libc6 not libc6.deb)
remove - Remove packages
autoremove - Remove automatically all unused packages
purge - Remove packages and config files
source - Download source archives
build-dep - Configure build-dependencies for source packages
dist-upgrade - Distribution upgrade, see apt-get(8)
dselect-upgrade - Follow dselect selections
clean - Erase downloaded archive files
autoclean - Erase old downloaded archive files
check - Verify that there are no broken dependencies

参考:
$ man apt-get
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 软件安装问题

#4

帖子 leeaman » 2010-03-19 22:48

看提示就知道啦
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
李金豪
帖子: 8
注册时间: 2010-03-11 14:11

Re: 软件安装问题

#5

帖子 李金豪 » 2010-03-19 23:17

谢谢楼上的朋友,但是我进入终端后,操作如下:
sudo apt-get install amule
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
现在没有可用的软件包 amule,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
可是下列的软件包取代了它:
amule-utils
E: 软件包 amule 还没有可供安装的候选者
lijinhao@Ubuntu:~$
请问:软件包 amule 还没有可供安装的候选者,这是怎么会事?amule仍然没有安装上去。
我在ubuntu软件中心安装时又出现以下情况:
aMule

在当前数据中不可用
许可证:开放源代码
价格:自由

Canonical不能提供aMule的更新。一些更新问题可能通过Ubuntu社区提供

试着装其他的软件,效果和上述情况一样,请问,这是什么地方出错了阿?
谢谢你们了,我真的很无语。。。。。。
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 软件安装问题

#6

帖子 leeaman » 2010-03-19 23:19

你用的什么源,更新过没有?
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
李金豪
帖子: 8
注册时间: 2010-03-11 14:11

Re: 软件安装问题

#7

帖子 李金豪 » 2010-03-19 23:31

更新了,等会看看吧,谢了
李金豪
帖子: 8
注册时间: 2010-03-11 14:11

Re: 软件安装问题

#8

帖子 李金豪 » 2010-03-19 23:35

:em06 !呵呵,可以了安装了,谢谢啦!楼上的朋友! :em11
头像
xiaomao101
帖子: 474
注册时间: 2006-04-05 18:12
联系:

Re: 软件安装问题

#9

帖子 xiaomao101 » 2010-03-19 23:37

列出你的源把:
$ cat /etc/apt/sources.list
李金豪
帖子: 8
注册时间: 2010-03-11 14:11

Re: 软件安装问题

#10

帖子 李金豪 » 2010-03-19 23:47

cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)]/ karmic main restricted
deb-src http://archive.ubuntu.com/ubuntu/ karmic main restricted #Added by software-properties
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://mirrors.shlug.org/ubuntu/ karmic restricted main
deb-src http://mirrors.shlug.org/ubuntu/ karmic restricted main multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirrors.shlug.org/ubuntu/ karmic-updates restricted main
deb-src http://mirrors.shlug.org/ubuntu/ karmic-updates restricted main multiverse universe #Added by software-properties

## 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://mirrors.shlug.org/ubuntu/ karmic universe
deb http://mirrors.shlug.org/ubuntu/ karmic-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://mirrors.shlug.org/ubuntu/ karmic multiverse
deb http://mirrors.shlug.org/ubuntu/ karmic-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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/ karmic-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe 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 karmic partner
# deb-src http://archive.canonical.com/ubuntu karmic partner

deb http://mirrors.shlug.org/ubuntu/ karmic-security restricted main
deb-src http://mirrors.shlug.org/ubuntu/ karmic-security restricted main multiverse universe #Added by software-properties
deb http://mirrors.shlug.org/ubuntu/ karmic-security universe
deb http://mirrors.shlug.org/ubuntu/ karmic-security multiverse
lijinhao@Ubuntu:~$
dshbusiness
帖子: 1831
注册时间: 2009-04-03 15:10

Re: 软件安装问题

#11

帖子 dshbusiness » 2010-03-19 23:55

啊……你的源太复杂了……
一般你用这一个源就够了,把source.list的内容清空,用下面的代替吧

代码: 全选

deb http://ubuntu.cn99.com/ubuntu/ karmic main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ karmic-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ karmic main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ karmic-backports main restricted universe multiverse
回复