1、首先备份Ubuntu源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
2、修改更新源
sudo gedit /etc/apt/sources.list (打开Ubuntu源列表文件)
3、将下面的代码粘贴进去
#网易 Ubuntu 11.10 源
deb http://mirrors.163.com/ubuntu/ oneiric main universe res tricted multiverse
deb-src http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ oneiric-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ oneiric-up dates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ oneiric-propo sed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ oneiric-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-updates universe main multiverse restricted
4、通知ubuntu启用新的更新源
sudo apt-get update
5.安装ssh
sudo apt-get install openssh-server
6.如果出错检查下网络是否连通再执行
sudo apt-get update --fix-missing
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
2、修改更新源
sudo gedit /etc/apt/sources.list (打开Ubuntu源列表文件)
3、将下面的代码粘贴进去
#网易 Ubuntu 11.10 源
deb http://mirrors.163.com/ubuntu/ oneiric main universe res tricted multiverse
deb-src http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ oneiric-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ oneiric-up dates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ oneiric-propo sed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ oneiric-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-updates universe main multiverse restricted
4、通知ubuntu启用新的更新源
sudo apt-get update
5.安装ssh
sudo apt-get install openssh-server
6.如果出错检查下网络是否连通再执行
sudo apt-get update --fix-missing