Debian 无法更新和镜像源

2023-09-13 08:12:21 浏览数 (3)

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

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

果断的换了:

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

代码语言:javascript复制
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了.

0 人点赞