如何继续使用 Debian buster

如何继续使用 Debian buster

我最初安装的是 Debian Stretch,当时它是“稳定的”。我需要一些它没有的新软件包,所以我升级到 Debian 测试,这真是太棒了。目前我的lsb_release -a命令返回 Debian 10 (buster)。

看来最近 Debian 更改了它的软件包,所以现在我收到来自 Synaptic 的消息:

Repository 'http://deb.debian.org/debian stretch Release' changed its 'Suite' value from 'stable' to 'oldstable'
This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Repository 'http://ftp.us.debian.org/debian testing InRelease' changed its 'Codename' value from 'buster' to 'bullseye'

好吧,有道理。但是,我还不想升级到靶心。我想继续使用 Buster,当我决定升级到 Bullseye 时,我会手动执行此操作。我应该如何编辑我的存储库来完成此任务?目前我的存储库如下所示:

$ grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/*
/etc/apt/sources.list:# deb cdrom:[Official Debian GNU/Linux Live 9.9.0 cinnamon 2019-04-27T11:50]/ stretch main 
/etc/apt/sources.list:# deb cdrom:[Official Debian GNU/Linux Live 9.9.0 cinnamon 2019-04-27T11:50]/ stretch main 
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ftp.us.debian.org/debian/ testing main non-free contrib 
/etc/apt/sources.list:deb-src http://ftp.us.debian.org/debian/ testing main non-free contrib 
/etc/apt/sources.list.d/base.list:deb http://deb.debian.org/debian/ stretch main 
/etc/apt/sources.list.d/base.list:# deb-src http://deb.debian.org/debian/ stretch main 
/etc/apt/sources.list.d/base.list:
/etc/apt/sources.list.d/base.list:
/etc/apt/sources.list.d/base.list:
/etc/apt/sources.list.d/base.list:
/etc/apt/sources.list.d/base.list:
/etc/apt/sources.list.d/base.list:
/etc/apt/sources.list.d/home:hawkeye116477:waterfox.list:deb http://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/Debian_9.0/ /
/etc/apt/sources.list.d/home:manuelschneid3r.list:deb http://download.opensuse.org/repositories/home:/manuelschneid3r/Debian_9.0/ /
/etc/apt/sources.list.d/nodesource.list:deb https://deb.nodesource.com/node_12.x stretch main
/etc/apt/sources.list.d/nodesource.list:deb-src https://deb.nodesource.com/node_12.x stretch main

答案1

您应该只能在sources.list中更改为testingbuster但请务必删除base.list,因为它仍然指向Stretch。

home:hawkeye116477:waterfox.list仍然home:manuelschneid3r.list指向 Stretch (Debian 9.0),但请检查相应的上游,看看 Buster (Debian 10.0) 的正确 URL 是什么。

最后,检查 Node 文档并更正 URLdeb.nodesource.com

答案2

您可以sources.list合并base.list

rm /etc/apt/sources.list.d/base.list

然后编辑你的/etc/apt/sources.list如下:

deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free

deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free

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

添加新键:

wget -nv https://download.opensuse.org/repositories/home:hawkeye116477:waterfox/Debian_10/Release.key -O Release.key
apt-key add - < Release.key
wget -nv https://download.opensuse.org/repositories/home:manuelschneid3r/Debian_10/Release.key -O Release.key
apt-key add - < Release.key

编辑home:hawkeye116477:waterfox.list然后用home:manuelschneid3r.list更改。Debian_9.0Debian_10

更改stretchbuster under/etc/apt/sources.list.d/nodesource.list然后运行:

apt update
apt upgrade

示例sources.list

主页:manuelschneid3r 项目

主页:hawkeye116477:waterfox 项目

相关内容