Jump to content

apt-get update fails with public key errors


Go to solution Solved by Igor,

Recommended Posts

Posted

Hi everyone!

 

I did not has any problem with apt update. But the last weeks i got this error with one of the Armbian servers if i am right? Is there also a fix for this?

 

Thank you very much! :)

 

Hit:1 http://ports.ubuntu.com jammy InRelease
Hit:2 http://ports.ubuntu.com jammy-security InRelease                                                                                                                      
Hit:3 http://ports.ubuntu.com jammy-updates InRelease                                                                                                                       
Hit:4 http://ports.ubuntu.com jammy-backports InRelease                                                                                                                     
Hit:5 https://download.docker.com/linux/ubuntu jammy InRelease                                                                                                              
Get:6 https://deb.nodesource.com/node_16.x jammy InRelease [4,583 B]                                                                        
Get:7 http://fi.mirror.armbian.de/apt jammy InRelease [52.5 kB]                  
Err:7 http://fi.mirror.armbian.de/apt jammy InRelease        
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 93D6889F9F0E78D5
Fetched 4,583 B in 2s (2,027 B/s)
Reading package lists... Done
Building dependency tree... Done
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://fi.mirror.armbian.de/apt jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 93D6889F9F0E78D5
W: Failed to fetch http://apt.armbian.com/dists/jammy/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 93D6889F9F0E78D5
W: Some index files failed to download. They have been ignored, or old ones used instead.

 

Posted (edited)

Hi the error is back:

 

GPG error: http://mirrors.jevincanders.net/armbian/apt noble InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 93D6889F9F0E78D5

 

I tried to add the key, but apt-key is deprecated:

 

$wget -qO - http://mirrors.jevincanders.net/armbian/apt/armbian.key | sudo apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK

 

From man page it should be using a new .asc file, instead of the .key:

If your existing use of apt-key add looks like this:

wget -qO- https://myrepo.example/myrepo.asc | sudo apt-key add -

Then you can directly replace this with (though note the recommendation below):

wget -qO- https://myrepo.example/myrepo.asc | sudo tee /etc/apt/trusted.gpg.d/myrepo.asc

 

So just seat and wait for the repos to adjust.

 

EDIT:

 

I run armbian-config again to reconfigure mirrors, and I get this one: http://armbian.chi.auroradev.org/apt that runs fine.

 

In the end I got a warning:

 

W: http://apt.armbian.com/dists/noble/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details

 

I did the upgrade and then tried updating again, and I got the same issue.

Edited by ricardo_brz
new information
Posted
5 minutes ago, ricardo_brz said:

I tried to add the key, but apt-key is deprecated:


Key is not deprecated, method is. On Noble / Sid and future.

 

sudo wget https://apt.armbian.com/armbian.key -O key
sudo gpg --dearmor < key | sudo tee /usr/share/keyrings/armbian.gpg > /dev/null
sudo chmod go+r /usr/share/keyrings/armbian.gpg
sudo echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/armbian.gpg] http://apt.armbian.com $(lsb_release -cs) main  $(lsb_release -cs)-utils  $(lsb_release -cs)-desktop" | sudo tee /etc/apt/sources.list.d/armbian.list
apt update

 

Posted

Igor steps are great and eliminated the NO_PUBKEY 93D6889F9F0E78D5 message but I am still facing theses messages when trying to update/upgrade my mks/skipr rpi armibian:  

 

root@mkspi:~# sudo apt-get update && sudo apt-get upgrade -y
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian buster-updates InRelease
Ign:3 http://deb.debian.org/debian buster-backports InRelease
Hit:4 http://security.debian.org buster/updates InRelease
Hit:5 https://github.armbian.com/configng stable InRelease
Err:6 http://deb.debian.org/debian buster-backports Release
  404  Not Found [IP: 2a04:4e42:2a::644 80]

Hit:7 http://fi.mirror.armbian.de/apt buster InRelease
Reading package lists... Done
E: The repository 'http://deb.debian.org/debian buster-backports Release' no longer has 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.

 

Appreciate any help!

Posted

Many Thanks Werner & Igor...

 

 

By Werner link Its seems it ´s not available so far....

 

