Adding repositories in Debian

New to Debian (Or Linux in general)? Ask your questions here!

Adding repositories in Debian

Postby oakdeveloper » 2010-02-10 14:38


I have a minimal installation of Debian Lenny. I want to install additional software. When I tried
Code: Select all
apt-get install gnome-desktop-environment gdm
as root user, I got an error message saying that the package could not be found. I think the problem is that I haven't added the repositories. What are the repositories I should add to my sources.list file? Where can I find the list of repositories?

Thanks & Regards,
Posts: 9
Joined: 2010-02-06 03:25

Re: Adding repositories in Debian

Postby craigevil » 2010-02-10 15:06

paste your /etc/apt/sources.list

Then take a look at the link in my signature.
Raspberry PI 400 Distro: Raspberry Pi OS 10 (buster) Kernel: 5.10.17-v8+ aarch64 DE:LXDE Ram 4GB
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
User avatar
Posts: 5198
Joined: 2006-09-17 03:17
Location: Oz

Re: Adding repositories in Debian

Postby aj123 » 2010-02-10 19:22

nano /etc/apt/sources.list

Comment out any cdrom entries at the top with #. Uncomment any section for stable updates at the top.

Add (you can substitute a local mirror):

deb stable main
deb stable main contrib non-free

(main, contrib, non-free are different repos for different packages)

apt-get update
apt-get safe-upgrade
apt-get install gnome-desktop-environment gdm
User avatar
Posts: 94
Joined: 2009-09-19 08:05

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 8 guests