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.
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.
Related posts: