Whilst executing apt update and apt upgrade you maybe face this ugly unifi error that talks about codename change. This how to helps you to get rid of the Changed its ‘Codename’ value from ‘unifi-7.2’ to ‘unifi-7.3’ error.
In fact the error looks most likely similar like this:
E: Repository 'https://dl.ubnt.com/unifi/debian stable InRelease' changed its 'Codename' value from 'unifi-7.2' to 'unifi-7.3'
Index
- Background
- How to fix Changed its ‘Codename’ value from ‘unifi-7.2’ to ‘unifi-7.3’
- Additional Information
Background
I am running the unifi controller on a Raspberry Pi 4 on openhabian. Openhabian is a great solution for Smart Home and having the Unifi Network controller on the same device simplifies my life a lot. However, now I am facing the following error message: Changed its ‘Codename’ value from ‘unifi-7.2’ to ‘unifi-7.3’. On the command line this error looks like this:
openhabian@OpenHAB:~ $ sudo apt update && apt upgrade
[sudo] password for openhabian:
Get:1 http://davesteele.github.io/comitup/repo comitup InRelease [4,659 B]
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:3 http://archive.raspbian.org/raspbian buster InRelease
Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:6 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
Hit:7 https://deb.nodesource.com/node_14.x bullseye InRelease
Get:5 https://dl.ubnt.com/unifi/debian stable InRelease [3,038 B]
E: Repository 'https://dl.ubnt.com/unifi/debian stable InRelease' changed its 'Codename' value from 'unifi-7.2' to 'unifi-7.3'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N]
How to fix Changed its ‘Codename’ value from ‘unifi-7.2’ to ‘unifi-7.3’
Fixing this error is actually very easy and the solution is in the error message itself. After the error message you see the last questions which asks you to respond with either y for Yes or N for No.
Do you want to accept these changes and continue updating from this repository? [y/N]
If you just hit enter or you have a forced update running, then this question will be responded with no. The solution is in doing the opposite. You like actually the repository to be updated using the new code name that changed from unifi-7.2 to unifi-7.3. Using this new codename will not only eliminate the error, but also it will allow you to update the package on the Raspberry Pi.
That’s it!
Additional Information
The error is caused by Unifi issuing a new repository called “unifi-7.3”. This is following a software update. Your Linux system likes you to confirm that you are OK with using this new repository. In the majority of the cases you would be OK with using this. However there maybe is a reason why you like to use the old unifi-7.2 repository. In this case of course you will remain with the error, but answer the question with “N” for no in order to ensure you stay on the old version.
The change log for unifi 7.3.x can be found here on the official UniFi webpage.