# 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:
|
|
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
:
|
|
After updating the mirror config, download the package information with
|
|
- upgrade the system
|
|
- do a full upgrade
|
|
- remove old packages
|
|
- and reboot
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.