LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-11-2009, 09:20 PM   #1
mrshanim
Member
 
Registered: Aug 2009
Posts: 30

Rep: Reputation: 16
/etc/apt/sources.list How to update?


Hi, I am somewhat newbie with unix

Can you please tell me how to update /etc/apt/sources.list ?
I know we can update this with editing sources.list becoming root user but how can we update automatically - like using apt-get/aptitude???

I tried to copy sources.list from other installation but it fails?

Thanks
Shanim
PS I have ethernet connection but for debian 4.0 etch installation stops in the middle if we use network configured. This reason I installed without internet/no network mirror. After installation internet is working fine
 
Old 09-11-2009, 11:06 PM   #2
rabbit2345
Member
 
Registered: Apr 2007
Location: 中国上海
Distribution: openSUSE 11.3
Posts: 369

Rep: Reputation: 40
If you mean updating like downloading new package information, just run:

Code:
apt-get update
as root


If you mean something else, could you please clarify?
 
Old 09-12-2009, 12:25 AM   #3
mrshanim
Member
 
Registered: Aug 2009
Posts: 30

Original Poster
Rep: Reputation: 16
No I means to say how to add/update source listing like
deb http://http.us.debian.org/debian main

apt-get update takes links from sources.list but we need to update sources.list

Thanks
shanim
 
Old 09-12-2009, 12:28 AM   #4
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
just add that line to sources list(/etc/apt/sources.list) and run
Code:
sudo apt-get update
.. i think adding a source is your problem.
 
Old 09-12-2009, 03:13 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,511

Rep: Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884
Take a look at this thread for some source lists.
http://www.linuxquestions.org/questi...13/page12.html

Just make a backup from your old sources.list
Code:
mv /etc/apt/sources.list /etc/apt/sources.list.old
Then create a new sources.list with the sources you want.
Make sure to use the correct version (debian 4.0 etch)
Then do
Code:
apt-get update
apt-get upgrade

Good luck
 
  


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
How Do I Update /etc/apt/sources.list To 8.04 ?? taurusx5 Linux - Software 2 08-02-2008 01:09 PM
debian /etc/apt/sources.list update problem asparagus Linux - Newbie 2 01-16-2008 05:38 AM
/etc/apt/sources.list update problem asparagus Debian 1 01-15-2008 07:46 PM
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 01:57 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM


All times are GMT -5. The time now is 03:13 PM.

Main Menu
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