Cannot update to 7.5.2 from 7.4.2 Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
Totila
Posts: 59
Joined: Sun Aug 04, 2019 8:29 am

Cannot update to 7.5.2 from 7.4.2

Post by Totila »

Hi there,

I cannot update my PI from 7.4.2 to 7.5.2. Please see below the output.
Any help would be much appreciated.

Code: Select all

DietPi v7.4.2 : Update available ─────────────────────────────────────────────────────
    - Device model : RPi 3 Model B+ (armv7l) ──────────────────────────
  Image by        : DietPi Core Team (pre-image: Raspbian Lite)
 dietpi-update   : Run now to update DietPi from v7.4.2 to v7.5.2
 dietpi-launcher : All the DietPi programs in one place
 RPi 3 Model B+ (armv7l) | IP: 192.168.200.2                                     ┌──────────────────────────────┤ DietPi-Update ├───────────────────────────────┐│                                                                                               ││ Do you wish to continue and update DietPi to v7.5.2?                         ││                                                                              ││                     <Ok>                         <Cancel>                    ││                                                                              │└──────────────────────────────────────────────────────────────────────────────┘[ SUB1 ] DietPi-Services > stop
 [  OK  ] DietPi-Services | stop : cron
 [  OK  ] DietPi-Services | stop : lighttpd
 [  OK  ] DietPi-Services | stop : php7.3-fpm
 [  OK  ] DietPi-Services | stop : mariadb
 [  OK  ] DietPi-Services | stop : redis-server
 [  OK  ] DietPi-Services | stop : proftpd
 DietPi-Update
 | Use up/down buttons to scroll text│ APT update
 │  - Command: apt-get --allow-releaseinfo-change-suite -q update
 │  - Exit code: 255
 │  - DietPi version: v7.4.2 (MichaIng/master) | HW_MODEL: 3 | HW_ARCH: 2 |
 │ DISTRO: 5
 │  - Image creator: DietPi Core Team
 RPi 3 Model B+ (armv7l) | IP: 192.168.200.2 | Use up/down buttons to scroll text│ APT update                                                                    │  - Command: apt-get --allow-releaseinfo-change-suite -q update                │  - Exit code: 255                                                             │  - DietPi version: v7.4.2 (MichaIng/master) | HW_MODEL: 3 | HW_ARCH: 2 |      │ DISTRO: 5                                                                     │  - Image creator: DietPi Core Team                                            │  - Pre-image: Raspbian Lite                                                   │  - Error log:                                                                 │ Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease               │ Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease             │ Get:3 https://packages.sury.org/php buster InRelease [6837 B]                 │ Hit:4 https://archive.raspberrypi.org/debian buster InRelease                 │ Err:3 https://packages.sury.org/php buster InRelease                          │   The following signatures were invalid: EXPKEYSIG B188E2B695BD4743           │ DEB.SURY.ORG Automatic Signing Key <deb@sury.org>                             │ Fetched 6837 B in 2s (4254 B/s)                                               │ Reading package lists...                                  

Code: Select all

┌──────────────────────────────┤ DietPi-Update ├───────────────────────────────┐
│ APT update                                                                   │
│  - Command: apt-get --allow-releaseinfo-change-suite -q update               │
│  - Exit code: 255                                                            │
│  - DietPi version: v7.4.2 (MichaIng/master) | HW_MODEL: 3 | HW_ARCH: 2 |     │
│ DISTRO: 5                                                                    │
│  - Image creator: DietPi Core Team                                           │
│  - Pre-image: Raspbian Lite                                                  │
│  - Error log:                                                                │
│ Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease              │
│ Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease            │
│ Get:3 https://packages.sury.org/php buster InRelease [6837 B]                │
│ Hit:4 https://archive.raspberrypi.org/debian buster InRelease                │
│ Err:3 https://packages.sury.org/php buster InRelease                         │
│   The following signatures were invalid: EXPKEYSIG B188E2B695BD4743          │
│ DEB.SURY.ORG Automatic Signing Key <deb@sury.org>                            │
│ Fetched 6837 B in 2s (4260 B/s)                                              │
│ 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://packages.sury.org/php buster InRelease: The following signatures     │
│ were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key  │
│ <deb@sury.org>                                                               │
│ W: Failed to fetch https://packages.sury.org/php/dists/buster/InRelease  The │
│ following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG   │
│ Automatic Signing Key <deb@sury.org>                                         │
│ W: Some index files failed to download. They have been ignored, or old ones[...]
No clue why the update didn't run through. Previous ones worked fine. I tried rebooting the PI and do the update again but that didn't help.

