Blog

Enabling repositories at sources.list on a apt enabled lenny server

Published on: August 13, 2009 by Arnold Pablo

Enabling repositories at sources.list on a apt enabled lenny server

Scenario:

While setting up a debian server, the initial hurdle was to get the packages downloading from the repositories. It was redirecting to CDRom, asking for CDRom to be inserted. Let us see how to enable APT repository at the source.list

Get a mirror close to the server from http://www.debian.org/mirror/list . Edited the file /etc/apt/sources.list

Commented out the lines,

#deb cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ – Official amd64 CD Binary-1 20090214-19:11]/ lenny main
#deb cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ – Official amd64 CD Binary-1 20090214-19:11]/ lenny main

and added below lines

deb http://ftp.au.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.au.debian.org/debian/ lenny main

Finally reloaded the aptitude with the following commands

aptitude update

And voila, I have the repository read to start the small task.

Category : Linux

Arnold Pablo

Arnold Pablo

Technology always fascinated me and continues to do so. I started my career back in 2004 as a Junior System Admin and worked in various capacities both in technical and managerial roles. I love to experiment and try out new OSS projects and in free time, go for cycling to the interiors of God's own country, Kerala!

You may also read:

Comments

Add new commentSIGN IN

Let's Connect

Get new updates

Categories

$0.000 items