Debian 5 平滑 Debian 6
[1]
http://www.google.com.hk/search?q=Debian+5++++%E5%B9%B3%E6%BB%91++Debian+6&btnG=Google+%E6%90%9C%E7%B4%A2&hl=zh-CN&newwindow=1&safe=strict&biw=994&bih=510&sa=2
[2]
http://www.idcfree.com/debian-debian-5-debian-6.html
Debian安全升级Debian 5至Debian 6
第一步:修改更新源为debian 6.0
# vi /etc/apt/sources.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
deb http://volatile.debian.org/debian-volatile squeeze/volatile main
deb-src http://volatile.debian.org/debian-volatile squeeze/volatile main
第二步:更新源及软件包
# apt-get update
# apt-get install apt dpkg aptitude
# apt-get dist-upgrade
第三步:重启
# reboot
第四步:检查升级后系统运行情况
# lsb_release -a
# netstat -tulpn
# tail -f /var/log/messages
# other log files for linuxany.com
[3]
http://freshventure.wordpress.com/2011/02/12/%E4%BB%8Edebian-5%E5%8D%87%E7%BA%A7%E5%88%B0debian-6/
都说Debian升级平滑,其实也不尽然。
Lindoe有一个说明,但是仍然遇到问题。
1. GNUPG Key过期
W: GPG error: http://security.debian.org squeeze/updates Release:
The following signatures couldn’t be verified because the public key is
not available: NO_PUBKEY AED4B06F473041FA
W: GPG error: http://ftp.debian.org squeeze Release: The following
signatures couldn’t be verified because the public key is not
available: NO_PUBKEY 9AA38DCD55BE302B
通过apt-get install debian-archive-keyring解决
2. insserv: warning: script ‘S10vzquota’ missing LSB tags and overrides, insserv: warning: script ‘vzquota’ │
│ missing LSB tags and overrides,
有个德国人有办法,手工编辑/etc/init.d/openvz 脚本,在开头添加以下注释,
#!/bin/sh
### BEGIN INIT INFO
# Provides: vzquota
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start vzquota at the end of boot
# Description: This command is used to configure and see disk quota statistics for Containers.
### END INIT INFO
就可以了。
然后运行
dpkg-reconfigure sysv-rc
可以解决
这个问题似乎还是不去解决得好
[4]
http://www.mgrei.com/archives/258.html
Debian GNU/Linux 6.0 "Squeeze"于昨天正式发布,附带软件包版本与Ubuntu 10.04大致相同,使用内核2.6.32,值得升级一试。不过对于VPS用户,升级就有点麻烦了,研究了半天,终于找到方法,记录下来以供大家参考下。
1,修改更新列表,已获得Debian 6更新源:
编辑“/etc/apt/sources.list”,将所有地址用“#”注释掉:
#deb http://ftp2.de.debian.org/debian lenny main contrib non-free
#deb http://ftp2.de.debian.org/debian-security lenny/updates main contrib non-free
lenny是Debian 5 中所用的版本,Debian 6之后,我们要选用Squeeze 版本作为升级源。从以下地址选择离你最快的Debian6更新地址:
# 这个ftp的源速度很快(将http改为ftp也可)
deb http://ftp.debian.org/debian/ squeeze main non-free contrib
deb http://ftp.debian.org/debian/ squeeze-proposed-updates main non-free contrib
deb http://ftp.us.debian.org/debian/ squeeze main non-free contrib
deb http://ftp.us.debian.org/debian/ squeeze-proposed-updates main non-free contrib
# 官方安全更新的源
deb http://security.debian.org/ squeeze/updates main
# 这个多媒体的源需要额外的公钥,请参考它的官网页面一开头的说明,
# 地址:http://www.debian-multimedia.org/
deb http://ftp.debian-multimedia.org/ squeeze main non-free
# 这个台湾的源速度一直就很不错
deb http://debian.nctu.edu.tw/debian/ squeeze main non-free contrib
deb http://debian.nctu.edu.tw/debian/ squeeze-proposed-updates main non-free contrib
# 另一个台湾的源
deb http://ftp.tw.debian.org/debian/ squeeze main non-free contrib
deb http://ftp.tw.debian.org/debian/ squeeze-proposed-updates main non-free contrib
deb http://ftp.tw.debian.org/debian-multimedia/ squeeze main non-free
# 上海交大的源
deb http://ftp.sjtu.edu.cn/debian/ squeeze main non-free contrib
deb http://ftp.sjtu.edu.cn/debian/ squeeze-proposed-updates main non-free contrib
deb http://ftp.sjtu.edu.cn/debian-security/ squeeze/updates main non-free contrib
# 163的源
deb http://mirrors.163.com/debian/ squeeze main non-free contrib
deb http://mirrors.163.com/debian/ squeeze-proposed-updates main non-free contrib
deb http://mirrors.163.com/debian-security/ squeeze/updates main non-free contrib
柒月的测试VPS离第一个最近最快,所以直接选择了第一个。
添加完毕后,保存“/etc/apt/sources.list”并退出。
2,使用Debian升级命令对系统进行升级:
apt-get update
apt-get install apt dpkg aptitude
apt-get dist-upgrade
一路选择默认、回车即可。网上有人反映apt-get 升级系统版本后,很容易使系统崩溃,如果发生错误,可以使用“aptitude”升级系统:
aptitude update
aptitude upgrade && aptitude install
aptitude dist-upgrade
更新完毕后,重启VPS:
reboot
3,重启后,验证是否升级成功:
1)查看Debian版本是否升级成功:
lsb_release -a
2)查看所需端口是否正常开启:
netstat -tulpn
3)安装后,VPS会多出一些不必要的程序,删除即可:
apt-get remove portmap bind9 dbus
4)内核升级:
OpenVZ内核是无法升级的,XEN或独服可以参考:Ubuntu 内核升级
Debian 内核版本号查看命令:uname -r
[5]
[6]