LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 05-30-2012, 04:01 PM   #1
rasec8711
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.

ANYWAYS, HERE'S THE OUTPUT:

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


HERE'S MY SOURCES.LIST FILE:


deb http://http.us.debian.org/debian stable main

deb http://security.debian.org/ lenny/updates main contrib non-free


HERE'S WHAT I'VE TRIED:

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 04:04 PM.
 
Old 05-31-2012, 01:58 AM   #2
Refractor
Member
 
Registered: Oct 2008
Location: Rousse, Bulgaria
Distribution: Slackware
Posts: 89

Rep: Reputation: 22
According to http://wiki.debian.org/DebianLenny 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
Code:
deb http://archive.debian.org/debian lenny main contrib non-free
deb http://archive.debian.org/debian-security lenny/updates main contrib non-free
in your sources.list and apt-get update.

Last edited by Refractor; 05-31-2012 at 01:59 AM. Reason: sources.list fix
 
1 members found this post helpful.
Old 05-31-2012, 11:33 AM   #3
rasec8711
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!
 
  


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


All times are GMT -5. The time now is 05:57 PM.

Main Menu
Advertisement
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