Recently had some issue with upgrading my VPS running on Ubuntu Server 7.04 to the latest version Ubuntu 7.10.
Came across some help so would like to share the Same with everyone.
My VPS is Xen based so not sure if it works with any other Virtualization.
The procedure is as follows:
If you have Ubuntu version earlier than Gutsy i.e Ubuntu 7.04 the command to run is as follows :
# aptitude update && aptitude dist-upgrade
But if you have Gutsy i.e Ubuntu 7.04 then the command to run is:
# aptitude install update-manager-core
# do-release-upgrade
However on the Xen VPS i had some issue with some bugs which did let me upgrade successfully. So then i tried running the normal upgarde;
# aptitude update
IT will abort and then give you the option to run the following command:
# dpkg –configure -a
After running the above command, i received lots of errors (lot of them been Segmentation Faults) and ultimately i received the error that too many errors occurred.
So to overcome this i tried to configure for just one package:
# dpkg –configure apache2-mpm-prefork
Then i received the error that the a package that it depended upon was not configured. So to overcome this i tried dependency:
# dpkg –configure apache2.2-common
Then i got the message sayin that this in turn depends on another package, so i tried to check that package:
# dpkg –configure procps
And then this ends with the Segmentation Fault.
To solve this i had to Deborphan:
I had to install and run deborphan and remove the packages that were creating the problem. And then start with a proper Configure.
But with VPS that do not have deborphan installed, it does not help to install it via aptitude as it fails. So to overcome this i had to use the dpkg command directly, but keeping in mind that i had to find the package and download it.
How to do this, first you have to deborphan package, which depends on dialog.
Run the following commands:
# wget http://launchpadlibrarian.net/5146737/deborphan_1.7.23_i386.deb
# wget http://launchpadlibrarian.net/8022814/dialog_1.1-20070604-1_i386.deb
Then install dialog and then deborphan:
# dpkg -i dialog_1.1-20070604-1_i386.deb
# dpkg -i deborphan_1.7.23_i386.deb
Now to run the deborphan and pipe the output to aptitude with remove and with the automatic answering Yes.
# deborphan | xargs aptitude -y remove
Now similarly we configure all the packages:
# dpkg –configure -a
After running through all the commands finally you can run the upgrdae normally:
aptitude update && aptitude safe-upgrade
Hope this helps everyone as it helped me.







Comment