1、问题
下午需要配置C++的makefile环境, 看了看自己的虚拟机,unbuntu的系统还在,没有删除, 然后开始安装SecureCRT , 连接Ubuntu报错,看了看系统, 没有安装 sshd , 直接apt-get ,试了一下,无法得到源。 在这里其实耽误了1个多小时
2、解决步骤
A、更改下载源
命令行:
cd /etc/apt sudo cp sources.list sources.list.backup sudo gedit sources.list删除所有的内容, 加上源,我在网上好了好多,全部粘贴进去了
--------------------------------------
比较快的源:
搜狐源:
deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
deb http://mirrors.sohu.com/ubuntu/ precise universe
deb-src http://mirrors.sohu.com/ubuntu/ precise universe
deb http://mirrors.sohu.com/ubuntu/ precise-updates universe
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe
deb http://mirrors.sohu.com/ubuntu/ precise multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse
deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
网易源:
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb http://mirrors.163.com/ubuntu/ precise universe
deb-src http://mirrors.163.com/ubuntu/ precise universe
deb http://mirrors.163.com/ubuntu/ precise-updates universe
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
deb http://mirrors.163.com/ubuntu/ precise multiverse
deb-src http://mirrors.163.com/ubuntu/ precise multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
更新看看速度:
-------------------------------------------
继续操作
开始安装 ssh server (ssh client 默认是安装的)
(建议重启一下机器,我是重启后才能操作的!!)
更新apt-get
sudo apt-get update
安装openssh-server
sudo apt-get install openssh-server
提示报错 (大概意思是 client的版本有问题,英文不太好,只看了个大概)
重新安装client
安装命令
sudo apt-get install openssh-client=1:6.6p1-2unbuntu2.7
接着再次执行
sudo apt-get install openssh-server
查看进程
pe -e | grep ssh
搞定! (环境配置不能着急,一步步来, 没有环境,练习都没法练习!!)
0则评论给“Ubuntu 14.10 apt-get 报错”