LinuxQuestions.org
Register a domain and help support LQ
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-20-2012, 12:35 AM   #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, 04:15 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
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, 04:44 PM   #3
odiseo77
Senior Member
 
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 1,019

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
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 odiseo77; 02-21-2012 at 09:16 AM.
 
1 members found this post helpful.
Old 02-20-2012, 05:05 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
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, 05:54 PM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
# 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, 02:30 AM   #6
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Wallowing in a pit of despair.
Distribution: OpenBSD
Posts: 1,386
Blog Entries: 4

Rep: Reputation: 423Reputation: 423Reputation: 423Reputation: 423Reputation: 423
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:56 PM
sources.list already has etch, change to stable now? gctaylor1 Debian 6 04-12-2007 10:37 AM
AMD64 Users need to change their sources.list file to exactly what? rickh Debian 2 04-11-2006 11:28 AM
Software Sources Manager, how to add installation cd sources after deletion Lakota Mandriva 1 10-23-2003 01:39 AM
linux sources on the internet graffitici Linux - Software 3 07-07-2003 07:57 AM


All times are GMT -5. The time now is 11:41 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration