Cannot update to latest dietpi


 ─────────────────────────────────────────────────────
 DietPi v8.16.2 : Update available
 ─────────────────────────────────────────────────────
 - Device model : Native PC (x86_64)
 - CPU temp : 27 °C / 80 °F : Who put me in the freezer!
 - LAN IP : 192.168.0.100 (eth0)
 - MOTD : Check out the release notes of DietPi v8.17:
          https://dietpi.com/docs/releases/v8_17/
 ─────────────────────────────────────────────────────

 DietPi Team     : https://github.com/MichaIng/DietPi#the-dietpi-project-team
 Patreon Legends : Camry2731, Chris Gelatt
 Website         : https://dietpi.com/ | https://twitter.com/DietPi_
 Contribute      : https://dietpi.com/contribute.html
 Web Hosting by  : https://myvirtualserver.com

 dietpi-update   : Run now to update DietPi from v8.16.2 to v8.17.2

 dietpi-launcher : All the DietPi programs in one place
 dietpi-config   : Feature rich configuration tool for your device
 dietpi-software : Select optimised software for installation
 htop            : Resource monitor
 cpu             : Shows CPU information and stats

root@DietPi:~# dietpi-update

 DietPi-Update
─────────────────────────────────────────────────────
 Phase: Checking for available DietPi update

[  OK  ] DietPi-Update | Checking IPv4 network connectivity
[  OK  ] DietPi-Update | Checking DNS resolver
[ INFO ] DietPi-Update | Getting latest version from: https://raw.githubusercont                                                                                                                                                                                                                                             ent.com/MichaIng/DietPi/master/.update/version
[  OK  ] DietPi-Update | Got valid latest version: 8.17.2
[  OK  ] DietPi-Update | Update available:
[ INFO ] DietPi-Update | Current version : v8.16.2
[ INFO ] DietPi-Update | Latest version  : v8.17.2

 DietPi-Update
─────────────────────────────────────────────────────
 Phase: Checking for update pre-requirements

[  OK  ] DietPi-Update | DietPi-Userdata validation: /mnt/dietpi_userdata
[  OK  ] DietPi-Update | Free space check: path=/ | available=224537 MiB | requi                                                                                                                                                                                                                                             red=100 MiB
[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : plexmediaserver
[  OK  ] DietPi-Services | stop : lighttpd
[  OK  ] DietPi-Services | stop : php7.4-fpm
[  OK  ] DietPi-Services | stop : smbd
[  OK  ] DietPi-Services | stop : nmbd

 DietPi-Update
─────────────────────────────────────────────────────
 Phase: Applying pre-patches

[  OK  ] DietPi-Update | Downloading pre-patches
[  OK  ] DietPi-Update | Applying execute permission
[  OK  ] DietPi-Update | Successfully applied pre-patches

 DietPi-Update
─────────────────────────────────────────────────────
 Phase: Upgrading APT packages

[ INFO ] DietPi-Update | APT update, please wait...
Hit:1 https://downloads.plex.tv/repo/deb public InRelease
Hit:2 https://deb.debian.org/debian bullseye InRelease
Hit:3 https://deb.debian.org/debian bullseye-updates InRelease
Hit:4 https://deb.debian.org/debian-security bullseye-security InRelease
Hit:5 https://deb.debian.org/debian bullseye-backports InRelease
Hit:6 https://repo.nextdns.io/deb stable InRelease
Err:6 https://repo.nextdns.io/deb stable InRelease
  The following signatures were invalid: EXPKEYSIG 467A7CCC8ACFA0B7 NextDNS <tea                                                                                                                                                                                                                                             m@nextdns.io>
Reading package lists...
W: An error occurred during the signature verification. The repository is not up                                                                                                                                                                                                                                             dated and the previous index files will be used. GPG error: https://repo.nextdns                                                                                                                                                                                                                                             .io/deb stable InRelease: The following signatures were invalid: EXPKEYSIG 467A7                                                                                                                                                                                                                                             CCC8ACFA0B7 NextDNS <team@nextdns.io>
E: Failed to fetch https://repo.nextdns.io/deb/dists/stable/InRelease  The follo                                                                                                                                                                                                                                             wing signatures were invalid: EXPKEYSIG 467A7CCC8ACFA0B7 NextDNS <team@nextdns.i                                                                                                                                                                                                                                             o>
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

---------------------------------------------------------------------
- DietPi has encountered an error                                   -
- Please create a ticket: https://github.com/MichaIng/DietPi/issues -
- Copy and paste only the BLUE lines below into the ticket          -
---------------------------------------------------------------------

Details:

  • Date | Tue May 9 18:45:05 BST 2023
  • DietPi version | v8.16.2 (MichaIng/master)
  • Image creator |
  • Pre-image |
  • Hardware | Native PC (x86_64) (ID=21)
  • Kernel version | Linux DietPi 5.10.0-22-amd64 #1 SMP Debian 5.10.178-3 (2023- 04-22) x86_64 GNU/Linux
  • Distro | bullseye (ID=6)
  • Command | apt-get -y -eany update
  • Exit code | 100
  • Software title | DietPi-Update

Steps to reproduce:

Expected behaviour:

Actual behaviour:

Extra details:

Additional logs:

Hit:1 https://downloads.plex.tv/repo/deb public InRelease
Hit:2 https://deb.debian.org/debian bullseye InRelease
Hit:3 https://deb.debian.org/debian bullseye-updates InRelease
Hit:4 https://deb.debian.org/debian-security bullseye-security InRelease
Hit:5 https://deb.debian.org/debian bullseye-backports InRelease
Hit:6 https://repo.nextdns.io/deb stable InRelease
Err:6 https://repo.nextdns.io/deb stable InRelease
  The following signatures were invalid: EXPKEYSIG 467A7CCC8ACFA0B7 NextDNS <tea                                                                                                                                                                                                                                             m@nextdns.io>
Reading package lists...
W: An error occurred during the signature verification. The repository is not up                                                                                                                                                                                                                                             dated and the previous index files will be used. GPG error: https://repo.nextdns                                                                                                                                                                                                                                             .io/deb stable InRelease: The following signatures were invalid: EXPKEYSIG 467A7                                                                                                                                                                                                                                             CCC8ACFA0B7 NextDNS <team@nextdns.io>
E: Failed to fetch https://repo.nextdns.io/deb/dists/stable/InRelease  The follo                                                                                                                                                                                                                                             wing signatures were invalid: EXPKEYSIG 467A7CCC8ACFA0B7 NextDNS <team@nextdns.i                                                                                                                                                                                                                                             o>
E: Some index files failed to download. They have been ignored, or old ones used                                                                                                                                                                                                                                              instead.

[FAILED] DietPi-Update | Unable to continue, DietPi-Update will now terminate.

root@DietPi:~#

i have long uninstalled nextdns and i am not using it. looks like the old next dns repositories are causing this? if yes can someone please tell me the commands in how to uninstall them so i can upgrade my dietpi

It depends.
Can you have a look into /etc/apt/sources.list.d if there is a file inside for the NextDNS repo.

sudo ls -la /etc/apt/sources.list.d

If yes, just remove it sudo rm /etc/apt/sources.list.d/nextdns.list (if it is named nextdns.list)
If there is no file, do:

sudo nano /etc/apt/sources.list

and delete the entry there.

2 Likes

many thanks,

all working now.

1 Like