LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Debian Update Error, Please Help (https://www.linuxquestions.org/questions/linux-newbie-8/debian-update-error-please-help-730613/)

Brian1420 06-04-2009 05:19 AM

Debian Update Error, Please Help
 
Well i run the command 'apt-get update' in putty as root to update Debian, But it cannot connect or something. Here is the error.


alpha:~# apt-get update
Err http://security.debian.org etch/updates Release.gpg
Temporary failure resolving 'security.debian.org'
Err http://ftp.de.debian.org etch Release.gpg
Temporary failure resolving 'ftp.de.debian.org'
Failed to fetch http://ftp.de.debian.org/debian/dists/etch/Release.gpg Temporary failure resolving 'ftp.de.debian.org'
Failed to fetch http://security.debian.org/dists/etc...es/Release.gpg Temporary failure resolving 'security.debian.org'
Reading package lists... Done
W: Couldn't stat source package list http://ftp.de.debian.org etch/main Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org etch/contrib Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_etch_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org etch/non-free Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_etch_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org etch/updates/main Packages (/var/lib/apt/lists/security.debian.org_dists_etch_updates_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org etch/updates/contrib Packages (/var/lib/apt/lists/security.debian.org_dists_etch_updates_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org etch/updates/non-free Packages (/var/lib/apt/lists/security.debian.org_dists_etch_updates_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.

Could someone Assist me in this matter. This is urgent. Thanks

jdkaye 06-04-2009 07:12 AM

Can you please post the contents of your /etc/apt/sources.list file. I have a feeling you're missing the "deb" that must begin each repo. So your
Quote:

http://ftp.de.debian.org etch/non-free
for example should have,
Code:

deb http://ftp.de.debian.org etch/non-free
also you are using "etch" which is not the current stable version of debian. I suggest you change "etch" to "lenny" (or better to "stable") in the above mentioned file.
cheers,
jdk

AlucardZero 06-04-2009 11:37 AM

what jdkaye said, except that switching to lenny unprepared is not recommended.


All times are GMT -5. The time now is 02:22 AM.