netAlchemist 大佬有话说 :
请教大佬hetzner的debian source问题
我看了一下hetzner debian11的sources.list里面已经没有hetzner的域名了,用的是debian官方的源,但是apt update的时候还是看到hetzner.de的域名:o
请教一下怎么禁用这个hetzner的源呢,只用debian官方源
root@:~# cat /etc/apt/sources.list
deb http://deb.debian.org/debian bullseye main contrib non-free
# deb-src http://deb.debian.org/debian bullseye main contrib non-free
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
# deb http://deb.debian.org/debian bullseye-backports main contrib non-free
# deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
# deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
root@:~# apt update -y
Hit:1 http://mirror.hetzner.de/debian/packages bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://security.debian.org/debian-security bullseye-security InRelease
Hit:5 http://mirror.hetzner.de/debian/packages bullseye-updates InRelease
Hit:6 http://mirror.hetzner.de/debian/packages bullseye-backports InRelease
Hit:7 http://mirror.hetzner.de/debian/security bullseye-security InRelease
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
2 packages can be upgraded. Run ‘apt list –upgradable’ to see them.
ApkB 大佬有话说 :
看看目录sourcelist.d下是否有其它文件
h20 大佬有话说 :
说明你对apt的结构不了解,sourcelist.d