Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 09-11-2009, 10:20 PM   #1
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?

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-12-2009, 12:06 AM   #2
Registered: Apr 2007
Location: 中国上海
Distribution: openSUSE 11.3
Posts: 371

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

apt-get update
as root

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

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

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

Old 09-12-2009, 01:28 AM   #4
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
sudo apt-get update
.. i think adding a source is your problem.
Old 09-12-2009, 04:13 AM   #5
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Take a look at this thread for some source lists.

Just make a backup from your old sources.list
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
apt-get update
apt-get upgrade

Good luck


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

All times are GMT -5. The time now is 10:57 AM.

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