Getting rid of Debian 12 Bookworm legacy GPG Key warning

121 views
Skip to first unread message

Geoffrey Merck

unread,
Sep 1, 2023, 11:03:35 AM9/1/23
to aprsc
Hi,

We recently upgraded our server from Debian 11 to 12 and are now greeted with the following warning.
Capture d’écran du 2023-08-20 07-31-15.png

This is because apt-key is being deprecated and will be removed from further debian versions. See: https://manpages.debian.org/testing/apt/apt-key.8.en.html#DEPRECATION

Here is how I fixed it:

Remove the key from trusted.gpg
sudo apt-key del 657A2B8D

refetch the key and export it to keyring folder
sudo gpg --keyserver keyserver.ubuntu.com --recv C51AA22389B5B74C3896EF3CA72A581E657A2B8D
sudo bash -c "gpg --export C51AA22389B5B74C3896EF3CA72A581E657A2B8D > /usr/share/keyrings/aprsc-archive-keyring.gpg"


Edit file /etc/apt/sources.list.d/aprsc.list to look like this:
deb [arch=amd64 signed-by=/usr/share/keyrings/aprsc-archive-keyring.gpg] http://aprsc-dist.he.fi/aprsc/apt bullseye main

Remark: even though we are on bookworm we still need to use bullseye as there is not (yet) a package ready for bookworm.

Done, the warnng is gone when running apt update.

73
Geoffrey F4FXL - KC3FRA




Geoffrey Merck

unread,
Sep 7, 2023, 6:30:23 AM9/7/23
to aprsc
Update:

As of today bookworm builds are available. Thus/etc/apt/sources.list.d/aprsc.list should contain following line

deb [arch=amd64 signed-by=/usr/share/keyrings/aprsc-archive-keyring.gpg] http://aprsc-dist.he.fi/aprsc/apt bookworm main

Predrag Supurović

unread,
Jan 7, 2025, 3:51:50 AMJan 7
to aprsc
I did all said above and now i get this error:

root@aprsc:/etc/apt/sources.list.d# apt-get update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease        
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease      
Ign:4 http://aprsc-dist.he.fi/aprsc/apt DISTRIBUTION InRelease
Get:5 http://aprsc-dist.he.fi/aprsc/apt bookworm InRelease [1198 B]
Err:6 http://aprsc-dist.he.fi/aprsc/apt DISTRIBUTION Release
  404  Not Found [IP: 85.188.1.22 80]
Get:7 http://aprsc-dist.he.fi/aprsc/apt bookworm/main amd64 Packages [579 B]
Reading package lists... Done
E: The repository 'http://aprsc-dist.he.fi/aprsc/apt DISTRIBUTION Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

What should I do now?

Heikki Hannikainen

unread,
Jan 7, 2025, 3:58:34 AMJan 7
to aprsc

Hi,

In your apt sources configuration, you have a source defined for
"DISTRIBUTION" which is a placeholder in the example configs; it should be
replaced with the distribution name ("bookworm"). You also seem to have a
source for bookworm as well. Remove the duplicate lines.

On Mon, 6 Jan 2025, Predrag Supurović wrote:

> I did all said above and now i get this error:
>
> root@aprsc:/etc/apt/sources.list.d# apt-get update
> Hit:1 http://deb.debian.org/debian bookworm InRelease
> Hit:2 http://security.debian.org bookworm-security InRelease        
> Hit:3 http://deb.debian.org/debian bookworm-updates InRelease      
> Ign:4 http://aprsc-dist.he.fi/aprsc/apt DISTRIBUTION InRelease
> Get:5 http://aprsc-dist.he.fi/aprsc/apt bookworm InRelease [1198 B]
> Err:6 http://aprsc-dist.he.fi/aprsc/apt DISTRIBUTION Release
>   404  Not Found [IP: 85.188.1.22 80]
> Get:7 http://aprsc-dist.he.fi/aprsc/apt bookworm/main amd64 Packages [579 B]
> Reading package lists... Done
> E: The repository 'http://aprsc-dist.he.fi/aprsc/apt DISTRIBUTION Release' does not have a Release file.
> N: Updating from such a repository can't be done securely, and is therefore disabled by default.
> N: See apt-secure(8) manpage for repository creation and user configuration details.
>
> What should I do now?
>
> On Thursday, September 7, 2023 at 12:30:23 PM UTC+2 Geoffrey Merck wrote:
> Update:
>
> As of today bookworm builds are available. Thus/etc/apt/sources.list.d/aprsc.list should contain following line
>
> deb [arch=amd64 signed-by=/usr/share/keyrings/aprsc-archive-keyring.gpg] http://aprsc-dist.he.fi/aprsc/apt bookworm main
>
> Le vendredi 1 septembre 2023 à 17:03:35 UTC+2, Geoffrey Merck a écrit :
> Hi,
>
> We recently upgraded our server from Debian 11 to 12 and are now greeted with the following warning.
> Capture d’écran du 2023-08-20 07-31-15.png
>
> This is because apt-key is being deprecated and will be removed from further debian versions. See:
> https://manpages.debian.org/testing/apt/apt-key.8.en.html#DEPRECATION
>
> Here is how I fixed it:
>
> Remove the key from trusted.gpg
> sudo apt-key del 657A2B8D
>
> refetch the key and export it to keyring folder
> sudo gpg --keyserver keyserver.ubuntu.com --recv C51AA22389B5B74C3896EF3CA72A581E657A2B8D
> sudo bash -c "gpg --export C51AA22389B5B74C3896EF3CA72A581E657A2B8D > /usr/share/keyrings/aprsc-archive-keyring.gpg"
>
>
> Edit file /etc/apt/sources.list.d/aprsc.list to look like this:
> deb [arch=amd64 signed-by=/usr/share/keyrings/aprsc-archive-keyring.gpg] http://aprsc-dist.he.fi/aprsc/apt bullseye main
>
> Remark: even though we are on bookworm we still need to use bullseye as there is not (yet) a package ready for bookworm.
>
> Done, the warnng is gone when running apt update.
>
> 73
> Geoffrey F4FXL - KC3FRA
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "aprsc" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to aprsc+un...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/aprsc/609d7a02-ff55-4e9f-9f41-fd285f1933d4n%40googlegroups.com.
>
>

- Hessu
Reply all
Reply to author
Forward
0 new messages