Debian 5升级至Debian 6
1.编辑/etc/apt/source.list文件,添加如下几行:
deb http://ftp.us.debian.org/debian/ squeeze main
deb-src http://ftp.us.debian.org/debian/ squeeze main
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
# squeeze-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ squeeze-updates main
deb-src http://ftp.us.debian.org/debian/ squeeze-updates main
如果是服务器的所在地不是美国,则只需将以上链接中的us改为服务器所在地对应的国家简称就行了,如:中国是cn、英国是uk
Debian全球镜像列表:http://www.debian.org/mirror/list
2.下载Debian 6的PUBLIC KEY
wget http://ftp-master.debian.org/archive-key-6.0.asc
Debian Archive Signing Keys下载页面:http://ftp-master.debian.org/keys.html
3.导入PUBLIC KEY,命令如下:
apt-key add archive-key-6.0.asc
4.更新源
apt-get update
5.更新现有软件包
apt-get upgrade
6.更新内核
apt-cache search linux-p_w_picpath-2.6 //查找最适合的内核
apt-get install linux-p_w_picpath-2.6.32-5-686 //更新内核
7.清理不再需要的软件包
apt-get autoremove
8.安装udev,之后重启电脑
apt-get install udev
9.版本升级,之后再次重启电脑
apt-get dist-upgrade
备注:
1.升级的时间最好是在装好系统之后就开始(因为部分VPS只提供Debian 5,为了用更新、更安全的软件,此时系统就有必要升级一下)
2.Debian 5的代号是lenny,Debian 6的代号是squeeze
3.更新的过程中报过一个小错误,说locale的设置不正确,但并没有影响系统版本的升级,可能是因为我很多东西都是选的美国的,但时区选的中国的原因吧,下次全选美国的,装好后再更改系统时区
thanks line:http://godontop.com/43.html
转载于:https://blog.51cto.com/lansgg/983702