$ cat /etc/os-release
或者
$ cat /etc/debian_version
$ apt-get update && apt-get upgrade
$ sed -i 's/wheezy/jessie/g' /etc/apt/sources.list
打开文件 /etc/apt/sources.list
, 修改内容如下:
deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian-archive/debian/ jessie-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
deb-src http://mirrors.163.com/debian-archive/debian/ jessie-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
$ apt-get update && apt-get upgrade
$ apt dist-upgrade
$ reboot
$ apt-get autoremove
操作步骤和 Debian 7 - 8 几乎一样,只是需要替换不同的源,也就是之改变中的 2、3 步骤。
$ sed -i 's/jessie/Stretch/g' /etc/apt/sources.list
打开文件 /etc/apt/sources.list
, 修改内容如下:
deb http://mirrors.163.com/debian/ stretch main non-free contrib
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
操作步骤和 Debian 7 - 8 几乎一样,只是需要替换不同的源,也就是之改变中的 2、3 步骤。
$ sed -i 's/stretch/buster/g' /etc/apt/sources.list
打开文件 /etc/apt/sources.list
, 修改内容如下:
deb http://mirrors.163.com/debian/ buster main non-free contrib
deb http://mirrors.163.com/debian/ buster-updates main non-free contrib
deb http://mirrors.163.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ buster main non-free contrib
deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib