尽pipe在/etc/apt/sources.list中没有sid,Debian仍然从sid抓取软件包

我有一台安装了Debian Lenny的机器。 不知何故,当我做apt-get更新,我收到这个输出:

sudo apt-get update Get:1 http://ftp.de.debian.org lenny Release.gpg [1034B] Ign http://ftp.de.debian.org lenny/main Translation-en_US Ign http://ftp.de.debian.org lenny/contrib Translation-en_US Get:2 http://mirror.yandex.ru sid Release.gpg [836B] Ign http://ftp.de.debian.org lenny/non-free Translation-en_US Hit http://ftp.de.debian.org lenny/volatile Release.gpg Ign http://ftp.de.debian.org lenny/volatile/main Translation-en_US Ign http://ftp.de.debian.org lenny/volatile/contrib Translation-en_US Ign http://ftp.de.debian.org lenny/volatile/non-free Translation-en_US Hit http://ftp.de.debian.org lenny/updates Release.gpg Ign http://ftp.de.debian.org lenny/updates/main Translation-en_US Ign http://ftp.de.debian.org lenny/updates/contrib Translation-en_US Ign http://ftp.de.debian.org lenny/updates/non-free Translation-en_US Ign http://mirror.yandex.ru sid/main Translation-en_US Hit http://ftp.de.debian.org lenny Release Hit http://ftp.de.debian.org lenny/volatile Release Hit http://ftp.de.debian.org lenny/updates Release Hit http://mirror.yandex.ru sid Release Ign http://ftp.de.debian.org lenny/main Packages/DiffIndex Ign http://ftp.de.debian.org lenny/contrib Packages/DiffIndex Ign http://ftp.de.debian.org lenny/non-free Packages/DiffIndex Ign http://ftp.de.debian.org lenny/volatile/main Packages/DiffIndex Ign http://ftp.de.debian.org lenny/volatile/contrib Packages/DiffIndex Ign http://ftp.de.debian.org lenny/volatile/non-free Packages/DiffIndex Ign http://ftp.de.debian.org lenny/updates/main Packages/DiffIndex Hit http://mirror.yandex.ru sid/main Packages/DiffIndex Ign http://ftp.de.debian.org lenny/updates/contrib Packages/DiffIndex Ign http://ftp.de.debian.org lenny/updates/non-free Packages/DiffIndex Hit http://ftp.de.debian.org lenny/main Packages Hit http://ftp.de.debian.org lenny/contrib Packages Hit http://ftp.de.debian.org lenny/non-free Packages Hit http://ftp.de.debian.org lenny/volatile/main Packages Hit http://ftp.de.debian.org lenny/volatile/contrib Packages Hit http://ftp.de.debian.org lenny/volatile/non-free Packages Hit http://ftp.de.debian.org lenny/updates/main Packages Hit http://ftp.de.debian.org lenny/updates/contrib Packages Hit http://ftp.de.debian.org lenny/updates/non-free Packages Hit http://mirror.yandex.ru sid/main Sources/DiffIndex Fetched 1870B in 2s (833B/s) Reading package lists... Done 

最奇怪的是,我的/etc/apt/sources.list文件如下所示:

 deb http://ftp.de.debian.org/debian lenny main contrib non-free deb http://ftp.de.debian.org/debian-volatile lenny/volatile main contrib non-free deb http://ftp.de.debian.org/debian-security lenny/updates main contrib non-free 

我怎么能摆脱sid镜子被抛出?

显然,除了/etc/apt/sources.list之外,还有/etc/apt/sources.list.d目录,允许你添加额外的软件包列表。在我的情况下,我有

 $ ls -l /etc/apt/sources.list.d total 4 -rw-r--r-- 1 root root 94 2010-12-16 12:15 sid.list 

这显然是由我的VDS提供商出于某种原因添加的。

据男子说,

/etc/apt/sources.list.d目录提供了一种将sources.list条目添加到单独文件中的方法。 格式与常规的sources.list文件相同。 文件名需要以.list结尾,可能只包含字母(az和AZ),数字(0-9),下划线(_),连字符( – )和句点(。)字符。 否则,他们将被默默地忽略。

它看起来像你在chroot环境中,validation这样的东西:

 [ "$(stat -c %d:%i /)" != "$(stat -c %d:%i /proc/1/root/.)" ] && echo "I'm in a chroot" || echo "main system" 

如果是这样,只需inputexit退出。