I installed Debian 6 Squeez on my virtual machine and I can't install software using aptitude or apt-get. This is my sources.list file:root@debian:/etc/apt# cat sources.list# # deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official i386 DVD Binary-1 20120512-13:45]/ squeeze contrib maindeb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official i386 DVD Binary-1 20120512-13:45]/ squeeze contrib maindeb http://security.debian.org/ squeeze/updates main contribdeb-src http://security.debian.org/ squeeze/updates main contrib# squeeze-updates, previously known as 'volatile'# A network mirror was not selected during install.  The following entries# are provided as examples, but you should amend them as appropriate# for your mirror of choice.## deb http://ftp.debian.org/debian/ squeeze-updates main contrib# deb-src http://ftp.debian.org/debian/ squeeze-updates main contribroot@debian:/etc/apt# I tried commenting the cdrom lines, I also tried to add some sources I found on the net but none of them are working. Can anyone tell me why the default sources.list file doesn't have the appropriate configuration so I can easily aptitude install lftp for example? What can I do to install software from their repositories?
Can't install software in Debian 6
debian;apt;source;aptitude
As I can see, you don't have the main (non-updates, non-security) repositories (I wonder why). This is how should look your sources.list:deb http://archive.debian.org/debian oldstable main contribdeb http://ftp.debian.org/debian/ squeeze-updates main contribdeb http://security.debian.org/ squeeze/updates main contribAfter this, you should run:sudo apt-get updatesudo apt-get upgradeNow you can install the lftp package with just:sudo apt-get install lftp