升级到Debian Jessie

上面的升级完成后,更新“/etc/apt/sources.list”:

# sed -i 's/wheezy/jessie/g' /etc/apt/sources.list

例如:

将 DEBIAN WHEEZY版本:
# cat /etc/apt/sources.list
deb http://security.debian.org/wheezy/updates main
deb-src http://security.debian.org/wheezy/updates main
deb http://ftp.at.debian.org/debian/wheezy main contrib non-free
deb-src http://ftp.at.debian.org/debian/wheezy main contrib non-free
改成 DEBIAN JESSIE版本
deb http://security.debian.org/jessie/updates main
deb-src http://security.debian.org/jessie/updates main
deb http://ftp.at.debian.org/debian/jessie main contrib non-free
deb-src http://ftp.at.debian.org/debian/jessie main contrib non-free

在此阶段,我们已准备好升级包:

# apt-get update
# apt-get upgrade

在升级期间,我们可以选择手动或者自动重新启动任何当前正在运行的服务的选项。
推荐的策略是为了执行手动重启,因为它提供了更大的灵活性。

如果包升级没有问题,我们准备执行从Debian Wheezy到Debian Jessie的完整系统分发升级。

# apt-get dist-upgrade

升级后,建议重新启动系统:

# reboot

检查升级后的系统信息:

root@debian:~# hostnamectl 
   Static hostname: debian
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 909d78b4d6cd403bb9cf478d1a3fb18d
           Boot ID: 17584ebda9d447cc9657fcbced3850d0
    Virtualization: oracle
  Operating System: Debian GNU/Linux 8 (jessie)
            Kernel: Linux 3.16.0-4-amd64
      Architecture: x86-64
如何将Debian Linux系统从Wheezy升级到Jessie稳定版本

完全升级系统

首先,完全升级我们当前的Wheezy Debian系统:

# apt-get update
# apt-get upgrade
# apt-get dist-upgrade
日期:2020-07-07 20:56:38 来源:oir作者:oir