Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a machine with Debian Lenny installed. Somehow, when I do apt-get update, I receive this output:

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

The most strange thing, my /etc/apt/sources.list file looks like this:

deb lenny main contrib non-free
deb lenny/volatile main contrib non-free
deb lenny/updates main contrib non-free

How I can rid of sid mirror being thrown in?

share|improve this question

2 Answers 2

Apparently, in addition to /etc/apt/sources.list there is also /etc/apt/sources.list.d directory, that allows you to have additional package lists thrown in. In my case, I have

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

which was apparently added by my VDS provider for some reason.

According to man,

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.

share|improve this answer

It looks like you're in a chroot environment, verify with something like this:

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

And if so, simply type exit to quit.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.