Thanks
-T
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot update to 7.5.2 from 7.4.2

Post by Joulinar »

Hi,

this is a known issue and usually should not happen anymore. Pls help us to identify why it still happen. Therefore, could you run following command and past the output

Code: Select all

ls -l /etc/apt/trusted.gpg.d/dietpi-php.gpg
apt-key list '95BD4743'
apt-key list
ls -l /var/lib/apt/lists
To have it fixed, just do following

Code: Select all

apt-key del '95BD4743'
curl -sSfL 'https://packages.sury.org/php/apt.gpg' -o /etc/apt/trusted.gpg.d/dietpi-php.gpg
/boot/dietpi/func/dietpi-set_software apt-cache clean
apt update
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Totila
Posts: 59
Joined: Sun Aug 04, 2019 8:29 am

Re: Cannot update to 7.5.2 from 7.4.2

Post by Totila »

Output as requested:

Code: Select all


root@DietPi:~# ls -l /etc/apt/trusted.gpg.d/dietpi-php.gpg
ls: Zugriff auf '/etc/apt/trusted.gpg.d/dietpi-php.gpg' nicht möglich: Datei oder Verzeichnis nicht gefunden
root@DietPi:~# apt-key list '95BD4743'
pub   rsa3072 2019-03-18 [SC] [verfallen: 2021-03-17]
      1505 8500 A023 5D97 F5D1  0063 B188 E2B6 95BD 4743
uid        [ verfallen ] DEB.SURY.ORG Automatic Signing Key <deb@sury.org>

root@DietPi:~# apt-key list
/etc/apt/trusted.gpg
--------------------
pub   rsa2048 2012-04-01 [SC]
      A0DA 38D0 D76E 8B5D 6388  7281 9165 938D 90FD DD2E
uid        [ unbekannt ] Mike Thompson (Raspberry Pi Debian armhf ARMv6+VFP) <mpthompson@gmail.com>
sub   rsa2048 2012-04-01 [E]

pub   rsa2048 2012-06-17 [SC]
      CF8A 1AF5 02A2 AA2D 763B  AE7E 82B1 2992 7FA3 303E
uid        [ unbekannt ] Raspberry Pi Archive Signing Key
sub   rsa2048 2012-06-17 [E]

pub   rsa3072 2019-03-18 [SC] [verfallen: 2021-03-17]
      1505 8500 A023 5D97 F5D1  0063 B188 E2B6 95BD 4743
uid        [ verfallen ] DEB.SURY.ORG Automatic Signing Key <deb@sury.org>

/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg
----------------------------------------------------------
pub   rsa4096 2014-11-21 [SC] [verfällt: 2022-11-19]
      126C 0D24 BD8A 2942 CC7D  F8AC 7638 D044 2B90 D010
uid        [ unbekannt ] Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg
-------------------------------------------------------------------
pub   rsa4096 2014-11-21 [SC] [verfällt: 2022-11-19]
      D211 6914 1CEC D440 F2EB  8DDA 9D6D 8F6B C857 C906
uid        [ unbekannt ] Debian Security Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg
-------------------------------------------------------
pub   rsa4096 2013-08-17 [SC] [verfallen: 2021-08-15]
      75DD C3C4 A499 F1A1 8CB5  F3C8 CBF8 D6FD 518E 17E1
