PDA

View Full Version : [ubuntu] 2.6.22-14



monarda22
August 7th, 2009, 05:32 AM
"The package linux-headers 2.6.22-14 needs to be reinstalled but I can't find an archive for it"


I have no idea what this means or what I am supposed to do. As it stands I can't do anything. It won't let me upgrade or install updates and I don't know how to fix things. Help?

Mike

drs305
August 7th, 2009, 05:38 AM
That is a Gutsy kernel. Gutsy reached its End of Life (EOL) in April. The repositories are no longer supported. Here are the Release schedules and the EOL upgrade options:

https://wiki.ubuntu.com/Releases

https://help.ubuntu.com/community/EOLUpgrades

You can also change your repositories to the archived repositories by editing your sources.list file. The old gutsy repositories are at:
http://old-releases.ubuntu.com/releases/
You could use find/replace and substitute http://old-releases.ubuntu.com/ubuntu/ for the current (outdated) addresses in /etc/apt/sources.list.

monarda22
August 7th, 2009, 06:20 AM
Thanks for the response.

I tried to follow the steps in the second link to go from Gutsy to Hardy.

sudo perl -p -i.gutsyEOL -e 's/(?:(?:\w+.)?archive|security).(ubuntu.com)/old-releases.$1/' /etc/apt/sources.list

results in

"Illegal division by zero at -e line 1, <>line 1."

Same message for
sudo perl -p -i.gutsy -e 's/gutsy/hardy/; s/old-releases.ubuntu.com/archive.ubuntu.com/g' /etc/apt/sources.list

When I do
sudo aptitude upgrade

I get

"I wasn't able to locate file for linux-header 2.6.22-14 package. This might mean you need to manually fix the package."

Suggestions?

drs305
August 7th, 2009, 06:30 AM
The command is trying to change your sources.list repositories to the old-releases address to update from archives. Then the second command will change to the hardy repositories. If you post your sources.list we can probably "translate" it for you. I'll be going offline but someone will be able to do it for you or I'll check back tomorrow (well, later today).

monarda22
August 7th, 2009, 06:59 AM
If you post your sources.list we can probably "translate" it for you.

Okay. I would be willing to do that but

sudo gedit /etc/apt/sources.list

shows as a fairly large file. (It seems to reference Hardy in most places so I must have done something.)

Lots of lines. Still post it?

drs305
August 7th, 2009, 12:04 PM
Okay. I would be willing to do that but

sudo gedit /etc/apt/sources.list

shows as a fairly large file. (It seems to reference Hardy in most places so I must have done something.)

Lots of lines. Still post it?

Were you able to run the updates to Gutsy (if you know)? The script changes the repositories to the Gutsy archives and then runs an update. The second command then updates the sources.list to the Hardy repositories and updates your system to Hardy.

Do you recall what happened when you ran the "sudo aptitude update" the first time - with the Gutsy archives enabled? (And then the second after you tried updating the file to Hardy, if you remember).

If you answer these questions and post the sources.list contents we might be able to sort it out. (Note if you have a separate /home partition already it might be easier to just do a clean install while preserving your current /home).

