![更新](https://linux22.com/image/226470/%E6%9B%B4%E6%96%B0.png)
昨天我进行了 apt-get 更新/升级,但不知何故安装了这个不稳定的发行版trixie/sid
*5#§!?+ 这是怎么发生的?
我如何回到 Debian 11 Buster?
# cat /etc/debian_version
trixie/sid
这是生产服务器
更新
# apt policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 https://notesalexp.org/tesseract-ocr5/bullseye bullseye/main amd64 Packages
release v=5.0,o=Debian,a=unstable,n=bullseye,c=main,b=amd64
origin notesalexp.org
500 https://packages.sury.org/php bullseye/main amd64 Packages
release o=deb.sury.org,a=bullseye,n=bullseye,c=main,b=amd64
origin packages.sury.org
500 http://repo.percona.com/prel/apt bullseye/main amd64 Packages
release v=1.0,o=Percona Development Team,a=stable,n=bullseye,l=percona,c=main,b=amd64
origin repo.percona.com
500 http://repo.percona.com/percona/apt bullseye/main amd64 Packages
release v=1.0,o=Percona Development Team,n=bullseye,l=percona,c=main,b=amd64
origin repo.percona.com
500 http://nginx.org/packages/mainline/debian bullseye/nginx amd64 Packages
release v=11.0,o=nginx,a=stable,n=bullseye,l=nginx,c=nginx,b=amd64
origin nginx.org
100 http://deb.debian.org/debian bullseye-backports/main amd64 Packages
release o=Debian Backports,a=bullseye-backports,n=bullseye-backports,l=Debian Backports,c=main,b=amd64
origin deb.debian.org
500 http://ftp.de.debian.org/debian sid/main amd64 Packages
release o=Debian,a=unstable,n=sid,l=Debian,c=main,b=amd64
origin ftp.de.debian.org
500 http://deb.debian.org/debian bullseye-updates/main amd64 Packages
release v=11-updates,o=Debian,a=oldstable-updates,n=bullseye-updates,l=Debian,c=main,b=amd64
origin deb.debian.org
500 http://security.debian.org bullseye-security/non-free amd64 Packages
release v=11,o=Debian,a=oldstable-security,n=bullseye-security,l=Debian-Security,c=non-free,b=amd64
origin security.debian.org
500 http://security.debian.org bullseye-security/main amd64 Packages
release v=11,o=Debian,a=oldstable-security,n=bullseye-security,l=Debian-Security,c=main,b=amd64
origin security.debian.org
500 http://deb.debian.org/debian bullseye/contrib amd64 Packages
release v=11.8,o=Debian,a=oldstable,n=bullseye,l=Debian,c=contrib,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian bullseye/non-free amd64 Packages
release v=11.8,o=Debian,a=oldstable,n=bullseye,l=Debian,c=non-free,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian bullseye/main amd64 Packages
release v=11.8,o=Debian,a=oldstable,n=bullseye,l=Debian,c=main,b=amd64
origin deb.debian.org
500 http://mirror.hetzner.de/debian/packages bullseye-updates/main amd64 Packages
release v=11-updates,o=Debian,a=oldstable-updates,n=bullseye-updates,l=Debian,c=main,b=amd64
origin mirror.hetzner.de
500 http://mirror.hetzner.de/debian/packages bullseye/non-free amd64 Packages
release v=11.8,o=Debian,a=oldstable,n=bullseye,l=Debian,c=non-free,b=amd64
origin mirror.hetzner.de
500 http://mirror.hetzner.de/debian/packages bullseye/contrib amd64 Packages
release v=11.8,o=Debian,a=oldstable,n=bullseye,l=Debian,c=contrib,b=amd64
origin mirror.hetzner.de
500 http://mirror.hetzner.de/debian/packages bullseye/main amd64 Packages
release v=11.8,o=Debian,a=oldstable,n=bullseye,l=Debian,c=main,b=amd64
origin mirror.hetzner.de
Pinned packages:
来源.list
deb http://mirror.hetzner.de/debian/packages bullseye main contrib non-free
deb http://mirror.hetzner.de/debian/security bullseye/updates main contrib non-free
deb http://mirror.hetzner.de/debian/packages bullseye-updates main contrib non-free
#
# deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 NETINST 20190706-10:23]/ bullseye main
#deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 NETINST 20190706-10:23]/ bullseye main
deb http://deb.debian.org/debian/ bullseye main non-free contrib
# deb-src http://deb.debian.org/debian/ bullseye main non-free contrib
deb http://security.debian.org bullseye-security main contrib non-free
# deb-src http://security.debian.org bullseye-security main contrib non-free
# bullseye-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
# deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-free
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
deb http://ftp.de.debian.org/debian sid main
deb http://deb.debian.org/debian bullseye-backports main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out entries below, but any other modifications may be lost.
# Use command 'dpkg-reconfigure mysql-apt-config' as root for modifications.
deb http://repo.mysql.com/apt/debian/ bullseye mysql-apt-config
deb http://repo.mysql.com/apt/debian/ bullseye mysql-5.7
deb http://repo.mysql.com/apt/debian/ bullseye mysql-tools
#deb http://repo.mysql.com/apt/debian/ bullseye mysql-tools-preview
deb-src http://repo.mysql.com/apt/debian/ bullseye mysql-5.7
deb http://nginx.org/packages/mainline/debian/ bullseye nginx
#
# This repo is managed by "percona-release" utility, do not edit!
#
deb http://repo.percona.com/percona/apt bullseye main
deb-src http://repo.percona.com/percona/apt bullseye main
#
# This repo is managed by "percona-release" utility, do not edit!
#
deb http://repo.percona.com/percona/apt buster main
deb-src http://repo.percona.com/percona/apt buster main
#
# This repo is managed by "percona-release" utility, do not edit!
#
deb http://repo.percona.com/prel/apt bullseye main
deb-src http://repo.percona.com/prel/apt bullseye main
deb https://packages.sury.org/php/ bullseye main
deb https://notesalexp.org/tesseract-ocr5/bullseye/ bullseye main
答案1
这
deb http://ftp.de.debian.org/debian sid main
行配置 sid(不稳定)存储库。由于没有配置固定,这有效地将系统设置为跟踪不稳定状态,并且您的升级已升级到该状态(升级是否完成取决于您是否使用upgrade
或dist-upgrade
/ full-upgrade
)。
要恢复到 Debian 11,请删除该sid
行,然后查看如何将 Debian 从测试恢复到稳定?(替换stretch
为bullseye
)。在尝试恢复生产服务器之前,您应该在测试系统上进行练习。