Upgrade ended in a fail

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | G_DIETPI_VERSION_CORE=9

  • Distro version | Bullseye 1

  • Kernel version | Linux PLEXServ 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

  • Architecture | armhf

  • SBC model | RPI 4B

  • Power supply used |Standard Raspberry original

  • SD card used | Samsung EVO 32

Expected behaviour

  • Upgrade / update Dietpi

Actual behaviour

  • Failed message, so no upgrade/update was done

Extra details

[FAILED] DietPi-Update | APT update
 - Command: apt-get -y -eany update
[ INFO ] DietPi-Update | APT update, please wait...
Hit:1 http://raspbian.raspberrypi.com/raspbian bullseye InRelease
Hit:2 https://downloads.plex.tv/repo/deb public InRelease
Hit:3 https://archive.raspberrypi.com/debian bullseye InRelease
Err:2 https://downloads.plex.tv/repo/deb public InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 97203C7B3ADCA79D
Reading package lists...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://downloads.plex.tv/repo/deb public InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 97203C7B3ADCA79D
E: Failed to fetch https://downloads.plex.tv/repo/deb/dists/public/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 97203C7B3ADCA79D
E: Some index files failed to download. They have been ignored, or old ones used instead.
[FAILED] DietPi-Update | APT update
 - Command: apt-get -y -eany update
BOOTLOADER: up to date
   CURRENT: Wed Jan 11 17:40:52 UTC 2023 (1673458852)
    LATEST: Wed Jan 11 17:40:52 UTC 2023 (1673458852)
   RELEASE: default (/lib/firmware/raspberrypi/bootloader/default)
            Use raspi-config to change the release.

  VL805_FW: Dedicated VL805 EEPROM
     VL805: up to date
   CURRENT: 000138c0
    LATEST: 000138c0
[ SUB2 ] DietPi-Set_software > apt (cache)
[ INFO ] DietPi-Set_software | apt-get clean, please wait...
[  OK  ] DietPi-Set_software | apt-get clean
[  OK  ] DietPi-Set_software | Desired setting in /etc/apt/apt.conf.d/99-dietpi-cache was already set: Dir::Cache "/tmp/apt";
[  OK  ] DietPi-Set_software | Current setting in /etc/apt/apt.conf.d/99-dietpi-cache will be preserved: Dir::Cache::archives "/var/cache/apt/archives";
[  OK  ] DietPi-Set_software | sed --follow-symlinks -i /pkgcache[[:blank:]]/d /etc/apt/apt.conf.d/99-dietpi-cache
[  OK  ] DietPi-Set_software | rm -Rf /var/cache/apt
[  OK  ] DietPi-Set_software | mkdir -p /var/cache/apt/archives
[  OK  ] apt cache | Completed
BOOTLOADER: up to date
   CURRENT: Wed Jan 11 17:40:52 UTC 2023 (1673458852)
    LATEST: Wed Jan 11 17:40:52 UTC 2023 (1673458852)
   RELEASE: default (/lib/firmware/raspberrypi/bootloader/default)
            Use raspi-config to change the release.

  VL805_FW: Dedicated VL805 EEPROM
     VL805: up to date
   CURRENT: 000138c0
    LATEST: 000138c0

RPi 4 Model B (aarch64) | IP: 192.168.0.35 | Use up/down buttons to scroll text┐
│ Hit:3 https://archive.raspberrypi.com/debian bullseye InRelease
│ Err:2 https://downloads.plex.tv/repo/deb public InRelease
│   The following signatures couldn't be verified because the public key is
│ not available: NO_PUBKEY 97203C7B3ADCA79D
│ Reading package lists...
│ W: An error occurred during the signature verification. The repository is
│ not updated and the previous index files will be used. GPG error:
│ https://downloads.plex.tv/repo/deb public InRelease: The following
│ signatures couldn't be verified because the public key is not available:
│ NO_PUBKEY 97203C7B3ADCA79D
│ E: Failed to fetch https://downloads.plex.tv/repo/deb/dists/public/InRelease
│ The following signatures couldn't be verified because the public key is not
│ available: NO_PUBKEY 97203C7B3ADCA79D
│ E: Some index files failed to download. They have been ignored, or old ones
│ used instead.

Key for your Plex repository doesn’t seems to be correct anymore. Let’s see where it is configured

for i in /etc/apt/sources.list{,.d/*.list}; do echo "$i:"; cat "$i"; done
for i in /etc/apt/sources.list{,.d/*.list}; do echo "$i:"; cat "$i"; done

/etc/apt/sources.list:
deb http://raspbian.raspberrypi.com/raspbian/ bullseye main contrib non-free

/etc/apt/sources.list.d/plexmediaserver.list:
deb [arch=armhf signed-by=/usr/share/keyrings/plexmediaserver.gpg] https://downloads.plex.tv/repo/deb/ public main

/etc/apt/sources.list.d/raspi.list:
deb https://archive.raspberrypi.com/debian/ bullseye main
root@PLEXServ:~#

You can try to update the PGP key for plex

curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo gpg --dearmor -o /usr/share/keyrings/plexmediaserver.gpg
apt update

It just sits there:

 curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo gpg --dearmor -o /usr/share/keyrings/plexmediaserver.gpg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0File '/usr/share/keyrings/plexmediaserver.gpg' exists. Over100  3072  100  3072    0     0  22260      0 --:--:-- --:--:-- --:--:-- 22100

But it seems to have worked as I can now do the Dietpi update

can you download the file on a different computer?

This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.