Debian 13 Upgrade for existing LXC #7489
Replies: 39 comments 89 replies
|
Here are my findings from my server, all of these apps are in separate LXCs.. These apps (LXCs) have been pre-built via the community script (These are not fresh installs), and run fine after updating from Debian 12 to Debian 13 after following the commands above:
Note: Except for Notifarr, the update script run successfully on all LXCs, however I didn't actually have any apps that required updating so this has not been fully tested. These apps (LXCs) were NOT pre-built via community scripts (as I prefer the beta version) but still run fine on Debian 13: These apps (LXCs) have been pre-built via the community script (These are not fresh installs) and do not work when updating to Debian 13: For future reference, Unpackerr from the project board also runs fine on Debian 13. I hope this helps. Thanks. |
|
LCX upgrade to Debian 13 worked OK:
|
|
So I know we've established that the Homepage LXC is safe to update, but I've been running it for so long I forgot it was on Bullseye. I was able to upgrade to Bookworm, then reboot and upgrade to Trixie just fine. |
|
Heimdall-Dashboard no longer works when I try to load the webpage. |
|
Technitium DNS works perfect with this script. Updated to Trixie without any problem |
This comment was marked as duplicate.
This comment was marked as duplicate.
|
Zabbix seems to work (no postgresql upgrade). I need to install the PostgreSQL database module for PHP package after all to recover database connection After rebooting, the update command shows ⏳ Stopping ServicesFailed to stop zabbix-agent.service: Unit zabbix-agent.service not loaded. [ERROR] in line 45: exit code 0: while executing command systemctl stop zabbix-server $AGENT_SERVICE |
|
these are working fine for me:
I do get the "Policy will reject signature within a year" message for: Later edit: Vaultwarden has been fine too |
|
sabnzbd LXC Debian12 > 13 Upgrade it failed to start the sabnzbd systemd service due to i had to remove the virtual environment EDIT - Correct solution over here: #7489 (reply in thread) . activate Venv install requirements and close the Venv after restarting the sabnzbd systemd service, sabnzbd should run again |
|
Nginx Proxy Manager works perfect with this script. Updated to Trixie without any problem |
|
The update to Debian 13 is not working for After update service is not accessible |
|
The update works for Resilio Sync LXC. No issue The update works for Gotify LXC. No issue The update works for Vaultwarden LXC. No issue The update works for Adguardhome LXC (+ Stork + isc-kea-dhcp installed in the LXC). No issue (migration of postgresql from 15 to 17). thanks for this guidance |
|
I tried upgrading Te update commands: After reboot command the LXC don't start |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
Updated a bunch of containers using this script and most worked great. A problematic culprit that has already been mentioned is Changedetection... and a couple that haven't been mentioned are Bazarr and Privatebin. About to troubleshoot them now. |
|
Successfully updated the following:
Failed:
|
|
The only lxc container that didn't work after updating was TasmoAdmin, and the OS itself just worked fine. I just needed to uninstall php8.2 and install php8.4 (and the dependencies): |
|
Upgraded NGINX Proxy Manager (default install with simple setup) |
|
NGINX Proxy Manager got Fixed by Then do regular upgrade, now confirmed this works |
|
Updating NginxProxyManager using the I think the sources for NodeJS and Openresty should be checked within the upgrade script. I am not sure what the correct values are and how to fix this |
|
It worked for Nginx Proxy Manager LXC inside Proxmox VE 8.4.16. I needed it to upgrade Nginx Proxy Manager itself. I had trouble with these openresty errors, but Google Gemini helped me to worked it out and now it's all fine. Thank you all |
|
Nginx Proxy Manager From v2.13.7 to v2.14.0 Fixed by Then update again |
|
Upgraded the following LXCs from Debian 12 to Debian 13: CTID Hostname OS100 paperless-ngx Debian GNU/Linux 12 (bookworm) Everything flawless except paperless-ngx. After upgrading I receive "500 Internal Server error". Skipping DB Update does not change this, wating 10+ minutes or rebooting with no success so far. Rolled back via Snapshot for now. |
|
Is this still the recommended way to update a LXC Container? By the way: One of my LXCs is still on Debian 11. Can it be upgraded the same way? |
|
Could update the Jdownloader2-Container first to Debian 12 and then to 13. Up and running fine. ... Is there anything I can do to get that fixed? |
|
Successfully upgraded Trilium with no issues. |
|
Hello I mean I've created that lxc some time ago, now when I want update with update command its say script is for 13 and you are on 12 it could not work. Status: Downloaded newer image for ghcr.io/home-assistant/home-assistant:stable
ghcr.io/home-assistant/home-assistant:stable
⠇ Updating All Containerserror: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.13/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
✖️ in line 46: exit code 1 (General error / Operation not permitted): while executing command pip install -U runlike
--- Last 20 lines of log ---
[2026-07-29 13:23:24] Home Assistant Update Options
[2026-07-29 13:23:26] [INFO] Updating All Containers
[2026-07-29 13:24:12] [ERROR] in line 46: exit code 1 (General error / Operation not permitted): while executing command pip install -U runlike
-----------------------------------Anything I am doing wrong? If I am in wrong topic please point correct one. |
|
Worked well, did not have any issues upgrading deb-12 for Pi-hole, and Adguard, going to slowly run through some of my older LXCs. |
|
Hello, I just migrated Nginx Proxy Manager to Trixie without problems. Thank you to the OP. BR. |
|
A lot of scripts have moved on to Debian 13 from 12 and warn when you update to update to 13 first. Is there an official guide or script to do that as painless as possible? Hacking around in the console isn't really user friendly and abandons everyone who has used scripts with Debian 12. Besides, this guide doesn't mention how much free disk space is needed for the upgrade to complete sucessfully. A lot of small LXCs are configured very limited by default. |


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Looking for Debian 13 Upgrade Testers
We are currently looking for testers for Debian 13 (Trixie) in our LXC scripts.
At this stage, support will most likely only work on Proxmox VE 9 (currently 9.0). Proxmox VE 8.x is not targeted for Debian 13 support.
Caution
The following post is intended as Beta-test, proceed with Caution and ensure full Backups are created.
The ideal commands we recommand to update a Debian 12 (Bookworm) LXC to Debian 13 Trixie:
What it does
This will install the latest updates, install screen (kinda like a virtual terminal) this makes sure the update continues to run even if the ssh session would get interrupted, the user can just run
screen -rto re-attach to the update process.After that it will rewrite the sources to Trixie and upgrade everything.
Then existin source files will be rewritten to the new deb822 format.
Caution
Proceed with Caution, this may break your LXC, so be sure to create proper Backups beforehand.
Important
Check out this thread for more info on what LXC have issues upgrading and keep up to date on their status:
#7332
apt update apt install screen -y apt upgrade -y sed -i 's/bookworm/trixie/g' /etc/apt/sources.list apt update screen apt dist-upgrade apt autoremove apt autoclean apt modernize-sources apt update rebootTip
After the upgrade the MOTD (Message displayed on SSH login, will still show Debian 12, check out this guide on how to regenerate it.
#7227
Note
For new installations of a LXC, check this thread:
#7485
Warning
Please only report the apps that don't work. as otherwise this discussion get's a bit flooded.
Thanks!
We would appreciate your feedback
Simply let us know which scripts are working and which are not.
We will continuously clean up and update this post based on your reports.
Thank you for helping us move Debian 13 support forward 🙌
CrazyWolf13 (Community-Scripts-Team)
All reactions