DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
When I try apt-get update, I get the following output -
Failed to fetch
security.debian.org/dists/testing/updates/main/binary-i386/Packages.gz[
Sub-process gzip returned an error code (1)
Failed to fetch
security.debian.org/dists/testing/updates/main/binary-i386/Packages.gz[
Sub-process gzip returned an error code (1)
Reading Package Lists... Done
W: Couldn't stat source package list security.debian.org[/url] testing/updates/main Packages (/var/lib/apt/lists/security.debian.org_dists_testing_updates_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list security.debian.org[/url] testing/updates/main Packages (/var/lib/apt/lists/security.debian.org_dists_testing_updates_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Duplicate sources.list entry security.debian.org[/url] testing/updates/contrib Packages (/var/lib/apt/lists/security.debian.org_dists_testing_updates_contrib_binary-i386_Packages)
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.
What could be wrong? How can I set right these errors and warnings?
Thanking in advance,
>> Try removing the files in /var/lib/apt/lists/ and doing apt-get update again.
I moved all the files in /var/lib/apt/lists to another directory and tried apt-get update.
This is the output I got -
E: Lists directory /var/lib/apt/lists/partial is missing.
This directory just contains copies of the package lists from the servers, theres no configuration information in the directory at all. This is whats used to build the package lists for dpkg, The computer does nothing else with them so that they can be compared with whats on the servers to see if they match.
Thank you for your patience.
I made the 'partial' subdir and then did apt-get upgrade.
Here is the output I received -
gzip: stdin: not in gzip format
Err security.debian.org testing/updates/main Packages
Sub-process gzip returned an error code (1)
98% [4 Packages gzip 0]
gzip: stdin: not in gzip format
Err security.debian.org testing/updates/contrib Packages
Sub-process gzip returned an error code (1)
Fetched 42B in 1s (29B/s)
Failed to fetch security.debian.org/dists/testing/updates/main/binary-i386/Packages.gz Sub-process gzip returned an error code (1)
Failed to fetch security.debian.org/dists/testing/updates/contrib/binary-i386/Packages.gz Sub-process gzip returned an error code (1)
Reading Package Lists... Done
W: Duplicate sources.list entry security.debian.org testing/updates/main Packages (/var/lib/apt/lists/security.debian.org_dists_testing_updates_main_binary-i386_Packages)
W: Duplicate sources.list entry security.debian.org testing/updates/contrib Packages (/var/lib/apt/lists/security.debian.org_dists_testing_updates_contrib_binary-i386_Packages)
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.
Do you something is wrong the particular packages at security.debian.org?
You seem to be missing debian-security from the path
security.debian.org/debian-security/dists/testing/updates/main/binary-i386/Packages.gz is the correct file path.
deb cdrom:[Debian GNU/Linux testing _Sarge_ - Official Snapshot i386 Binary-1 (20041022)]/ unstable contrib main
deb security.debian.org/ testing/updates main contrib
deb ftp.us.debian.org/debian/ testing main non-free contrib
deb non-us.debian.org/debian-non-US/ testing/non-US main contrib non-free
deb security.debian.org/ woody/updates main contrib non-free
deb security.debian.org/ testing/updates main contrib non-free
deb ftp.us.debian.org/debian/ unstable main non-free contrib
I have removed the 'http://' from the urls to comply with the terms and conditions of the forum.
Uhm you are running Sarge which is unstable if i remember right. Either way only stable has security. So comment out any lines that have security in it in your sources.list file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.