LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 07-03-2008, 09:14 PM   #1
Cyberman
Member
 
Registered: Aug 2005
Distribution: Debian Stable
Posts: 187

Rep: Reputation: 17
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.

Last edited by Cyberman; 07-04-2008 at 10:10 AM.
 
Old 07-04-2008, 03:37 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,647

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
posting so it stops autobumping
 
  


Reply


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 to trace a deleted folder? kurnull Linux - Security 3 11-06-2007 02:07 PM
home folder deleted drsethi Suse/Novell 4 07-05-2006 03:18 AM
Deleted Folder vkrishn1 Linux - General 3 11-17-2004 10:39 AM
can't deleted a folder! santasballz Linux - Newbie 2 02-22-2004 12:03 AM
HELP! I've deleted the /etc/httpd folder Neb Linux - Newbie 6 05-16-2003 07:29 AM


All times are GMT -5. The time now is 09:54 AM.

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