我正在将我的 Debian 8(Jessie)机器更新到 Debian 9(Stretch)
当前内核版本是:
# uname -a
Linux host 4.9.0-0.bpo.6-amd64 #1 SMP Debian 4.9.88-1+deb9u1~bpo8+1 (2018-05-13) x86_64 GNU/Linux
现在我已确保我的所有软件包在 Debian 8 上都是最新的。
# apt update
.
.
.
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
我的/etc/apt/sources.list.d/
文件夹包含以下内容:
# ls -ltrh
total 16K
-rw-r--r-- 1 root root 575 Nov 22 2017 jessie.list
-rw-r--r-- 1 root root 72 Nov 22 2017 download_docker_com_linux_debian.list
-rw-r--r-- 1 root root 93 Jan 18 2018 jessie-backports.list
操作系统详细信息如下:
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
现在,作为实际升级到 Debian 9 的一部分,我已经在以下位置添加了以下文件/etc/apt/sources.list.d/
:
# cat stretch.list
deb https://my-repository.com/debian/ stretch main contrib non-free
deb https://my-repository.com/debian/ stretch-updates main contrib non-free
deb https://my-repository.com/debian/ stretch-proposed-updates main contrib non-free
deb https://my-repository.com/debian-security/ stretch/updates main contrib non-free
现在我已经添加了这个文件,我做了一个apt update
并且可以看到它确实正在读取拉伸源。
当我这样做时apt upgrade
它什么也不做并说All packages are up to date.
以下 2 个命令返回0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
它似乎没有升级到 Debian 9。知道我在这里遗漏了什么吗?
答案1
您是否已禁用 Jessie repo?如果没有,请尝试执行,apt update && apt upgrade
如果成功,请尝试执行apt dist-upgrade
并重新启动以完成并确认升级。