# Debian 12 FTP Source Error

The Error

```bash
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](https://bookstack.archfox.org/uploads/images/gallery/2025-11/scaled-1680-/IyncIX0rPMX2nZ8d-image.png)](https://bookstack.archfox.org/uploads/images/gallery/2025-11/IyncIX0rPMX2nZ8d-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.

```bash
sudo fwconsole sa disable-deb-update-v13
```

```
sudo apt update -y && sudo apt upgrade -y
```

#### Manual Fix

**One line fix command:**

```bash
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:**

- Edit **/etc/apt/sources.list.d/archive\_uri-http\_ftp\_debian\_org\_debian-bookworm.list** ```bash
    sudo vim /etc/apt/sources.list.d/archive_uri-http_ftp_debian_org_debian-bookworm.list
    ```
- Change the first line from:  
      
    ```bash
    deb [arch=amd64] http://deb.freepbx.org/freepbx17-prod stable main
    ```
    
    To this:
    
    ```bash
    deb [arch=amd64] http://deb.freepbx.org/freepbx17-prod bookworm main
    ```
- Save it and now you can run your updates:  
      
    ```
    sudo apt update -y && sudo apt upgrade -y
    ```