# Proxmox Debian LXC upgrade to Bookworm

Tags: Proxmox Homelab Linux Debian Selfhosting

Reading time: 1 minute

Description: A quick summary on the upgrade process of LXC's to Debian 12 (Bookworm)



On the 10.06.2023 Debian 12 (Bookworm) was released as stable, this is a short summary on the upgrade process of LXC’s.


It’s a good idea to check for and remove orphaned packages before upgrading.

To list those:

1
apt list '~o'

Remove those and update the mirror config from debian, if you have any other sources, check if they are compatible and also update them.


In /etc/apt/sources.list and under /etc/apt/sources.list.d/ replace all occurrences of your old distribution name to bookworm:

1
2
3
4
5
deb http://ftp.debian.org/debian bookworm main contrib

deb http://ftp.debian.org/debian bookworm-updates main contrib

deb http://security.debian.org bookworm-security main contrib

After updating the mirror config, download the package information with

1
apt update
1
apt upgrade
1
apt full-upgrade
1
apt autoremove

Now the upgrade should be done, there may be extra work needed depending on the software installed in the container.

For example in my Mastodon LXC i had to redownload the dependencies with bundle install --redownload since a library was missing.