/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 |
If you mean updating like downloading new package information, just run:
Code:
apt-get update If you mean something else, could you please clarify? |
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 |
just add that line to sources list(/etc/apt/sources.list) and run
Code:
sudo apt-get update |
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 Make sure to use the correct version (debian 4.0 etch) Then do Code:
apt-get update Good luck |
All times are GMT -5. The time now is 04:49 PM. |