Debian Backports does not support LTS [1], therefore buster-backports is unsupported since August 1st 2022.

Despite of the documentation buster-backport was still available on the mirrors, that changed recently with the archival of buster-backports. Unfortunately we missed to create an announcement in 2022 which led so some surprise. Please take this as the missing announcement.

 

Following Igor recommendations...

 

Note: although Fluid says:

Your Klipper version is: v0.12.0-401-g383b83d78
MCU(s) which should be updated:
rpi: Current version v0.11.0-121-ga5fb2076
Up-to-date MCU(s):
mcu: Current version v0.12.0-401-g383b83d78

 

The commands below shows (buster)

root@mkspi:/etc/apt# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
root@mkspi:/etc/apt#

root@mkspi:/etc/apt# uname -mrs
Linux 5.16.20-rockchip64 aarch64


root@mkspi:/etc/apt# cat /etc/debian_version
10.13

root@mkspi:/etc/apt# sudo apt-mark showhold | more
linux-dtb-edge-rockchip64
linux-image-edge-rockchip64
linux-u-boot-mkspi-edge

 

Updated sources.list as follow:

deb http://deb.debian.org/debian bookworm main contrib non-free
#deb-src http://deb.debian.org/debian buster main contrib non-free

deb http://deb.debian.org/debian bookworm-updates main contrib non-free
#deb-src http://deb.debian.org/debian buster-updates main contrib non-free

deb http://deb.debian.org/debian bookworm-backports main contrib non-free
#deb-src http://deb.debian.org/debian buster-backports main contrib non-free

deb http://security.debian.org/ bookworm/updates main contrib non-free
#deb-src http://security.debian.org/ buster/updates main contrib non-free

 

when trying to run update I got the following...


root@mkspi:/etc/apt/sources.list.d# sudo apt update
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Ign:2 http://security.debian.org bookworm/updates InRelease
Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:4 http://deb.debian.org/debian bookworm-backports InRelease [59.0 kB]
Hit:5 https://github.armbian.com/configng stable InRelease
Err:6 http://security.debian.org bookworm/updates Release
  404  Not Found [IP: 2a04:4e42:2a::644 80]