We can cut down the length of the sources.list file by omitting any commented lines (which aren't really needed), so you can post the results of this:


cat /etc/apt/sources.list | grep -v "^#"

monarda22
August 7th, 2009, 03:35 PM
Were you able to run the updates to Gutsy (if you know)?

I'm sorry. I don't know. I think the answer is no as I'm still stuck and everything looks the same.


Do you recall what happened when you ran the "sudo aptitude update" the first time - with the Gutsy archives enabled? (And then the second after you tried updating the file to Hardy, if you remember).
I think I got the package needs to be reinstalled but I can't find the archive and the you might have to fix things manually messages.


(Note if you have a separate /home partition already it might be easier to just do a clean install while preserving your current /home).
I'd do a clean install if I could and if it would help.


can cut down the length of the sources.list file by omitting any commented lines (which aren't really needed)

Neat. That helped. I got this:


deb http://us.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy main restricted

deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted

deb http://us.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe

deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse

deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted

That's probably messed up?

Mike

drs305
August 7th, 2009, 04:38 PM
Mike,

Open sources.list and replace your current sources.list with this, then run the update and upgrade to the latest (old) packages. This will give you a Gutsy install with the last packages available when it reached its EOL.



gksudo gedit /etc/apt/sources.list




deb http://old-releases.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-updates main restricted universe
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-security main restricted universe multiverse


Then:


sudo aptitude update && sudo aptitude safe-upgrade


Once you have accomplished this, upgrade to Hardy. Replace your sources.list with:


deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe
deb http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu hardy-security main restricted universe multiverse


Then run:


sudo aptitude update # The EOL post doesn't mention this step. It may not be necessary.
sudo do-release-upgrade


Finally, check the release you are running:


lsb_release -a

monarda22
August 7th, 2009, 08:42 PM
Wow.

Okay, here is what I did.

1. Cut and pasted and replaced my source with the four lines.

2. Ran the update and the upgrade. It worked for about 40 minutes but made steady progress.

3. Rereplaced the source with 4 new lines.

4. Ran the update. About 2 minutes.

5. Did the do release upgrade. Thought the hard drive was going to blow up on the "calculating changes" part. Eventually it came back and said I needed to download 698M of stuff and it woudl take several hours. Started that at 11:47. Finished downloading at 2:17.

6. It started doing stuff (upgrading I guess- lots of unpacking and replacing going by). When it got to "Preparing to replace libpam-runtime 0.99.7.1-5ubuntu1 (using .../libpam-runtime_0.99.7.1-5ubuntu6 all.deb ... " it died. Cursor froze. Clock froze. That was about 20 minutes ago. I haven't touched it hoping it's heart would start beating again.

I feel like "so close, yet so far". I was really hoping to make a "success!" post from that machine.

There is absolutely and without a doubt, no possible way I could have even come this far without you DRS305. Thank you.

I'm letting it sit for the minute, but I'm very very open to suggestions.

drs305
August 7th, 2009, 08:53 PM
I'm letting it sit for the minute, but I'm very very open to suggestions.

You are welcome but unfortunately I don't think it is going to magically resume the installation. That is one of the drawbacks of doing a network install - especially from an outdated release. There are so many parts that have to fit just right it's easy for the upgrade to fail.

So, where to next? You can reboot and see if you have enough of Hardy installed to boot. If so, you may be able to repair things from inside Hardy. That is probably unlikely.

If you can't, the best plan is probably to get a newer release and try the LiveCD to make sure your machine is compatible. Hardy (8.04) is the Long Term Release that will be supported until April 2011. The latest release is Jaunty, supported until October 2010. Jaunty has been around long enough now that it should be fairly reliable for you.

Hopefully you won't need this post and your upgrade has resumed. I hope so.

monarda22
August 7th, 2009, 09:12 PM
I took a breath and punched reset.

On reboot, "About" said I am still 7.1. Sadness.

The little orange sun thing that tells you about updates was back so I clicked on that.

It tried to run but it said things were horribly broken and that nothing could be installed.

It said do " sudo apt-get install -f " so I did.

It worked awhile then came back and said "ldconfig deferred processing now taking place."

It is sitting at the terminal prompt.

Run lsb_release -a?

Run something else?

Very very lost here but still game.

slakkie
August 8th, 2009, 05:45 PM
Thanks for the response.

I tried to follow the steps in the second link to go from Gutsy to Hardy.

sudo perl -p -i.gutsyEOL -e 's/(?:(?:\w+.)?archive|security).(ubuntu.com)/old-releases.$1/' /etc/apt/sources.list

results in

"Illegal division by zero at -e line 1, <>line 1."

Same message for
sudo perl -p -i.gutsy -e 's/gutsy/hardy/; s/old-releases.ubuntu.com/archive.ubuntu.com/g' /etc/apt/sources.list


The error you are getting is not supposed to happen... Did you copy paste that command, or typed it over?