Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Adding repositories in Debian

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
oakdeveloper
Posts: 9
Joined: 2010-02-06 03:25

Adding repositories in Debian

#1 Post by oakdeveloper »

Hi,

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,
Babu

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: Adding repositories in Debian

#2 Post by craigevil »

paste your /etc/apt/sources.list

Then take a look at the link in my signature.
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

User avatar
aj123
Posts: 94
Joined: 2009-09-19 08:05

Re: Adding repositories in Debian

#3 Post by aj123 »

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 http://http.us.debian.org/debian stable main
or
deb http://http.us.debian.org/debian 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

Post Reply