### 高分求教:ubuntu下apt-get install问题 ###

unrise 2010-12-05 12:26:36
刚装了ubuntu10.10,发现里面没有安装常用的工具,如ftp,svn.于是baidu一下发现有命令可以安装,但是都出现了以下问题,我已经运行过sudo apt-get upgrade 也没有用,baidu了一下发现不少人也遇到过类似问题,但是似乎没有看到解决方法,请教高手如何解决?谢谢。

1)安装SVN

root@ubuntu:/opt# sudo apt-get install subversion
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package subversion is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'subversion' has no installation candidate


2)安装 ftp

root@ubuntu:/opt# sudo apt-get install vsftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package vsftpd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'vsftpd' has no installation candidate

...全文
535 19 打赏 收藏 转发到动态 举报
写回复
用AI写文章
19 条回复
切换为时间正序
请发表友善的回复…
发表回复
steptodream 2010-12-05
  • 打赏
  • 举报
回复
如果上面还不行 干脆把你的安装盘文件挂载上 去里面找subversion vsftpd的deb包 然后
dpkg -i /path/xxxx.deb的方式安装
steptodream 2010-12-05
  • 打赏
  • 举报
回复
这样试试吧
先更新apt-get软件源
sudo apt-get update

然后再安装
sudo apt-get install subversion vsftpd
Welson80 2010-12-05
  • 打赏
  • 举报
回复
是不是软件源的问题,看下这里http://wiki.ubuntu.org.cn/Qref/Source#.E5.A6.82.E4.BD.95.E4.BD.BF.E7.94.A8.E6.88.91.E4.BB.AC.E6.8E.A8.E8.8D.90.E7.9A.84.E6.BA.90
steptodream 2010-12-05
  • 打赏
  • 举报
回复
最新版本的安装盘里的源不可能有问题的。
他自己不一开始就先update 而是手动去按一楼说的把人家原先的源给换了。
freetstar 2010-12-05
  • 打赏
  • 举报
回复
因为有些源默认是不开启的,还有与官方同步不够!
unrise 2010-12-05
  • 打赏
  • 举报
回复
已经证明是软件源的问题了,自带的软件源确实不行,1F的软件源也不行。
刚刚试了14F的骨头源,svn 和 vsftpd确实能 install了,其他步骤都一样。非常感谢大家的帮助,结账了。
steptodream 2010-12-05
  • 打赏
  • 举报
回复
本来挺容易一个工具 怎么这么麻烦还用不了。
我很少用Ubuntu 可是安装完Ubuntu之后 根本没手动去修改过软件源。
然后apt-get update之后 就可以用apt-get install来安装软件了
unrise 2010-12-05
  • 打赏
  • 举报
回复
1F的源试过了,不行。

14F,谢谢你,我正在试你的源,我把你里面提到的有关10.10的源(如下),加到/etc/apt/source.list,然后做 sudo apt-get update, 最后去 sudo apt-get install vsftpd (或者sudo apt-get install subversion) ,步骤应该不会错吧?


==============================
deb http://ubuntu.srt.cn/ubuntu/ maverick main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ maverick-security main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ maverick-updates main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ maverick-proposed main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ maverick-backports main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ maverick main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ maverick-security main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ maverick-updates main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ maverick-proposed main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ maverick-backports main restricted universe multiverse


freetstar 2010-12-05
  • 打赏
  • 举报
回复
http://ubuntu.srt.cn/
用这个骨头源!

很全!与官方同步,中国的速度也很快

你要是不习惯的话可以去新立得软件包管理器里搜索svn,然后安装就行了!
unrise 2010-12-05
  • 打赏
  • 举报
回复
steptodream,谢谢你的热情帮助。你可以误会我的问题了,软件源应该就是/etc/apt/source.list里面的内容吧?我想sudo apt-get update以后,会从网上下载(更新)software,并存放在某个位置。我的问题是这些software会存放在什么地方?

我刚才把1楼提到的地址insert到原先source.list的最前面了,但是会出现类似下面的信息。
W: Failed to fetch http://se.archive.ubuntu.com/ubuntu/dists/maverick-security/universe/binary-i386/Packages.gz Unable to connect to se.archive.ubuntu.com:http: [IP: 130.239.18.163 80]

W: Failed to fetch http://se.archive.ubuntu.com/ubuntu/dists/maverick/main/source/Sources.gz Unable to connect to se.archive.ubuntu.com:http: [IP: 130.239.18.163 80]

