LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-19-2012, 11:35 PM   #1
yedhukrishnan
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
How to change the software sources to Internet?


I installed Debian using a CD. Everytime when I try to install some packages in Debian, they're asking for the CD-ROM. I heard that I need to change the source in /etc/apt/sources.list. But I don't know how.

At present, the content of my sources.list is

---------------------------------------------------------------------------------
#

# deb cdrom:[Debian GNU/Linux 6.0.3 _Squeeze_ - Official amd64 CD Binary-1 20111008-14:36]/ squeeze main

deb cdrom:[Debian GNU/Linux 6.0.3 _Squeeze_ - Official amd64 CD Binary-1 20111008-14:36]/ squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

# squeeze-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/ squeeze-updates main
# deb-src http://ftp.debian.org/debian/ squeeze-updates main
-----------------------------------------------------------------------------------------------


I'm new Debian. I've experienced only ubuntu. Please help me. I wish to know if I can install Synaptic Package Manager in Debian too...
 
Old 02-20-2012, 03:15 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
# deb cdrom:[Debian GNU/Linux 6.0.3 _Squeeze_ - Official amd64 CD Binary-1 20111008-14:36]/ squeeze main

deb cdrom:[Debian GNU/Linux 6.0.3 _Squeeze_ - Official amd64 CD Binary-1 20111008-14:36]/ squeeze main
The first deb cdrom entry is commented out with the # sign. Do the same to the second one, and apt won't prompt you for the cd any longer.
 
Old 02-20-2012, 03:44 PM   #3
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
You probably also want to add this couple of lines to your sources.list:

Code:
deb http://ftp.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free
(This will enable the main software repository, as well as the source code repo).

Last edited by Hungry ghost; 02-21-2012 at 08:16 AM.
 
1 members found this post helpful.
Old 02-20-2012, 04:05 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Just to answer your last question, on a standard Debian install Synaptic should be installed by default. If not you can easily install it, Synaptic is a Debian application.
 
Old 02-20-2012, 04:54 PM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
# Official Debian mirrors http://www.debian.org/mirror/list
# Also at http://ftp.debian.org/debian/README.mirrors.txt
# SourcesList - Debian Wiki - http://wiki.debian.org/SourcesList


While Synaptic is nice(and is easily installed), you would be better off in the end to learn how to use apt-get/aptitude.

# aptitude user's manual - http://algebraicthunk.net/~dburrows/...titude/doc/en/
# Apt - Debian Wiki - http://wiki.debian.org/Apt
# Aptitude - Debian Wiki - http://wiki.debian.org/Aptitude
 
Old 02-21-2012, 01:30 AM   #6
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Until you are comfortable using apt-get, Synaptic would be useful. Ubuntu's version is the same as Debian's original, so it would be easy for you to use. Just go to sources and click on the square to remove the check mark from the CD entry.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
switching internet sources rbees Linux - Newbie 8 04-18-2008 05:56 PM
sources.list already has etch, change to stable now? gctaylor1 Debian 6 04-12-2007 09:37 AM
AMD64 Users need to change their sources.list file to exactly what? rickh Debian 2 04-11-2006 10:28 AM
Software Sources Manager, how to add installation cd sources after deletion Lakota Mandriva 1 10-23-2003 12:39 AM
linux sources on the internet graffitici Linux - Software 3 07-07-2003 06:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration