LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   stupidly deleted security packages/folder and now apt-get won't update (https://www.linuxquestions.org/questions/debian-26/stupidly-deleted-security-packages-folder-and-now-apt-get-wont-update-653453/)

Cyberman 07-03-2008 09:14 PM

stupidly deleted security packages/folder and now apt-get won't update
 
######################################################################

SOLVED:

I commented the sources.list up, and use apt-get update
then I uncommented the file again and used apt-get update
that seemed to do the trick.
It was more like flipping a bunch of switches and doing this a lot.
######################################################################
######################################################################
######################################################################

I was trying to figure out what was wrong with apt, so I decided to delete stuff. A stupid, noobish action on my part. I've been in the live-cd environment too long.

Code:

rm /var/lib/apt/lists/security*
I later found out it had to do with apt's cache limit. Yeah, a big whoops. That probably wasn't the brighest move. The files are still deleted, and now apt-get is very unhappy.

How do I fix this?

Code:

debian:/home/workstation/# apt-get update
Get:1 http://ftp.us.debian.org etch Release.gpg [378B]
Hit http://ftp.us.debian.org etch Release
Ign http://ftp.us.debian.org etch/main Packages/DiffIndex
Hit http://ftp.us.debian.org etch/main Packages
Hit ftp://ftp.us.debian.org testing Release.gpg
Hit ftp://ftp.us.debian.org testing Release
Get:2 http://security.debian.org etch/updates Release.gpg [189B]
Hit ftp://ftp.us.debian.org testing/main Packages/DiffIndex
Hit http://security.debian.org etch/updates Release
Hit ftp://ftp.us.debian.org testing/contrib Packages/DiffIndex
Hit ftp://ftp.us.debian.org testing/non-free Packages/DiffIndex
Get:3 http://security.debian.org etch/updates/main Packages [272kB]
99% [3 Packages bzip2 0] [Waiting for headers] [Query]bzip2: (stdin) is not a bzip2 file.
Err http://security.debian.org etch/updates/main Packages
  Sub-process bzip2 returned an error code (2)

Hit ftp://ftp.us.debian.org testing/main Sources/DiffIndex
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Sources/DiffIndex
Ign http://security.debian.org etch/updates/contrib Sources/DiffIndex
Get:4 http://security.debian.org etch/updates/main Packages [272kB]
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
99% [4 Packages bzip2 0] [Waiting for headers] [Query]bzip2: (stdin) is not a bzip2 file.
Err http://security.debian.org etch/updates/main Packages
  Sub-process bzip2 returned an error code (2)
Hit ftp://ftp.us.debian.org testing/contrib Sources/DiffIndex
Ign http://security.debian.org etch/updates/non-free Packages/DiffIndex
Hit ftp://ftp.us.debian.org testing/non-free Sources/DiffIndex
Hit http://security.debian.org etch/updates/contrib Packages
Hit http://security.debian.org etch/updates/main Sources
Hit http://security.debian.org etch/updates/contrib Sources
Hit http://security.debian.org etch/updates/contrib Packages
Hit http://security.debian.org etch/updates/non-free Packages
Fetched 4B in 1s (3B/s)
Failed to fetch http://security.debian.org/dists/etch/updates/main/binary-i386/Packages.bz2  Sub-process bzip2 returned an error code (2)
Failed to fetch http://security.debian.org/dists/etch/updates/main/binary-i386/Packages.bz2  Sub-process bzip2 returned an error code (2)
Reading package lists... Done
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/main Packages (/var/lib/apt/lists/security.debian.org_dists_etch_updates_main_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.

debian:/home/workstation/#

I'm thinking I have to do something with dpkg-scanpackages, but it's been a while.

AlucardZero 07-04-2008 03:37 PM

posting so it stops autobumping


All times are GMT -5. The time now is 02:31 PM.