Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-30-2012, 03:01 PM   #1
LQ Newbie
Registered: May 2012
Posts: 7

Rep: Reputation: Disabled
Unhappy 404errors when running apt-get update already tried sudo rm /var/lib/apt/lists/* -vf

Hello! So I'm new to Linux, but I have 3 Linux firewalls/gateways that I want to update, I'm sure they haven't been touched or messed with in the last 5 or 6 years.

So like I said, I am new to Linux and am trying to update these boxes, one at a time. I found out that I need to run apt-get update but I'm getting errors. I've searched for hours in google and found one thing that seemed to fixed people's problems, but it didn't fix it for me.


resident:/var/lib/apt/lists# sudo apt-get update
Err lenny/updates/main Packages
404 Not Found [IP: 80]
Ign lenny/updates/main Release
Err lenny/updates/contrib Packages
404 Not Found [IP: 80]
Get:1 stable/main Packages [8635kB]
Ign lenny/updates/contrib Release
Err lenny/updates/non-free Packages
404 Not Found [IP: 80]
Ign lenny/updates/non-free Release
Get:2 stable/main Release [95B]
Fetched 8635kB in 34s (250kB/s)
Failed to fetch 404 Not Found [IP: 80]
Failed to fetch 404 Not Found [IP: 80]
Failed to fetch 404 Not Found [IP: 80]
Reading Package Lists... Error!
E: Unable to parse package file /var/lib/apt/lists/ (1)
E: The package lists or status file could not be parsed or opened.


deb stable main

deb lenny/updates main contrib non-free


sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update

But I keep getting the same output after running these commands.

Any help? Remember, I'm new and had no idea that apt-get was used to install/update "stuff" so I may be missing something obvious.

Thanks in advance!

Last edited by rasec8711; 05-30-2012 at 03:04 PM.
Old 05-31-2012, 12:58 AM   #2
Registered: Oct 2008
Location: Rousse, Bulgaria
Distribution: Slackware
Posts: 89

Rep: Reputation: 24
According to Lenny's security updates ended on Feb 06 2012.
404 is HTTP not found error, which means that the files are not on the remote server. You have to use the archived repositories to update your lenny system.
Perhaps try something like
deb lenny main contrib non-free
deb lenny/updates main contrib non-free
in your sources.list and apt-get update.

Last edited by Refractor; 05-31-2012 at 12:59 AM. Reason: sources.list fix
1 members found this post helpful.
Old 05-31-2012, 10:33 AM   #3
LQ Newbie
Registered: May 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Refractor! Thank you so much! That did it!

I had found several solutions like this, but they showed how to use the archive to get etch updates instead of lenny. Wow, like I said, I don't know much but I'm learning.

Thanks a lot!


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
[SOLVED] sudo apt-get update problem cola Ubuntu 8 10-23-2014 11:03 AM
[SOLVED] Whats up with Maverick and /Var/lib/apt/lists issues amsweitzer Linux - Software 0 05-30-2011 03:49 PM
sudo apt-get update problem yasokrish Linux - Newbie 6 04-16-2010 06:11 AM
sudo apt-get update && sudo apt-get upgrade hallve_revera Linux - Newbie 6 01-10-2009 09:37 AM
apt cannot be upgraded, and problem with /var/lib/dpkg/status San-Raal Debian 9 04-08-2008 07:41 AM

All times are GMT -5. The time now is 06:09 PM.

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