Re: Uh Oh - HOSED Upgrade - Deb - HOW to Recover ?

Charlie Gibbs <[email protected]> Tue, 04 Aug 2026 18:18:23 GMT
Newsgroups comp.os.linux.misc
Message-ID <[email protected]>
On 2026-08-04, c186282 <[email protected]> wrote:

> Just the latest upgrade for my Deb-derived distro (MX) and
> suddenly getting evil evil messages about how the latest
> kernel is missing dependencies and WON'T upgrade.

This is similar to another thread I started here.  IMHO
upgrades are the scariest part of Linux.  I always take
full backups of everything first with a script like this:

#!/bin/bash
# Back up cjglap2 - version 2025-08-27
# This script must be run as root!
if [ "$(id -u)" -ne 0 ];
then
  echo This script must be run as root!
  exit
fi
# Copy the root partition.
dd if=/dev/sda1 | gzip >/mnt/backup/cjglap2/sda1.img.gz
# Copy various directories.
rsync -av --delete /etc                                /mnt/backup/cjglap2
rsync -av --delete /usr                                /mnt/backup/cjglap2
rsync -av --exclude='/home/cjg/.cache/' --delete /home /mnt/backup/cjglap2
rsync -av --delete /var/spool/slrnpull                 /mnt/backup/cjglap2

Then, even if the worst happens, I can wipe the disk and start over.
Having /home in its own partition makes things a lot easier.

-- 
/~\  Charlie Gibbs                  |  In this world there are
\ /  <[email protected]>      |  two kinds of people:
 X   I'm really at ac.dekanfrus     |  1. Those who can extrapolate
/ \  if you read it the right way.  |  from incomplete data.