如何从 Debian 8 Jessie 升级到 Debian 9 Stretch?

如何从 Debian 8 Jessie 升级到 Debian 9 Stretch?

我尝试apt-get update && apt-get upgrade && apt-get dist-upgrade以 root 身份运行命令,但没有任何反应。我认为问题在于不完全完整的 apt 源。我对吗?我需要设置哪些来源?

答案1

更新您的 apt 存储库以使用 stretch 而不是 jessie(这可以使用文本编辑器手动完成,但可以使用 sed 自动更新文件。)

[user@debian-9 ~]$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list

请注意:Debian 9 (Stretch) 被标记为测试是有原因的。使用时您可能会注意到稳定性问题。

答案2

以下文章提供了将 Debian 8 Jessie 升级到 Debian 9 Stretch 所需执行的具体步骤:

https://economictheoryblog.com/2018/08/23/upgrade-debian-8-to-9/

答案3

echo 'deb http://httpredir.debian.org/debian/ stretch main contrib non-free
deb-src http://httpredir.debian.org/debian/ stretch main contrib non-free

deb http://httpredir.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://httpredir.debian.org/debian/ stretch-updates main contrib non-free

deb http://httpredir.debian.org/debian/ stretch-proposed-updates main contrib non-free
deb-src http://httpredir.debian.org/debian/ stretch-proposed-updates main contrib non-free

deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free' > /etc/apt/sources.list.d/stretch.list

相关内容