Debian 12 FTP Source Error

The Error

N: Repository 'http://ftp.debian.org/debian stable InRelease' changed its 'Version' value from '12.11' to '13.1'
E: Repository 'http://ftp.debian.org/debian stable InRelease' changed its 'Codename' value from 'bookworm' to 'trixie'

image.png

If you get this error when running sudo apt update it is because of a source that points to a Debian 13 source.  Sometimes PBX will also display an error message in the update module

Solutions

fwconsole fix

This is the recommended solution provided in pbx.  It seems to be able to detect the error automatically itself.

sudo fwconsole sa disable-deb-update-v13
sudo apt update -y && sudo apt upgrade -y

Manual Fix

One line fix command:

sudo sed -i '/stable/ s/\bstable\b/bookworm/' /etc/apt/sources.list.d/archive_uri-http_ftp_debian_org_debian-bookworm.list
sudo apt update -y && sudo apt upgrade -y

Else edit by hand:


Revision #4
Created 2025-11-10 20:37:00 UTC by poslop
Updated 2026-02-10 16:14:04 UTC by poslop