uid        [ verfallen ] Jessie Stable Release Key <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg
-----------------------------------------------------------
pub   rsa4096 2017-05-22 [SC] [verfällt: 2025-05-20]
      E1CF 20DD FFE4 B89E 8026  58F1 E0B1 1894 F66A EC98
uid        [ unbekannt ] Debian Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
sub   rsa4096 2017-05-22 [S] [verfällt: 2025-05-20]

/etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg
--------------------------------------------------------------------
pub   rsa4096 2017-05-22 [SC] [verfällt: 2025-05-20]
      6ED6 F5CB 5FA6 FB2F 460A  E88E EDA0 D238 8AE2 2BA9
uid        [ unbekannt ] Debian Security Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
sub   rsa4096 2017-05-22 [S] [verfällt: 2025-05-20]

/etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg
--------------------------------------------------------
pub   rsa4096 2017-05-20 [SC] [verfällt: 2025-05-18]
      067E 3C45 6BAE 240A CEE8  8F6F EF0F 382A 1A7B 6500
uid        [ unbekannt ] Debian Stable Release Key (9/stretch) <debian-release@lists.debian.org>

root@DietPi:~# ls -l /var/lib/apt/lists
insgesamt 26376
-rw-r--r-- 1 root root    32637 Aug 28 02:31 archive.raspberrypi.org_debian_dists_buster_InRelease
-rw-r--r-- 1 root root   292944 Aug 28 02:31 archive.raspberrypi.org_debian_dists_buster_main_binary-armhf_Packages.xz
-rw-r--r-- 1 root root    32382 Mai 11 19:51 archive.raspberrypi.org_debian_dists_buster_Release
-rw-r--r-- 1 root root      488 Mai 11 19:51 archive.raspberrypi.org_debian_dists_buster_Release.gpg
drwxr-xr-x 2 _apt root     4096 Mär  4 17:14 auxfiles
-rw-r----- 1 root root        0 Apr 17  2020 lock
-rw-r--r-- 1 root root     6823 Mär 16 12:13 packages.sury.org_php_dists_buster_InRelease
-rw-r--r-- 1 root root   186900 Mär 16 10:12 packages.sury.org_php_dists_buster_main_binary-armhf_Packages.xz
drwx------ 2 _apt root     4096 Aug 28 20:19 partial
-rw-r--r-- 1 root root    14976 Aug 27 19:25 raspbian.raspberrypi.org_raspbian_dists_bullseye_InRelease
-rw-r--r-- 1 root root 13223264 Aug 25 07:16 raspbian.raspberrypi.org_raspbian_dists_bullseye_main_binary-armhf_Packages.xz
-rw-r--r-- 1 root root    58748 Jun 19 12:52 raspbian.raspberrypi.org_raspbian_dists_buster_contrib_binary-armhf_Packages.xz
-rw-r--r-- 1 root root    14977 Aug 27 19:00 raspbian.raspberrypi.org_raspbian_dists_buster_InRelease
-rw-r--r-- 1 root root 13005088 Aug 24 00:49 raspbian.raspberrypi.org_raspbian_dists_buster_main_binary-armhf_Packages.xz
-rw-r--r-- 1 root root   103524 Feb  6  2021 raspbian.raspberrypi.org_raspbian_dists_buster_non-free_binary-armhf_Packages.xz
-rw-r--r-- 1 root root     1360 Feb  9  2019 raspbian.raspberrypi.org_raspbian_dists_buster_rpi_binary-armhf_Packages.xz
root@DietPi:~#
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot update to 7.5.2 from 7.4.2

Post by Joulinar »

Thx for sharing. Did you executed the fix I described above as well?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Totila
Posts: 59
Joined: Sun Aug 04, 2019 8:29 am

Re: Cannot update to 7.5.2 from 7.4.2

Post by Totila »

I did and the update worked afterwards.

Thanks for your assistance.

-T
Post Reply