Immich Bookworm to Immich Trixie for existing Immich LXCs

  • systemctl disable --now immich-web immich-ml
  • apt update && apt dist-upgrade -y
  • apt install screen -y
  • sed -i 's/bookworm/trixie/' /etc/apt/sources.list
  • sed -i 's/bookworm/trixie/' /etc/apt/sources.list.d/jellyfin.sources
  • sed -i 's/bookworm/trixie/' /etc/apt/sources.list.d/pgdg.list
  • rm -f /etc/apt/sources.list.d/immich.list
  • For OpenVINO users - apt-mark hold libigdgmm12
  • apt update. Any errors? DO NOT PROCEED
  • screen apt dist-upgrade. Follow along with the upgrade and make your own choices regarding overwriting configs. You might see ones for crontabe2scrub_all, or sshd_config. What you decide is up to you.
  • Any errors during the upgrade? DO NOT PROCEED
  • Remove and clean: apt autoremove -y && apt autoclean -y
  • apt modernize-sources, then approve the changes with a y.
  • OK you are going to see a warning, about the postgres repo. No worries, lets fix it!
  • sed -i 's|Signed-By:|& /etc/apt/trusted.gpg.d/postgresql.gpg|' /etc/apt/sources.list.d/pgdg.sources
  • apt update. You'll see a warning about NodeJS. Just ignore it.
  • Any other errors? DO NOT PROCEED
  • For those who elected to enable VAAPI for hardware transcoding, before rebooting you may need to change the GID of your /dev/dri/renderD12x device. Check if you need to do this like so: ls -l /dev/dri. If in place of the group name render you see some number (992 perhaps?), you will need to change the GID in the 'Resources' tab for the LXC in the ProxmoxVE UI:
  • Then again, you might not. I think the GID change is for brand new installs that use the Debian 13 LXC template, but I thought I'd mention it just in case.
  • OK, time to restart the LXC, so do that, and reattach.

Update Immich

First let's reset Immich to start on boot. Run systemctl enable immich-ml immich-web.

Next, let's force an update to Immich. There's a chance your version is already up-to-date but we want to migrate.

Open the /root/.immich file in a terminal text editor (nano,vi,etc) and change the version number to something below what it is. For example, if the version is 1.141.1 then change it to 1.141.0. Save and exit the editor.

Now the update should begin once you run the update command. I suggest choosing 'verbose' this time. You'll likely see Imagemagick recompiling so this update will take a bit longer than normal. And with any luck it will complete. As almost always with any update to Immich, you should make a habit of tailing the logs which will let you know if anything is broken.

  • Machine-learning: tail -f /var/log/immich/ml.log
  • Immich Web: tail -f /var/log/immich/web.log