ubuntu12.04 安装ssh报错的解决方案

解决Ubuntu12.04安装SSH报错问题
在安装Ubuntu12.04的SSH时遇到'Unable to correct problems, you have held broken packages.'错误。通过文章提供的方法可以成功解决此安装问题。" 50785693,4863257,Swift:UITableView控件快速入门,"['Swift', 'iOS开发', 'UITableView', 'Xcode']

因为研究contiki需要使用Ubuntu12.04版本,安装ssh时出现如下错误:


user@instant-contiki:~$ sudo apt-get install openssh-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:


The following packages have unmet dependencies:
 openssh-server : Depends: openssh-client (= 1:5.9p1-5ubuntu1) but 1:5.9p1-5ubuntu1.1 is to be installed

E: Unable to correct problems, you have held broken packages.


u@u-desktop:~$ sudo apt-get update 错误 http://cn.old-releases.ubuntu.com precise Release.gpg 解析“cn.old-releases.ubuntu.com:http”时,出现了某些故障(-5 - 没有与主机名关联的地址) 获取:1 http://ppa.launchpad.net precise Release.gpg [2,250 B] 忽略 http://cn.old-releases.ubuntu.com precise Release 获取:2 http://mirrors.aliyun.com trusty-security Release.gpg [2,250 B] 获取:3 http://mirrors.aliyun.com trusty-updates Release.gpg [2,250 B] 获取:4 http://mirrors.aliyun.com trusty-proposed Release.gpg [2,250 B] 忽略 http://cn.old-releases.ubuntu.com precise/universe TranslationIndex 获取:5 http://mirrors.aliyun.com trusty-backports Release.gpg [2,250 B] 获取:6 http://mirrors.aliyun.com trusty Release.gpg [2,250 B] 获取:7 http://ppa.launchpad.net precise Release [2,250 B] 错误 http://ppa.launchpad.net precise Release 获取:8 http://mirrors.aliyun.com trusty-security Release [2,250 B] 错误 http://mirrors.aliyun.com trusty-security Release 获取:9 http://mirrors.aliyun.com trusty-updates Release [2,250 B] 错误 http://mirrors.aliyun.com trusty-updates Release 获取:10 http://mirrors.aliyun.com trusty-proposed Release [2,250 B] 错误 http://mirrors.aliyun.com trusty-proposed Release 获取:11 http://mirrors.aliyun.com trusty-backports Release [2,250 B] 错误 http://mirrors.aliyun.com trusty-backports Release 获取:12 http://mirrors.aliyun.com trusty Release [2,250 B] 错误 http://mirrors.aliyun.com trusty Release 错误 http://cn.old-releases.ubuntu.com precise/universe i386 Packages 解析“cn.old-releases.ubuntu.com:http”时,出现了某些故障(-5 - 没有与主机名关联的地址) 错误 http://cn.old-releases.ubuntu.com precise/universe Translation-zh_CN 解析“cn.old-releases.ubuntu.com:http”时,出现了某些故障(-5 - 没有与主机名关联的地址) 错误 http://cn.old-releases.ubuntu.com precise/universe Translation-zh 解析“cn.old-releases.ubuntu.com:http”时,出现了某些故障(-5 - 没有与主机名关联的地址) 错误 http://cn.old-releases.ubuntu.com precise/universe Translation-en 解析“cn.old-releases.ubuntu.com:http”时,出现了某些故障(-5 - 没有与主机名关联的地址) 下载 27.0 kB,耗时 7秒 (3,436 B/s) 正在读取软件包列表... 完成 W: 校验签名出错。此仓库未被更新,仍然使用以前的索引文件。GPG 错误:http://ppa.launchpad.net precise Release: 下列签名无效: NODATA 1 NODATA 2 W: 校验签名出错。此仓库未被更新,仍然使用以前的索引文件。GPG 错误:http://mirrors.aliyun.com trusty-security Release: 下列签名无效: NODATA 1 NODATA 2 W: 校验签名出错。此仓库未被更新,仍然使用以前的索引文件。GPG 错误:http://mirrors.aliyun.com trusty-updates Release: 下列签名无效: NODATA 1 NODATA 2 W: 校验签名出错。此仓库未被更新,仍然使用以前的索引文件。GPG 错误:http://mirrors.aliyun.com trusty-proposed Release: 下列签名无效: NODATA 1 NODATA 2 W: 校验签名出错。此仓库未被更新,仍然使用以前的索引文件。GPG 错误:http://mirrors.aliyun.com trusty-backports Release: 下列签名无效: NODATA 1 NODATA 2 W: 校验签名出错。此仓库未被更新,仍然使用以前的索引文件。GPG 错误:http://mirrors.aliyun.com trusty Release: 下列签名无效: NODATA 1 NODATA 2 W: 无法下载 http://cn.old-releases.ubuntu.com/ubuntu/dists/precise/Release.gpg 解析“cn.old-releases.ubuntu.com:http”时,出现了某些故障(-5 - 没有与主机名关联的地址) W: 无法下载 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/dists/precise/Release W: 无法下载 http://cn.old-releases.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages 解析“cn.old-releases.ubuntu.com:http”时,出现了某些故障(-5 - 没有与主机名关联的地址) W: 无法下载 http://mirrors.aliyun.com/ubuntu/dists/trusty-security/Release W: 无法下载 http://mirrors.aliyun.com/ubuntu/dists/trusty-updates/Release W: 无法下载 http://mirrors.aliyun.com/ubuntu/dists/trusty-proposed/Release W: 无法下载 http://cn.old-releases.ubuntu.com/ubuntu/dists/precise/universe/i18n/Translation-zh_CN 解析“cn.old-releases.ubuntu.com:http”时,出现了某些故障(-5 - 没有与主机名关联的地址) W: 无法下载 http://cn.old-releases.ubuntu.com/ubuntu/dists/precise/universe/i18n/Translation-zh 解析“cn.old-releases.ubuntu.com:http”时,出现了某些故障(-5 - 没有与主机名关联的地址) W: 无法下载 http://cn.old-releases.ubuntu.com/ubuntu/dists/precise/universe/i18n/Translation-en 解析“cn.old-releases.ubuntu.com:http”时,出现了某些故障(-5 - 没有与主机名关联的地址) W: 无法下载 http://mirrors.aliyun.com/ubuntu/dists/trusty-backports/Release W: 无法下载 http://mirrors.aliyun.com/ubuntu/dists/trusty/Release W: Some index files failed to download. They have been ignored, or old ones used instead. u@u-desktop:~$ sudo apt-get install openssh-server -y 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 您可能需要运行“apt-get -f install”来纠正下列错误: 下列软件包有未满足的依赖关系: code : 依赖: libnss3 (>= 2:3.26) 但是 3.15.4-0ubuntu0.12.04.1 正要被安装 依赖: libsecret-1-0 但无法安装它 依赖: libgtk-3-0 (>= 3.10.0) 但是 3.4.2-0ubuntu0.6 正要被安装 openssh-server : 依赖: libaudit1 (>= 1:2.2.1) 但无法安装它 依赖: libc6 (>= 2.17) 但是 2.15-0ubuntu10.7 正要被安装 依赖: init-system-helpers (>= 1.13~) 但是它将不会被安装 依赖: openssh-client (= 1:6.6p1-2ubuntu2.13) 但是 1:5.9p1-5ubuntu1.1 正要被安装 依赖: sysv-rc (>= 2.88dsf-24) 但是 2.88dsf-13.10ubuntu11.1 正要被安装 或 file-rc (>= 0.8.16) 但无法安装它 依赖: lsb-base (>= 4.1+Debian3) 但是 4.0-0ubuntu20.3 正要被安装 依赖: openssh-sftp-server 但是它将不会被安装 推荐: ncurses-term 但无法安装它 推荐: ssh-import-id 但无法安装它 E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt-get -f install”(也可以指定一个解决办法)。 u@u-desktop:~$
最新发布
07-31
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值