您的位置:首页 > 运维架构

关于无法自动安装openssh-server问题

2012-07-27 09:38 465 查看
今天由于需要安装一台服务器,其系统为64位的ubuntu12.04服务器,作为近期需要搭建的数据中心服务器测试,但是在使用ubuntu安装的命令

apt-get install openssh-server

出现如下的错误(当然要保证能够上网的前提下)

现在没有可用的软件包 openssh-server,但是它被其它的软件包引用了.

这可能意味着这个缺失的软件包可能已被废弃,或者只能在劳动保险发布源中找到.

E:软件包openssh-server还没有可供安装的候选者

其中的原因是因为源的问题,解决办法如下:

当前的源类表中没有你要安装的软件包,修改 /etc/apt/sources.list 添加源列表,添加以下源

# Archive.ubuntu.com 欧洲,此为官方源,推荐使用 ,PING=500

deb http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ feisty-proposed main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse

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

deb-src http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu/ feisty-proposed main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse

deb http://archive.ubuntu.org.cn/ubuntu-cn/ feisty main restricted universe multiverse

# 中国 台湾省台湾大学,推荐网通用户使用,电信PING平均响应速度41MS,PING=100

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-updates main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-updates main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-backports main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-backports main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-security main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-security main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-proposed main multiverse restricted universe

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-proposed main restricted universe multiverse
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