作者:mk
转自:http://blog.csdn.net/liumingkong/article/details/7025168
1.切换到资源列表文件
vim /etc/apt/sources.list
2.注释并添加新的apt源
注释掉deb和deb-src后添加
deb http://mirror.dlut.edu.cn/debian lenny main non-free contrib
deb-src http://mirror.dlut.edu.cn/debian lenny main non-free contrib配置apt的安全源
deb http://security.debian.org/ stable/updates main
deb-src http://security.debian.org/ stable/updates main
3.保存文件更新源
apt-get update //更新
apt-get upgrade //升级
apt-get install ssh 安装ssh
apt-cache search ssh 搜索ssh
apt-get remove ssh 卸载ssh