Debian 无法更新和镜像源

邱秋 • 2023年09月12日 • 阅读:117 • linux

位于一台德国的vps, 用的 Debian, 这个逼最近, 突然apt-get 不好使了. 各种error .

连带其它的 npm ,pip 都不行. 各种检查, 最后看了下 镜像源. 果然. ping 都不行, 可能是update 的时候,系统有更新, 然后切换了新的 镜像源.

果断的换了:

编辑 /etc/apt/sources.list 写入新的 :

deb https://deb.debian.org/debian bookworm main non-free-firmware
deb-src https://deb.debian.org/debian bookworm main non-free-firmware

deb https://debian.mirror.constant.com bookworm main non-free-firmware
deb-src https://debian.mirror.constant.com bookworm main non-free-firmware

deb https://deb.debian.org/debian-security/ bookworm-security main non-free-firmware
deb-src https://deb.debian.org/debian-security/ bookworm-security main non-free-firmware

deb https://deb.debian.org/debian bookworm-updates main non-free-firmware
deb-src https://deb.debian.org/debian bookworm-updates main non-free-firmware

#deb https://deb.debian.org/debian bookworm-backports main non-free-firmware
#deb-src https://deb.debian.org/debian bookworm-backports main non-free-firmware

顺利解决.

德国, 干了什么. 最近很多都被Q了.

我,秦始皇,打钱!