Debian Wheezy /etc/apt/sources.list on a clean installation

After doing a clean installation, trying to use the command to install something

apt-get install byobu

I get error:

E: Unable to locate package byobu

I discovered that the default /etc/apt/sources.list file does not have enough sources to get allot of the basic packages.

In my case, the default was:

# 
 
# deb cdrom:[Debian GNU/Linux 7.6.0 _Wheezy_ - Official amd64 xfce-CD Binary-1 20140712-14:09]/ wheezy main
 
deb cdrom:[Debian GNU/Linux 7.6.0 _Wheezy_ - Official amd64 xfce-CD Binary-1 20140712-14:09]/ wheezy main
 
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
 
# wheezy-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/ wheezy-updates main
#deb-src http://ftp.debian.org/debian/ wheezy-updates main

Appending those new lines to that file, will get everything working fine again:

deb http://ftp.debian.org/debian/ wheezy main
deb-src http://ftp.debian.org/debian/ wheezy main

After doing so, do not forget to run this

apt-get update
apt-get upgrade

To get better download speeds, you should try out some of those mirrors instead of the default:

https://www.debian.org/mirror/list

Leave a Reply

Your email address will not be published. Required fields are marked *

(Your message will only be visible after moderation)