Failed to update DietPi from v8.23.3 to v8.24.1

Details:

  • Date | Thu Nov 23 12:24:57 GMT 2023
  • Bug report | 4976c6df-ed57-426d-a1d3-060120c3f205
  • DietPi version | v8.23.3 (MichaIng/master)
  • Image creator |
  • Pre-image |
  • Hardware | RPi 4 Model B (aarch64) (ID=4)
  • Kernel version | Linux PetitPois 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
  • Distro | bookworm (ID=7,RASPBIAN=0)
  • Command | apt-get -y --with-new-pkgs upgrade
  • Exit code | 100
  • Software title | DietPi-Update

Steps to reproduce:

  1. run dietpi-update

Expected behaviour:

  • Should have updated

Actual behaviour:

  • It failed. I retried but no luck.

Extra details:

Additional logs:

this is the full terminal output

 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.githubusercontent.com/MichaIng/DietPi/master/.update/version
[  OK  ] DietPi-Update | Got valid latest version: 8.24.1
[  OK  ] DietPi-Update | Update available:
[ INFO ] DietPi-Update | Current version : v8.23.3
[ INFO ] DietPi-Update | Latest version  : v8.24.1

 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=19902 MiB | required=100 MiB
[ SUB1 ] DietPi-Services > stop 
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : docker

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

[  OK  ] DietPi-Update | Downloading pre-patches
[  OK  ] DietPi-Update | Applying execute permission
[ INFO ] DietPi-Pre-patches | Setting rpi-eeprom package on hold to prevent conflicting upgrade attempt
[  OK  ] DietPi-Pre-patches | apt-mark hold rpi-eeprom
[  OK  ] DietPi-Update | Successfully applied pre-patches

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

[ INFO ] DietPi-Update | APT update, please wait...
Hit:1 https://deb.debian.org/debian bookworm InRelease
Get:2 https://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
Get:3 https://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 https://download.docker.com/linux/debian bookworm InRelease [43.3 kB]
Get:5 https://deb.debian.org/debian bookworm-backports InRelease [56.5 kB]
Get:6 https://archive.raspberrypi.org/debian bookworm InRelease [23.6 kB]
Get:7 https://download.docker.com/linux/debian bookworm/stable arm64 Packages [13.1 kB]
Get:8 https://deb.debian.org/debian-security bookworm-security/main arm64 Packages [101 kB]
Get:9 https://deb.debian.org/debian bookworm-backports/main arm64 Packages.diff/Index [63.3 kB]
Get:10 https://deb.debian.org/debian bookworm-backports/main arm64 Packages T-2023-11-21-1403.33-F-2023-11-20-1403.46.pdiff [3577 B]
Get:10 https://deb.debian.org/debian bookworm-backports/main arm64 Packages T-2023-11-21-1403.33-F-2023-11-20-1403.46.pdiff [3577 B]
Get:11 https://archive.raspberrypi.org/debian bookworm/main arm64 Packages [338 kB]
Fetched 742 kB in 4s (170 kB/s)
Reading package lists...
[  OK  ] DietPi-Update | APT update
[ INFO ] DietPi-Update | APT upgrade, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages have been kept back:
  rpi-eeprom
The following packages will be upgraded:
  containerd.io firmware-atheros firmware-brcm80211 firmware-iwlwifi
  firmware-misc-nonfree firmware-realtek raspi-firmware
7 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 71.6 MB of archives.
After this operation, 130 kB of additional disk space will be used.
Get:1 https://download.docker.com/linux/debian bookworm/stable arm64 containerd.io arm64 1.6.25-1 [20.5 MB]
Get:2 https://archive.raspberrypi.org/debian bookworm/main arm64 raspi-firmware all 1:1.20231024+ds-1+rpt2 [4551 kB]
Get:3 https://archive.raspberrypi.org/debian bookworm/main arm64 firmware-atheros all 1:20230210-5+rpt2 [16.8 MB]
Get:4 https://archive.raspberrypi.org/debian bookworm/main arm64 firmware-brcm80211 all 1:20230210-5+rpt2 [5849 kB]
Get:5 https://archive.raspberrypi.org/debian bookworm/main arm64 firmware-iwlwifi all 1:20230210-5+rpt2 [9337 kB]
Get:6 https://archive.raspberrypi.org/debian bookworm/main arm64 firmware-misc-nonfree all 1:20230210-5+rpt2 [13.0 MB]
Get:7 https://archive.raspberrypi.org/debian bookworm/main arm64 firmware-realtek all 1:20230210-5+rpt2 [1492 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 71.6 MB in 12s (5834 kB/s)
(Reading database ... 20267 files and directories currently installed.)
Preparing to unpack .../0-raspi-firmware_1%3a1.20231024+ds-1+rpt2_all.deb ...
Unpacking raspi-firmware (1:1.20231024+ds-1+rpt2) over (1:1.20231024+ds-1+rpt1) ...
Preparing to unpack .../1-containerd.io_1.6.25-1_arm64.deb ...
Unpacking containerd.io (1.6.25-1) over (1.6.24-1) ...
Preparing to unpack .../2-firmware-atheros_1%3a20230210-5+rpt2_all.deb ...
Unpacking firmware-atheros (1:20230210-5+rpt2) over (1:20230210-5+rpt1) ...
Preparing to unpack .../3-firmware-brcm80211_1%3a20230210-5+rpt2_all.deb ...
Unpacking firmware-brcm80211 (1:20230210-5+rpt2) over (1:20230210-5+rpt1) ...
Preparing to unpack .../4-firmware-iwlwifi_1%3a20230210-5+rpt2_all.deb ...
Unpacking firmware-iwlwifi (1:20230210-5+rpt2) over (1:20230210-5+rpt1) ...
Preparing to unpack .../5-firmware-misc-nonfree_1%3a20230210-5+rpt2_all.deb ...
Unpacking firmware-misc-nonfree (1:20230210-5+rpt2) over (1:20230210-5+rpt1) ...
Preparing to unpack .../6-firmware-realtek_1%3a20230210-5+rpt2_all.deb ...
Unpacking firmware-realtek (1:20230210-5+rpt2) over (1:20230210-5+rpt1) ...
Setting up firmware-iwlwifi (1:20230210-5+rpt2) ...
Setting up firmware-atheros (1:20230210-5+rpt2) ...
Setting up firmware-misc-nonfree (1:20230210-5+rpt2) ...
Setting up firmware-brcm80211 (1:20230210-5+rpt2) ...
Setting up firmware-realtek (1:20230210-5+rpt2) ...
Setting up raspi-firmware (1:1.20231024+ds-1+rpt2) ...
Installing new version of config file /etc/kernel/postinst.d/z50-raspi-firmware ...
stat: cannot read file system information for '/boot/firmware': No such file or directory
Error: missing /boot/firmware, did you forget to mount it?
dpkg: error processing package raspi-firmware (--configure):
 installed raspi-firmware package post-installation script subprocess returned error exit status 1
