# Upgrade ended in a fail

**URL:** <https://dietpi.com/forum/t/upgrade-ended-in-a-fail/19462>\
**Category:** Troubleshooting\
**Tags:** raspberry-pi-4\
**Created:** [29 February 2024 17:06 UTC](https://dietpi.com/forum/t/upgrade-ended-in-a-fail/19462 "2024-02-29T17:06:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RollingDutch](https://dietpi.com/forum/user_avatar/dietpi.com/rollingdutch/32/3569_2.png) [@RollingDutch](https://dietpi.com/forum/u/RollingDutch)\
**Post date:** [29 February 2024 17:06 UTC](https://dietpi.com/forum/t/upgrade-ended-in-a-fail/19462/1 "2024-02-29T17:06:24Z")

</div>

### 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

```auto
[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.

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [29 February 2024 17:21 UTC](https://dietpi.com/forum/t/upgrade-ended-in-a-fail/19462/2 "2024-02-29T17:21:40Z")

</div>

> [@RollingDutch](#):
>
> ```auto
> │ 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
> 
> ```

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

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

```

---

<div class="post-metadata">

**Author:** ![RollingDutch](https://dietpi.com/forum/user_avatar/dietpi.com/rollingdutch/32/3569_2.png) [@RollingDutch](https://dietpi.com/forum/u/RollingDutch)\
**Post date:** [29 February 2024 20:30 UTC](https://dietpi.com/forum/t/upgrade-ended-in-a-fail/19462/3 "2024-02-29T20:30:32Z")

</div>

```auto
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:~#

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [29 February 2024 20:42 UTC](https://dietpi.com/forum/t/upgrade-ended-in-a-fail/19462/4 "2024-02-29T20:42:18Z")

</div>

> [@RollingDutch](#):
>
> `deb [arch=armhf signed-by=/usr/share/keyrings/plexmediaserver.gpg]`

You can try to update the PGP key for plex

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

```

---

<div class="post-metadata">

**Author:** ![RollingDutch](https://dietpi.com/forum/user_avatar/dietpi.com/rollingdutch/32/3569_2.png) [@RollingDutch](https://dietpi.com/forum/u/RollingDutch)\
**Post date:** [29 February 2024 21:05 UTC](https://dietpi.com/forum/t/upgrade-ended-in-a-fail/19462/5 "2024-02-29T21:05:48Z")

</div>

It just sits there:

```auto
 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

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [29 February 2024 21:07 UTC](https://dietpi.com/forum/t/upgrade-ended-in-a-fail/19462/6 "2024-02-29T21:07:10Z")

</div>

> [@RollingDutch](#):
>
> `https://downloads.plex.tv/plex-keys/PlexSign.key`

can you download the file on a different computer?

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [26 August 2024 09:07 UTC](https://dietpi.com/forum/t/upgrade-ended-in-a-fail/19462/7 "2024-08-26T09:07:51Z")

</div>

Closed on 26 August 2024 09:07 UTC

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