Replacing broken kernel, revert ubuntu upgrade

From MEPIS Documentation Wiki

Jump to: navigation, search

!!! Warning! The info contained in this article pertains to older versions of MEPIS !!!
Occassionaly a new kernel image may appear in the Ubuntu repository that will replace your existing Mepis kernel on applying upgrades. For many computers this may break the system and the Mepis kernel has different options applied than the Ubuntu one. These are some steps you can take to get your system working again without needing to do a full reinstall.

Example of kernel revert

This is a specific scenario: the computer has vmlinuz-2.6.15-26-386 2.6.15-26.46.1mepis1 installed and Ubuntu has a version 2.6.15-26.47 in the dapper-security repository (enabled by default on a Mepis install). Accepting this upgrade (which again is default if you choose "Mark all upgrades" in Synaptic, will install this new kernel. In this scenario this breaks the system, such that it cannot boot anymore (gets to grub menu, but beyond that only a blank screen).

To revert to a safe kernel image from the install CD/DVD:

  1. Boot to the Mepis live CD
  2. Mount your harddrive (in this case /mnt/sda1)
  3. Copy the contents from /boot to /mnt/sda1/boot (copy only the files, don't copy subfolders, otherwise you might break your grub setup)
  4. Remove the CD and reboot the machine

To get your packages back in a stable state

  1. load synaptic
  2. find linux-image-2.6.15-26-386
  3. Choose "Package|Force Version" and choose the original mepis version
  4. Choose "Package|Lock Version" to prevent accidental upgrade again
  5. Choose apply
Personal tools
In other languages