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.1’ to ‘unifi-7.2’ error.
In fact the error looks most likely similar like this:
Repository 'https://dl.ubnt.com/unifi/debian stable InRelease' changed its 'Codename' value from 'unifi-7.1' to 'unifi-7.2'
Index:
- Background
- How to fix Changed its ‘Codename’ value from ‘unifi-7.1’ to ‘unifi-7.2’
- 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.1’ to ‘unifi-7.2’. On the command line this error looks like this:
openhabian@OpenHAB:~ $ sudo apt update && apt upgrade
[sudo] password for openhabian:
Get:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
Hit:2 http://davesteele.github.io/comitup/repo comitup InRelease
Get:3 http://archive.raspbian.org/raspbian buster InRelease [15.0 kB]
Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:5 https://deb.nodesource.com/node_14.x bullseye InRelease
Hit:7 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
Get:6 https://dl.ubnt.com/unifi/debian stable InRelease [3,038 B]
Get:8 http://archive.raspbian.org/raspbian buster/main armhf Packages [13.0 MB]
E: Repository 'https://dl.ubnt.com/unifi/debian stable InRelease' changed its 'Codename' value from 'unifi-7.1' to 'unifi-7.2'
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.1’ to ‘unifi-7.2’
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.1 to unifi-7.2. 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.2”. 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.1 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.2.x can be found here on the official UniFi webpage.