Setting up containerd.io (1.6.25-1) ...
dpkg: dependency problems prevent configuration of rpi-eeprom:
 rpi-eeprom depends on raspi-firmware; however:
  Package raspi-firmware is not configured yet.

dpkg: error processing package rpi-eeprom (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 raspi-firmware
 rpi-eeprom
E: Sub-process /usr/bin/dpkg returned an error code (1)
[FAILED] DietPi-Update | APT upgrade
 - Command: apt-get -y --with-new-pkgs upgrade
[ INFO ] DietPi-Update | APT upgrade, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages have been kept back:
  rpi-eeprom
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
                                                              2 not fully installed or removed.
                                                                                               After this operation, 0 B of additional disk space will be used.
                                                                                                                                                               Setting up raspi-firmware (1:1.20231024+ds-1+rpt2) ...
stat: cannot read file system information for '/boot/firmware': No such file or directory
Error: missing /boot/firmware, did you forget to mount it?
dpkg: error processing package raspi-firmware (--configure):
 installed raspi-firmware package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of rpi-eeprom:
 rpi-eeprom depends on raspi-firmware; however:
  Package raspi-firmware is not configured yet.

dpkg: error processing package rpi-eeprom (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 raspi-firmware
 rpi-eeprom
E: Sub-process /usr/bin/dpkg returned an error code (1)
[FAILED] DietPi-Update | APT upgrade
 - Command: apt-get -y --with-new-pkgs upgrade
[ INFO ] DietPi-BugReport | Generating informative command outputs, please wait...
[ INFO ] DietPi-BugReport | cp /tmp/G_EXEC_ERROR_REPORT G_EXEC_ERROR_REPORT, please wait...
[  OK  ] DietPi-BugReport | cp /tmp/G_EXEC_ERROR_REPORT G_EXEC_ERROR_REPORT
[  OK  ] DietPi-BugReport | Packing upload archive
[  OK  ] DietPi-BugReport | Sending bug report
[  OK  ] DietPi-BugReport | Your bug report has been successfully uploaded.
- Reference code: 4976c6df-ed57-426d-a1d3-060120c3f205

Please file a related bug report at GitHub or our forum:
- https://github.com/MichaIng/DietPi/issues
- https://dietpi.com/forum/c/troubleshooting/10

The uploaded file will be removed automatically after 48 hours or when your issue has been solved. Additionally you can remove it by running:
- dietpi-bugreport -1

Reading package lists…

See
https://dietpi.com/forum/t/error-uptdating-to-8-24/18460
https://dietpi.com/forum/t/dietpi-update-error/18448/4
and
https://dietpi.com/forum/t/rpi-eeprom-update-fails/18407/29

1 Like

this one should solve it Package raspi-firmware is not configured yet · Issue #6747 · MichaIng/DietPi · GitHub

You need to purge rpi-eeprom + raspi-firmware and install latest version of rpi-eeprom again.

thanks both.

I was surprised as I didn’t have to do this for my other Pi

I’m not really familiar with how to do this. Are these the commands?

G_AGP rpi-eeprom raspi-firmware
cd /tmp
curl -fo package.deb 'https://archive.raspberrypi.org/debian/pool/main/r/rpi-eeprom/rpi-eeprom_20.1-1_all.deb'
apt install ./package.deb
rm package.deb
apt-mark hold rpi-eeprom

and

apt-mark unhold rpi-eeprom
apt update
apt upgrade

Also, can I do this remotely (I normally SSH from a local machine which I have connected to remotely)?

Yes

No, following is enough

G_AGP rpi-eeprom raspi-firmware
G_AGUP
G_AGI rpi-eeprom

Only happen on a small set of RPi4 device.

3 Likes

Thanks!


…worked perfectly!