升级Debain 7(Wheezy)到Debain 8(Jessie)

1.升级先备份好数据

2.修改/etc/apt/sources.list 加入如下几行
deb http://ftp.cn.debian.org/debian wheezy main contrib non-free deb-src http://ftp.cn.debian.org/debian wheezy main contrib non-free
deb http://ftp.cn.debian.org/debian wheezy-updates main contrib non-free
deb http://ftp.cn.debian.org/debian-security wheezy/updates main contrib non-free

3.执行apt-get update && apt-get upgrade && apt-get dist-upgrade 更新

4.修改/etc/apt/sources.list 文件中的Wheezy版本代码为Jessie 如下
deb http://ftp.cn.debian.org/debian/ jessie main contrib non-free deb-src http://ftp.cn.debian.org/debian/ jessie main contrib non-free
deb http://httpredir.debian.org/debian jessie-updates main contrib non-free
deb-src http://httpredir.debian.org/debian jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

5.再次执行apt-get update && apt-get upgrade && apt-get dist-upgrade

6.重启系统 reboot 使用lsbrelease -a 查看系统
lsb
release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.3 (jessie)
Release: 8.3
Codename: jessie

至此全文完