Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #195782 > unrolled thread

How to rebuild the keys for APT.

Started byPhilip <philip@treads.nz>
First post2018-05-16 01:10 +0200
Last post2018-05-16 09:10 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  How to rebuild the keys for APT. Philip <philip@treads.nz> - 2018-05-16 01:10 +0200
    Re: How to rebuild the keys for APT. deloptes <deloptes@gmail.com> - 2018-05-16 07:10 +0200
      Re: How to rebuild the keys for APT. Philip <philip@treads.nz> - 2018-05-16 09:10 +0200

#195782 — How to rebuild the keys for APT.

FromPhilip <philip@treads.nz>
Date2018-05-16 01:10 +0200
SubjectHow to rebuild the keys for APT.
Message-ID<vPReW-25e-5@gated-at.bofh.it>
I recently had to move a disk image from machine to another machine 
however when I fired it up on the new machine the APT keys were 
broken/corrupted. The errors I'm getting are below... Is there a simple 
way of fixing this?

philip@cetus:~# apt update
Ign:1 http://mirrors.linode.com/debian stretch InRelease
Hit:4 http://mirrors.linode.com/debian stretch Release
Get:2 http://mirrors.linode.com/debian-security stretch/updates 
InRelease [94.3 kB]
Hit:5 http://apt-longview.linode.com stretch InRelease
Err:6 http://mirrors.linode.com/debian stretch Release.gpg
   The following signatures couldn't be verified because the public key 
is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 
NO_PUBKEY EF0F382A1A7B6500
Get:3 http://mirrors.linode.com/debian stretch-updates InRelease [91.0 kB]
Hit:7 http://downloads.mariadb.com/MariaDB/mariadb-10.2/repo/debian 
stretch InRelease
Err:2 http://mirrors.linode.com/debian-security stretch/updates InRelease
   The following signatures couldn't be verified because the public key 
is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
Err:3 http://mirrors.linode.com/debian stretch-updates InRelease
   The following signatures couldn't be verified because the public key 
is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
Ign:8 http://downloads.mariadb.com/MaxScale/2.2/debian stretch InRelease
Err:7 http://downloads.mariadb.com/MariaDB/mariadb-10.2/repo/debian 
stretch InRelease
   The following signatures couldn't be verified because the public key 
is not available: NO_PUBKEY F1656F24C74CD1D8
Hit:9 http://downloads.mariadb.com/Tools/debian stretch InRelease
Err:9 http://downloads.mariadb.com/Tools/debian stretch InRelease
   The following signatures couldn't be verified because the public key 
is not available: NO_PUBKEY CE1A3DD5E3C94F49
Hit:10 http://downloads.mariadb.com/MaxScale/2.2/debian stretch Release
Err:11 http://downloads.mariadb.com/MaxScale/2.2/debian stretch Release.gpg
   The following signatures couldn't be verified because the public key 
is not available: NO_PUBKEY 135659E928C12247
Fetched 185 kB in 0s (190 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository 
is not updated and the previous index files will be used. GPG error: 
http://mirrors.linode.com/debian stretch Release: The following 
signatures couldn't be verified because the public key is not available: 
NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 
EF0F382A1A7B6500
W: An error occurred during the signature verification. The repository 
is not updated and the previous index files will be used. GPG error: 
http://mirrors.linode.com/debian-security stretch/updates InRelease: The 
following signatures couldn't be verified because the public key is not 
available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
W: An error occurred during the signature verification. The repository 
is not updated and the previous index files will be used. GPG error: 
http://mirrors.linode.com/debian stretch-updates InRelease: The 
following signatures couldn't be verified because the public key is not 
available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
W: An error occurred during the signature verification. The repository 
is not updated and the previous index files will be used. GPG error: 
http://downloads.mariadb.com/MariaDB/mariadb-10.2/repo/debian stretch 
InRelease: The following signatures couldn't be verified because the 
public key is not available: NO_PUBKEY F1656F24C74CD1D8
W: An error occurred during the signature verification. The repository 
is not updated and the previous index files will be used. GPG error: 
http://downloads.mariadb.com/Tools/debian stretch InRelease: The 
following signatures couldn't be verified because the public key is not 
available: NO_PUBKEY CE1A3DD5E3C94F49
W: An error occurred during the signature verification. The repository 
is not updated and the previous index files will be used. GPG error: 
http://downloads.mariadb.com/MaxScale/2.2/debian stretch Release: The 
following signatures couldn't be verified because the public key is not 
available: NO_PUBKEY 135659E928C12247
W: Failed to fetch 
http://mirrors.linode.com/debian-security/dists/stretch/updates/InRelease 
The following signatures couldn't be verified because the public key is 
not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
W: Failed to fetch 
http://mirrors.linode.com/debian/dists/stretch-updates/InRelease The 
following signatures couldn't be verified because the public key is not 
available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
W: Failed to fetch 
http://downloads.mariadb.com/MariaDB/mariadb-10.2/repo/debian/dists/stretch/InRelease 
The following signatures couldn't be verified because the public key is 
not available: NO_PUBKEY F1656F24C74CD1D8
W: Failed to fetch 
http://downloads.mariadb.com/Tools/debian/dists/stretch/InRelease The 
following signatures couldn't be verified because the public key is not 
available: NO_PUBKEY CE1A3DD5E3C94F49
W: Failed to fetch 
http://mirrors.linode.com/debian/dists/stretch/Release.gpg  The 
following signatures couldn't be verified because the public key is not 
available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 
NO_PUBKEY EF0F382A1A7B6500
W: Failed to fetch 
http://downloads.mariadb.com/MaxScale/2.2/debian/dists/stretch/Release.gpg 
The following signatures couldn't be verified because the public key is 
not available: NO_PUBKEY 135659E928C12247
W: Some index files failed to download. They have been ignored, or old 
ones used instead.

[toc] | [next] | [standalone]


#195783

Fromdeloptes <deloptes@gmail.com>
Date2018-05-16 07:10 +0200
Message-ID<vPWRj-5sD-3@gated-at.bofh.it>
In reply to#195782
Philip wrote:

> I recently had to move a disk image from machine to another machine
> however when I fired it up on the new machine the APT keys were
> broken/corrupted. The errors I'm getting are below... Is there a simple
> way of fixing this?

perhaps it is not only the gpg keys that got broken. How did you make/move
the disk image to another machine?

there is a page on the Debian Wiki how you import the keys, but it might be
something else missing as well

regards

[toc] | [prev] | [next] | [standalone]


#195786

FromPhilip <philip@treads.nz>
Date2018-05-16 09:10 +0200
Message-ID<vPYJr-6z3-1@gated-at.bofh.it>
In reply to#195783

[Multipart message — attachments visible in raw view] — view raw

SOLUTION:
I went though and added all the keys again and now it's working again.

sudo apt-key adv --keyserver keyserver.debian.org --recv-keys [KEY_MISSING]

Works good now.  Thanks everyone for the help.

Phil

On 16/05/2018 17:06, deloptes wrote:
> Philip wrote:
>
>> I recently had to move a disk image from machine to another machine
>> however when I fired it up on the new machine the APT keys were
>> broken/corrupted. The errors I'm getting are below... Is there a simple
>> way of fixing this?
> perhaps it is not only the gpg keys that got broken. How did you make/move
> the disk image to another machine?
>
> there is a page on the Debian Wiki how you import the keys, but it might be
> something else missing as well
>
> regards
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web