我正在更新我的Debian 8 (Jessie)机器到Debian 9(拉伸)。
当前的内核版本是:
# 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。你知道我在这里遗漏了什么吗?
发布于 2018-09-12 18:52:14
你把杰西的回购系统弄坏了吗?如果没有,请尝试这样做,如果这是成功的,请执行apt update && apt upgrade
,尝试执行apt dist-upgrade
并重新启动以完成并确认升级。
https://serverfault.com/questions/930623
复制相似问题