博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Package 'openssh-server' has no installation candidate 问题解决
阅读量:4157 次
发布时间:2019-05-26

本文共 1370 字,大约阅读时间需要 4 分钟。

Package 'openssh-server' has no installation candidate

 
(2015-02-26 12:32:24)
E: Package 'openssh-server' has no installation candidate
apt-get update
apt-get upgrade
Ubuntu 11.04 (Natty) 已经停止支持,但可以使用old-releases源了,先备份源列表文件: 
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup 
sudo gedit /etc/apt/sources.list 
把里面的内容替换为以下内容: 
deb http://old-releases.ubuntu.com/ubuntu/ natty main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/ natty-proposed main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse 
deb-src http://old-releases.ubuntu.com/ubuntu/ natty main restricted universe multiverse 
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse 
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse 
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-proposed main restricted universe multiverse 
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse 
重载源列表,使配置生效: 
sudo apt-get update 
安装SSH服务器和客户端: 
sudo apt-get install openssh-server openssh-client 

转载地址:http://lbyxi.baihongyu.com/

你可能感兴趣的文章
使用bash解析xml
查看>>
android系统提供的常用命令行工具
查看>>
【Python基础1】变量和字符串定义
查看>>
【Python基础2】python字符串方法及格式设置
查看>>
【Python】random生成随机数
查看>>
【Python基础3】数字类型与常用运算
查看>>
【Python基础4】for循环、while循环与if分支
查看>>
【Python基础6】格式化字符串
查看>>
【Python基础7】字典
查看>>
【Python基础8】函数参数
查看>>
【Python基础9】浅谈深浅拷贝及变量赋值
查看>>
Jenkins定制一个具有筛选功能的列表视图
查看>>
【Python基础10】探索模块
查看>>
【Python】将txt文件转换为html
查看>>
[Linux]Shell脚本实现按照模块信息拆分文件内容
查看>>
idea添加gradle模块报错The project is already registered
查看>>
在C++中如何实现模板函数的外部调用
查看>>
在C++中,关键字explicit有什么作用
查看>>
C++中异常的处理方法以及使用了哪些关键字
查看>>
内存分配的形式有哪些? C++
查看>>