/etc/apt/sources.list
deb http://deb.debian.org/debian bullseye main deb-src http://deb.debian.org/debian bullseye main deb http://security.debian.org/debian-security bullseye-security main deb-src http://security.debian.org/debian-security bullseye-security main deb http://deb.debian.org/debian bullseye-updates main deb-src http://deb.debian.org/debian bullseye-updates main
另外,你可以使用下面的 sed 命令来代替手动编辑文件。
sudo sed -i 's/buster/bullseye/g' /etc/apt/sources.listsudo sed -i 's/buster/bullseye/g' /etc/apt/sources.list.d/*.listsudo sed -i 's#/debian-security bullseye/updates# bullseye-security#g' /etc/apt/sources.list
将终端输出设置为只有英文。
Restart services during package upgrades without asking?
在升级过程中,你可能还会被问到其他各种问题,比如你是想保留现有的配置文件,还是安装软件包维护者的版本。仔细阅读这些信息,如果你没有对文件做任何自定义的修改,那么输入Y是安全的;否则,要保留当前的配置,请输入N。