Unable to locate package php7.3 when upgrading to Bullseye

Details:

  • Date | Fri Oct 11 12:33:47 EDT 2024
  • Bug report | bd9fdd6d-bd24-4913-9304-60bc56ba1111
  • DietPi version | v8.20.1 (MichaIng/master)
  • Image creator | DietPi Core Team
  • Pre-image | Raspbian Lite
  • Hardware | RPi 3 Model B+ (armv7l) (ID=3)
  • Kernel version | Linux DietPi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
  • Distro | buster (ID=5,RASPBIAN=1)
  • Command | apt-get -y --allow-change-held-packages install php7.3-fpm php7.3-apcu php7.3-curl php7.3-gd php7.3-mbstring php7.3-xml php7.3-zip php7.3-sqlite3
  • Exit code | 100
  • Software title | DietPi-Software

Steps to reproduce:

Run dietpi-software reinstall 31 38 40 47 48 56 83 84 85 88 89 93 114 118 130 134 143 155

Expected behaviour:

Should run without issue

Actual behaviour:

Getting the below errors when following the guide to upgrade.

Extra details:

I’m following this guide/blog post to upgrade from Buster to Bullseye: DietPi - How to upgrade to "Bullseye" - DietPi blog - everything has gone well until I got to the Run dietpi-software reinstall 31 38 40 47 48 56 83 84 85 88 89 93 114 118 130 134 143 155 part.

The upgrade to Bullseye seems to have happened but when I get to this part of the guide, this part fails and it can’t continue.

Additional logs:

  • Reference code: bd9fdd6d-bd24-4913-9304-60bc56ba1111
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php7.3-fpm
E: Couldn't find any package by glob 'php7.3-fpm'
E: Couldn't find any package by regex 'php7.3-fpm'
E: Unable to locate package php7.3-apcu
E: Couldn't find any package by glob 'php7.3-apcu'
E: Couldn't find any package by regex 'php7.3-apcu'
E: Unable to locate package php7.3-curl
E: Couldn't find any package by glob 'php7.3-curl'
E: Couldn't find any package by regex 'php7.3-curl'
E: Unable to locate package php7.3-gd
E: Couldn't find any package by glob 'php7.3-gd'
E: Couldn't find any package by regex 'php7.3-gd'
E: Unable to locate package php7.3-mbstring
E: Couldn't find any package by glob 'php7.3-mbstring'
E: Couldn't find any package by regex 'php7.3-mbstring'
E: Unable to locate package php7.3-xml
E: Couldn't find any package by glob 'php7.3-xml'
E: Couldn't find any package by regex 'php7.3-xml'
E: Unable to locate package php7.3-zip
E: Couldn't find any package by glob 'php7.3-zip'
E: Couldn't find any package by regex 'php7.3-zip'
E: Unable to locate package php7.3-sqlite3
E: Couldn't find any package by glob 'php7.3-sqlite3'
E: Couldn't find any package by regex 'php7.3-sqlite3'

Either the base-files APT package was not upgraded, or you missed those two steps:

/boot/dietpi/func/dietpi-obtain_hw_model
source /boot/dietpi/.hw_model

Can you please check this:

dpkg -l base-files
cat /etc/debian_version
1 Like
root@DietPi:/etc/lighttpd# dpkg -l base-files
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version            Architecture Description
+++-==============-==================-============-======================================
ii  base-files     11.1+rpi1+deb11u11 armhf        Debian base system miscellaneous files
root@DietPi:/etc/lighttpd# cat /etc/debian_version
11.11

Okay that one is up-to-date. Then please run the first two commands and repeat the dietpi-software reinstall ... command.

1 Like

This was it. Thank you very much. Not sure how I missed that.

1 Like

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