Get:7 http://deb.debian.org/debian bookworm/main arm64 Packages [11.9 MB]
Hit:8 http://fi.mirror.armbian.de/apt buster InRelease
Get:9 http://deb.debian.org/debian bookworm/main armhf Packages [11.7 MB]
Get:10 http://deb.debian.org/debian bookworm/main armhf Contents (deb) [10.3 MB]
Get:11 http://deb.debian.org/debian bookworm/main all Contents (deb) [33.9 MB]
Get:12 http://deb.debian.org/debian bookworm/main arm64 Contents (deb) [11.2 MB]
Get:13 http://deb.debian.org/debian bookworm/contrib arm64 Packages [54.7 kB]
Get:14 http://deb.debian.org/debian bookworm/contrib armhf Packages [50.7 kB]
Get:15 http://deb.debian.org/debian bookworm/contrib armhf Contents (deb) [34.5 kB]
Get:16 http://deb.debian.org/debian bookworm/contrib all Contents (deb) [98.6 kB]
Get:17 http://deb.debian.org/debian bookworm/contrib arm64 Contents (deb) [37.9 kB]
Get:18 http://deb.debian.org/debian bookworm/non-free arm64 Packages [93.6 kB]
Get:19 http://deb.debian.org/debian bookworm/non-free armhf Packages [68.4 kB]
Get:20 http://deb.debian.org/debian bookworm/non-free all Contents (deb) [839 kB]
Get:21 http://deb.debian.org/debian bookworm/non-free arm64 Contents (deb) [44.0 kB]
Get:22 http://deb.debian.org/debian bookworm/non-free armhf Contents (deb) [15.2 kB]
Get:23 http://deb.debian.org/debian bookworm-updates/main armhf Packages [8,292 B]
Get:24 http://deb.debian.org/debian bookworm-updates/main arm64 Packages [8,844 B]
Get:25 http://deb.debian.org/debian bookworm-updates/main arm64 Contents (deb) [82.1 kB]
Get:26 http://deb.debian.org/debian bookworm-updates/main armhf Contents (deb) [76.1 kB]
Get:27 http://deb.debian.org/debian bookworm-updates/main all Contents (deb) [40.1 kB]
Get:28 http://deb.debian.org/debian bookworm-updates/contrib arm64 Packages [768 B]
Get:29 http://deb.debian.org/debian bookworm-updates/contrib arm64 Contents (deb) [222 B]
Get:30 http://deb.debian.org/debian bookworm-updates/non-free armhf Packages [492 B]
Get:31 http://deb.debian.org/debian bookworm-updates/non-free arm64 Packages [12.0 kB]
Get:32 http://deb.debian.org/debian bookworm-updates/non-free arm64 Contents (deb) [14.9 kB]
Get:33 http://deb.debian.org/debian bookworm-updates/non-free armhf Contents (deb) [165 B]
Get:34 http://deb.debian.org/debian bookworm-backports/main armhf Packages [264 kB]
Get:35 http://deb.debian.org/debian bookworm-backports/main arm64 Packages [263 kB]
Get:36 http://deb.debian.org/debian bookworm-backports/main armhf Contents (deb) [1,948 kB]
Get:37 http://deb.debian.org/debian bookworm-backports/main all Contents (deb) [6,097 kB]
Get:38 http://deb.debian.org/debian bookworm-backports/main arm64 Contents (deb) [2,169 kB]
Get:39 http://deb.debian.org/debian bookworm-backports/contrib arm64 Packages [4,968 B]
Get:40 http://deb.debian.org/debian bookworm-backports/contrib armhf Packages [4,744 B]
Get:41 http://deb.debian.org/debian bookworm-backports/contrib arm64 Contents (deb) [17.6 kB]
Get:42 http://deb.debian.org/debian bookworm-backports/contrib all Contents (deb) [23.2 kB]
Get:43 http://deb.debian.org/debian bookworm-backports/contrib armhf Contents (deb) [17.5 kB]
Get:44 http://deb.debian.org/debian bookworm-backports/non-free armhf Packages [1,516 B]
Get:45 http://deb.debian.org/debian bookworm-backports/non-free arm64 Packages [10.1 kB]
Get:46 http://deb.debian.org/debian bookworm-backports/non-free arm64 Contents (deb) [11.1 kB]
Get:47 http://deb.debian.org/debian bookworm-backports/non-free armhf Contents (deb) [165 B]
Get:48 http://deb.debian.org/debian bookworm-backports/non-free all Contents (deb) [32.5 kB]

^C
root@mkspi:/etc/apt/sources.list.d# Traceback (most recent call last):
  File "/usr/lib/cnf-update-db", line 26, in <module>
    col.create(db)
  File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 94, in create
    self._fill_commands(con)
  File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 132, in _fill_commands
    self._parse_single_contents_file(con, f, fp.stdout)
  File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 229, in _parse_single_contents_file
    if not (l.startswith('usr/sbin') or l.startswith('usr/bin') or
KeyboardInterrupt
sudo apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:3 http://deb.debian.org/debian bookworm-backports InRelease
Hit:4 https://github.armbian.com/configng stable InRelease
Ign:5 http://security.debian.org bookworm/updates InRelease
Err:7 http://security.debian.org bookworm/updates Release
  404  Not Found [IP: 2a04:4e42:2a::644 80]
Hit:6 http://fi.mirror.armbian.de/apt buster InRelease

Reading package lists... Done
E: The repository 'http://security.debian.org bookworm/updates 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.

 

So the question is: it safe to move ahead?  Not sure if its important but want to highlight that mks skipr is 32 bits.

 

Super appreciate.
 

 

Posted

It is better to avoid outdated releases, otherwise googling for those quite common errors or searching Debian forums might be more efficient but still not give desired comfort.

Posted (edited)

Still need help on to fix the last error after upgrade rebooting. Appreciate any help.

 

rockchip-pm-domain ff100000.syscon:power-controller: failed to get ack on domain 'hevc', val=0x88220
[    3.467670] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)

 gpio-syscon ff100000.syscon:gpio: can't read the data register offset!
[    4.449038] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[    4.498915] genpd_dev_pm_attach: return 0
[    4.499250] rockchip-u3phy ff470000.usb3-phy: vbus_drv is not assigned


rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[    4.498915] genpd_dev_pm_attach: return 0
[    4.499250] rockchip-u3phy ff470000.usb3-phy: vbus_drv is not assigned

 

Fluidd also throwing same error messages befor this whole journey started at:

 

MCU Protocol error

This is frequently caused by running an older version of the
firmware on the MCU(s). Fix by recompiling and flashing the
firmware.

Your Klipper version is: v0.12.0-401-g383b83d78
MCU(s) which should be updated:
rpi: Current version v0.11.0-121-ga5fb2076
Up-to-date MCU(s):

mcu: Current version v0.12.0-401-g383b83d78

Once the underlying issue is corrected, use the "RESTART"
command to reload the config and restart the host software.

mcu 'rpi': Command format mismatch: query_adxl345 oid=%c rest_ticks=%u vs query_adxl345 oid=%c clock=%u rest_ticks=%u 

 

 

I did decide to moved ahead and would like to register steps and important actions to  willing to do the same to take care on buster to bookworm upgrade on mks skipr to an error and correction found /adapted to this architecture...

 

Error faced

/usr/bin/perl: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
Error: Timeout was reached
root@mkspi:/tmp# sr/bin/dpkg returned an error code (1)

 

Correction found (with my updates commented)

Steps:
1 )cd /tmp
2) apt -y download libcrypt1
3) dpkg-deb -x libcrypt1_1%3a4.4.25-2_amd64.deb  . (substitute for correct download version using the -X parameter to check yours*)
4) cp -av lib/x86_64-linux-gnu/* /lib/x86_64-linux-gnu/ (for mks skipr might change dor aarch64-linux-gnu)
5) apt -y --fix-broken install

 

 

*root@mkspi:/tmp# dpkg-deb -X libcrypt1_1%3a4.4.33-2_arm64.deb .
./
./lib/
./lib/aarch64-linux-gnu/
./lib/aarch64-linux-gnu/libcrypt.so.1.1.0
./usr/
./usr/share/
./usr/share/doc/
./usr/share/doc/libcrypt1/
./usr/share/doc/libcrypt1/changelog.Debian.gz
./usr/share/doc/libcrypt1/changelog.gz
./usr/share/doc/libcrypt1/copyright
./lib/aarch64-linux-gnu/libcrypt.so.1

 

Then I got an error during the update process in which the only option was to click OK in the GUI...

"failure restarting gnu libc upgrade you will need to start these manually by running invoke-rc.d <service> restart"

 

Version Check

root@mkspi:~# uname -mrs
Linux 5.16.20-rockchip64 aarch64
root@mkspi:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

 


 

 

 

 

 

Edited by Claudio Calazans
Posted

Thank you Werner once again... I've set up the unattended updates.

 

I think for now major issue seems to be these errors.

 

3.467670] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)

 gpio-syscon ff100000.syscon:gpio: can't read the data register offset!
[    4.449038] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[    4.498915] genpd_dev_pm_attach: return 0
[    4.499250] rockchip-u3phy ff470000.usb3-phy: vbus_drv is not assigned


rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[    4.498915] genpd_dev_pm_attach: return 0
[    4.499250] rockchip-u3phy ff470000.usb3-phy: vbus_drv is not assigned

 

Then I'll probably reed to reflash mcu to try to have rpi updated.

 

 

Posted (edited)

UPGRADE SOLVED

The EASIEST & CLEANEST way to update from makerbase skipr git img (buster based to bookworm) was starting it from scratch!

1) Format eMMC
2) Download Armbian 6.6 iot version img from community

3) Install KIAUH (as recommended at the GIT) and from it all other software and updates

Klipper, Mainsail, Mobileraker and update system!

 

image.png.f0779b1f2fb435073ce54015d5fe5583.png

 

 

Now I'm moving to next steps now on MCU and CAN setup.

Keep you posted.

 

Too early for celebrations...

 

after system requested update to trunk203 and KlipperScreen (5-37 - which I don´t think caused the error I am now unable to open mainsail via browser)

 

image.png.2b518f90366e92911711b3660e1cb510.png

 

Igor & Werner Thank youl.

Edited by Claudio Calazans

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines