PDA

View Full Version : [ubuntu] could not upgrade anything in ubuntu 10.04 LTS



1sezgin
May 27th, 2013, 12:11 PM
Since long time I am using ubuntu 10.04 LTS,
Because of some problems I decided to upgrade to 12.04 LTS but I could not. Now I am trying to upgrade the packages.
For any package it always give the same error and then ubuntu crash.

I tried many things to solve dpkg error but it does not help
Thanks in advance

Setting up linux-image-2.6.32-47-generic (2.6.32-47.109) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing linux-image-2.6.32-47-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libpackagekit-glib2-12 (0.5.7-0ubuntu2.2) ...

Setting up packagekit (0.5.7-0ubuntu2.2) ...

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
/sbin/ldconfig.real: /usr/lib32/libstdc++.so.5 is not a symbolic link

Errors were encountered while processing:
linux-image-2.6.32-47-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up linux-image-2.6.32-47-generic (2.6.32-47.109) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing linux-image-2.6.32-47-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-2.6.32-47-generic

ajgreeny
May 27th, 2013, 02:01 PM
I am not quite sure what you mean or what version of ubuntu you currently have, but 10.04 can no longer be updated as it has lost support.

I suspect the best way forward for you is to backup all your personal files and folders from your home, including all hidden content, and then do a clean install of 12.04. If you don't like unity have a look at Xubuntu 12.04.

Once you have the new version up and running you can restore the files/folders of your old home.

1sezgin
May 27th, 2013, 02:14 PM
But if I make a clean install of 12.04, I have to install all programs again.
Is there any way to save installed programs?
Thanks

sudo san
May 27th, 2013, 02:31 PM
Maybe the package files are corrupt. Try cleaning them:


sudo apt-get clean
sudo apt-get autoclean
sudo apt-get update && sudo apt-get dist-upgrade

You could then try and upgrade ubuntu:

sudo sed -i 's/lucid/precise/g' '/etc/apt/sources.list'
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo update-grub
sudo dpkg --configure -a

The last two commands are just for good measure to make sure that even if a few packages did not get configured, they will, and that grub is all set to boot into 12.04.

This is the procedure I use when upgrading ubuntu. It also keeps all your programs. Be aware that you might need to reset your background and ensure that you backup all your stuff before you upgrade as stated by ajgreeny.

Hope it helps.:)

1sezgin
May 27th, 2013, 03:47 PM
Thanks for your answer,
But while I was doing command
sudo apt-get update && sudo apt-get dist-upgrade
at the end the system crashed. After some tries I succeed to restart and now it gives following error
sezgin@sezgin1:~$ sudo apt-get dist-upgrade
Bus errorackage lists... 0%
sezgin@sezgin1:~$ sudo apt-get clean
sezgin@sezgin1:~$ sudo apt-get autoclean
Bus errorackage lists... 0%

ibjsb4
May 27th, 2013, 04:23 PM
But if I make a clean install of 12.04, I have to install all programs again.
Is there any way to save installed programs?
Thanks

http://ubuntuforums.org/showthread.php?t=261366&p=1521615&viewfull=1#post1521615

You may have to install "dselect", but that would be on the fresh install and not 10o4.

1sezgin
May 27th, 2013, 04:38 PM
Thanks for your advices but unfortunately I was not talking about installed package by ubuntu.
I installed some analysing program which are not in that list. It seems I will lose all of it.

ibjsb4
May 27th, 2013, 05:02 PM
That is not so good news. Give me the name of the program and I will look for a way to save it.

sudo san
May 27th, 2013, 06:21 PM
Thanks for your answer,
But while I was doing command
sudo apt-get update && sudo apt-get dist-upgrade
at the end the system crashed. After some tries I succeed to restart and now it gives following error
sezgin@sezgin1:~$ sudo apt-get dist-upgrade
Bus errorackage lists... 0%
sezgin@sezgin1:~$ sudo apt-get clean
sezgin@sezgin1:~$ sudo apt-get autoclean
Bus errorackage lists... 0%

I do not see an error message but "Bus errorackage lists" does look quite strange, do you have ubuntu installed in a different language?
Also, do you have a low amount of R.A.M? If you do, you will find it very difficult running 12.04. You could always install lubuntu-desktop or xubuntu-desktop and remove ubuntu-desktop.

deadflowr
May 27th, 2013, 06:34 PM
Thanks for your advices but unfortunately I was not talking about installed package by ubuntu.
I installed some analysing program which are not in that list. It seems I will lose all of it.

If you installed it, then reinstall it.
Backup the files needed and reinstall.

If the packages don't install, I'd advise to look into alternatives as a package which doesn't install is probably out of date and potentially harmful.

1sezgin
June 1st, 2013, 09:49 AM
Unfortunately there was a bad sector and I could not install ubuntu on that harddisk. I got an external hdd and used for install.