Skip to main content
Home
The Baheyeldin Dynasty
The journey for wisdom starts with knowledge
  • Home
  • About
  • Site Map
  • Contact

Upgrading a Xen Virtual Private Server from Ubuntu 7.04 (Feisty) to 7.10 (Gutsy)

  1. Home

By Khalid on 2008/01/20 - 15:03, last updated 2008/01/20 - 15:03

For the last two years, I have been running a Xen based VPS which has Ubuntu server on it. Up to last week, it was running Feisty Fawn (7.04), and it was time to upgrade it to Gutsy Gibbon (7.10), the latest Ubuntu version.

The upgrade had some complications, so I am documenting them here in case someone has the same problem.

Procedure for upgrade

On Debian and earlier versions of Ubuntu, the procedure for upgrading consisted of entering the commands:

# aptitude update && aptitude dist-upgrade 

However, starting with Gutsy, Ubuntu has a separate update manager. In order to use that, you run the following commands:

# aptitude install update-manager-core
# do-release-upgrade

Update failure

On the Xen VPS, there are some bugs that causes the upgrade to fail after doing a whole lot of things.

So I try running the normal update:

# aptitude update

Which aborts with a message to run the following command.

# dpkg --configure -a

When you try to run the above command, you get lots of errors, many of them segmentation faults, and then an error saying that too many errors happened.

Troubleshooting the failure 

In order to try to troubleshoot this, I do --configure for just one package:

# dpkg --configure  apache2-mpm-prefork

This says that a package that it depends on is not configured, so I try the dependency:

# dpkg --configure  apache2.2-common

And I get an error saying that in turn, this depends on another package, so I try that:

# dpkg --configure procps

This gives the segmentation fault ...

Googling for a solution

After some Google, I found some clues. Initially, I thought it is 140739, but downgrading did not work.

Then, I searched more and found a Xen specific problem, 152664, which seemed to fit the bill.

Deborphan to the rescue

The solution is to install and run deborphan, remove the problem packages, and then do a proper --configure.

But, that VPS does not have deborphan installed, and installing it via aptitude fails because of the original problem we are trying to solve. So we are in a catch-22 situation.

What can one do?
You can use the dpkg command directly, but you have to find and download the package.

To do this: you go to the deborphan package, which depends on dialog.

Then download them: 

# wget http://launchpadlibrarian.net/5146737/deborphan_1.7.23_i386.deb
# wget http://launchpadlibrarian.net/8022814/dialog_1.1-20070604-1_i386.deb

Install dialog, then deborphan:

# dpkg -i dialog_1.1-20070604-1_i386.deb
# dpkg -i deborphan_1.7.23_i386.deb

We now run deborphan, and pipe the output to aptitude with remove and automatic answering Yes.

# deborphan | xargs aptitude -y remove

Now, we can configure all packages:

# dpkg --configure -a

That completes successfully, at last ...

And after that, we run normally:

aptitude update && aptitude safe-upgrade

Hope this is helpful to someone, since I spend a couple of hours scraching my head on it ...

Contents: 
Linux
  • Add comment

Comments

i. baig (not verified)

kudos

Thu, 2008/03/13 - 18:20

awesome - thanks for posting - this totally saved the day for me.

  • reply

Bart (not verified)

Thank you

Tue, 2008/04/01 - 10:07

This was very helpful!

  • reply

Al (not verified)

Thanks!

Thu, 2008/04/17 - 17:00

I love it when people share useful stuff like this. This really helped me to get a Xen VM upgraded!

  • reply

Current

Pandemic

  • COVID-19
  • Coronavirus

Search

Site map

Contents

  • Family
    • Khalid
    • Ancestry
    • Extended
  • Friends
  • Nokat نكت
  • Writings
    • Cooking
    • Culture
    • Science
    • History
    • Linguistics
    • Media
    • Literature
    • Politics
    • Humor
    • Terrorism
    • Business
    • Philosophy
    • Religion
    • Children
  • Technology
    • Linux
    • Arabization
    • Drupal
      • Association
    • Software
    • Internet
    • Technology in Society
    • Digital Archeology
    • NCR History
    • MidEast Internet
    • Programming
    • Saudi ISPs
    • Miscellaneous
  • Places
    • Canada
      • Weather
    • Egypt
      • Cuisine
      • Alexandria
      • E.G.C.
    • USA
    • Saudi Arabia
  • Interests
    • Astronomy
    • Fishing
    • Photography
    • Snorkeling
    • Nature
    • Photomicroscopy
  • Miscellany

In Depth

  • al-Hakim bi Amr Allah: Fatimid Caliph of Egypt الحاكم بأمر الله
  • Alexandria, Egypt
  • Arabic on the Internet
  • Articles on the history of Muslims and Arabs in the Iberian Peninsula تاريخ المسلمين و العرب في الأند
  • DIY GOTO Telescope Controller With Autoguiding and Periodic Error Correction
  • E.G.C. English Girls College in Alexandria, Egypt
  • Egyptian Cuisine, Food and Recipes مأكولات مصرية
  • George Saliba: Seeking the Origins of Modern Science?
  • Internet Scams and Fraud
  • Mistaken for an Arab or Muslim: Absurdities of being a victim in the War on Terror
  • Mistaken Identity: How some people confuse my site for others
  • One People's Terrorist Is Another People's Freedom Fighter
  • Overview of Google's Technologies
  • Photomicroscopy
  • Pseudoscience: Lots of it around ...
  • Resources for using Google Adsense with Drupal
  • Rockwood Conservation Area, Southern Ontario
  • Selected Symbolic Novels And Movies
  • Snorkeling the Red Sea near Jeddah
  • Updates and Thoughts on the Egyptian Revolution of 2011

Recent Content

Most recent articles on the site.

  • Origin Of COVID-19: Natural Spillover, Lab Leak Or Biological Weapon?
  • Kamal Salibi and the "Israel from Yemen" theory
  • How To Upgrade HomeAssistant Core In A Python Venv Using uv
  • Ancestry - Paternal Side
  • Review of Wait Water Saver For Whole House Humidifiers
more

Most Comments

Most commented on articles ...

  • Another scam via Craigslist: offering more than asking price
  • Warning to female tourists thinking of marrying Egyptians
  • Craigslist classified for used car: Cheque fraud scam
  • Winning the lottery scam email: World Cup South African lottery
  • Email Scam: BMW 5 Series car and lottery winning
more

About Khalid

Various little bits of information ...

  • Khalid Baheyeldin: brief biography
  • Presentations and Talks
  • Youtube Videos
  • GitHub Projects
  • Drupal.org Profile
  • Astrophotography @ Flickr

Sponsored Links

Your Link Ad Here

Tags

Android Mobile Ubuntu Sony OnStep OpenWRT Router Ericsson COVID-19 Rogers Coronavirus Arabic Kubuntu Home Assistant GSM Telescope tablet Spectrum Scam Python 419 Laptop Firefox DIY CPU Conspiracy Comet Balkanization backup App
More

© Copyright 1999-2025 The Baheyeldin Dynasty. All rights reserved.
You can use our content under the Terms of Use.
Please read our privacy policy before you post any information on this site.
All posted articles and comments are copyright by their owner, and reflect their own views and opinions, which may not necessarily be consistent with the views and opinions of the owners of The Baheyeldin Dynasty.

Web site developed by 2bits.com Inc.