This walk-through explains the steps to upgrade from Debian 10 to Debian 11. Since I had to upgrade my motherboard (after 16 years of operation!) (see Machines) I could not access the internet before upgrading Debian to Bullseye. In my specific case this is because the B550m motherboard from Asrock is equipped with a Realtek RTL8111H NIC which is only supported in kernels newer than 4.19, and Debian 10 is still based on Linux kernel 4.19. Several attempts to install a newer Realtek driver failed, therefore I decided to upgrade to Debian 11 offline through an iso image.
/etc
/var/lib/dpk
/var/lib/apt/extended_states
dpkg –get-selections “*”
sudo dpkg --get-selections "*" > selections
/home
directory and hidden files to prevent some applications from overwriting existing user settings with new defaults/home/user/debian-11.6.0-amd64-DVD-1.iso /media/cdrom/ iso9660 loop 0 0
script -t 2>~/upgrade-bullseye1.time -a ~/upgrade-bullseye1.script
sudo apt upgrade --without-new-pkgs
sudo apt-mark hold libreoffice*
sudo apt full-upgrade
sudo apt-mark unhold libreoffice*
Show all packages on hold:
sudo apt-mark showhold
sudo scriptreplay ~/upgrade-bullseyestep.time ~/upgrade-bullseyestep.script
sudo apt autoremove
sudo vim /etc/network/interfaces
Replace content with:
# The loopback network interface auto lo iface lo inet loopback # The primary network interface auto enp0s5 iface enp0s5 inet static address 192.168.2.236 netmask 255.255.255.0 gateway 192.168.2.254 dns-domain sweet.home dns-nameservers 192.168.2.254
sudo hostnamectl set-hostname <new-host-name> sudo vim /etc/hosts