==================
我现在把原先的source.list全部清掉,只用下面的地址(1楼提到的),不知道会怎么样,正在试。
deb http://se.archive.ubuntu.com/ubuntu/ maverick-security restricted multiverse universe
deb-src http://se.archive.ubuntu.com/ubuntu/ maverick-security restricted multiverse universe
deb http://se.archive.ubuntu.com/ubuntu/ maverick main universe restricted multiverse
deb-src http://se.archive.ubuntu.com/ubuntu/ maverick main universe restricted multiverse
deb-src http://se.archive.ubuntu.com/ubuntu/ maverick-security main restricted
deb http://se.archive.ubuntu.com/ubuntu/ maverick-updates universe main multiverse restricted
deb-src http://se.archive.ubuntu.com/ubuntu/ maverick-updates universe main multiverse restricted
deb http://se.archive.ubuntu.com/ubuntu/ maverick-proposed universe main multiverse restricted
deb-src http://se.archive.ubuntu.com/ubuntu/ maverick-proposed universe main multiverse restricted


我想问题可能是处在软件源上,但是哪些软件源才能正在下载到? trying....

freetstar 2010-12-05
  • 打赏
  • 举报
回复
srt 中国的骨头源解决你的一切问题!

apt-cache search svn看看也可
steptodream 2010-12-05
  • 打赏
  • 举报
回复
顺便请教下,我update的文件会存放在什么地方?谢谢。
---------------
更新的就是软件源 不是别的文件。
就是刚才修改的那些东西。
steptodream 2010-12-05
  • 打赏
  • 举报
回复
顺便请教下,我update的文件会存放在什么地方?谢谢。
---------------
更新的就是软件源 不是别的文件。
就是刚才修改的那些东西。
steptodream 2010-12-05
  • 打赏
  • 举报
回复
晕 我一直在说让你先update upgrade和update不是一样的功能 专门用不同的颜色标注出来了。



unrise 2010-12-05
  • 打赏
  • 举报
回复
感谢7楼的解释,把sudo apt-get upgrade 误以为是 sudo apt-get update 了,正在按照
sudo apt-get update, 需要点时间来证明是否可行。

顺便请教下,我update的文件会存放在什么地方?谢谢。
Linux-Torvalds 2010-12-05
  • 打赏
  • 举报
回复
sudo apt-get upgrade
是把系统上的套件更新到最新版本。

sudo apt-get update
更新软件源的内容

你的问题是软件源没有配置好。

在系统管理那里选择好软件源,可以自动ping选择最快的。然后再sudo apt-get install你想要的任何东西。
unrise 2010-12-05
  • 打赏
  • 举报
回复
请问 steptodream 怎么利用安装盘文件来安装subversion和vsftpd? 我是用vmware7.1.3安装ubuntu10.10的。 我在安装盘文件中找不到你说的subversion vsftpd的deb包,谢谢。
steptodream 2010-12-05
  • 打赏
  • 举报
回复
试试我2楼和3楼说的呀。

你不要老sudo apt-get upgrade
这个和sudo apt-get update 是不同的功能
前者是更新系统 后者是更新apt-get软件源 所以我让你试试sudo apt-get update
unrise 2010-12-05
  • 打赏
  • 举报
回复
按照1楼提供的软件源,把下面的源加入到我的source.list,并且sudo apt-get upgrade
==============================================
瑞典IPV6源,据说速度达到1M以上
deb http://se.archive.ubuntu.com/ubuntu/ maverick-security restricted multiverse universe
deb-src http://se.archive.ubuntu.com/ubuntu/ maverick-security restricted multiverse universe
deb http://se.archive.ubuntu.com/ubuntu/ maverick main universe restricted multiverse
deb-src http://se.archive.ubuntu.com/ubuntu/ maverick main universe restricted multiverse
deb-src http://se.archive.ubuntu.com/ubuntu/ maverick-security main restricted
deb http://se.archive.ubuntu.com/ubuntu/ maverick-updates universe main multiverse restricted
deb-src http://se.archive.ubuntu.com/ubuntu/ maverick-updates universe main multiverse restricted
deb http://se.archive.ubuntu.com/ubuntu/ maverick-proposed universe main multiverse restricted
deb-src http://se.archive.ubuntu.com/ubuntu/ maverick-proposed universe main multiverse restricted
============================

sudo apt-get upgrade 以后还是不行。


19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