O Debian continua pegando os pacotes do sid apesar de nenhum sid em /etc/apt/sources.list

2

Eu tenho uma máquina com o Debian Lenny instalado. De alguma forma, quando eu faço o apt-get update, recebo esta saída:

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

O mais estranho é que meu arquivo /etc/apt/sources.list é assim:

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

Como posso livrar-me do espelho lateral?

    
por xyzman 09.11.2011 / 06:25

2 respostas

4

Aparentemente, além do /etc/apt/sources.list, há também o diretório /etc/apt/sources.list.d, que permite que você tenha listas de pacotes adicionais. No meu caso, eu tenho

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

que aparentemente foi adicionado pelo meu provedor de VDS por algum motivo.

De acordo com o homem,

The /etc/apt/sources.list.d directory provides a way to add sources.list entries in separate files. The format is the same as for the regular sources.list file. File names need to end with .list and may only contain letters (a-z and A-Z), digits (0-9), underscore (_), hyphen (-) and period (.) characters. Otherwise they will be silently ignored.

    
por 09.11.2011 / 16:00
0

Parece que você está em um ambiente chroot, verifique com algo assim:

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

E se sim, simplesmente digite exit para sair.

    
por 09.11.2011 / 06:52

Tags