Update from buster to bullseye - software install fails with Package 'php7.4-apcu' has no installation candidate

Hi,

Upgrading to bullseye worked but afterwards pinhole or nextcloud did no longer work (503 error) so something related to either lighttpd or mariadb or PHP…

I then tried the following as per upgrade blog post:

root@DietPi:~# dietpi-software reinstall 31 38 40 47 48 56 83 84 85 88 89 93 114 118 130 134 143
[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Automated reinstall

[ INFO ] DietPi-Software | 31: Kodi is not currently installed
[ INFO ] DietPi-Software | Use "dietpi-software install 31" to install Kodi.
[  OK  ] DietPi-Software | No changes applied for: Kodi
[ INFO ] DietPi-Software | 38: FreshRSS is not currently installed
[ INFO ] DietPi-Software | Use "dietpi-software install 38" to install FreshRSS.
RPi 3 Model B+ (armv7l) | IP: 192.168.200.2                                        ┌───────────────────────────────┤ DietPi-Software ├───────────────────────────────┐│                                                                                 ││ Would you like to create (or update) a "DietPi-Backup" of the system, before    ││ proceeding?                                                                     ││                                                                                 ││ "DietPi-Backup" creates a system restore point, which can be recovered if       ││ unexpected issues occur.                                                        ││                                                                                 ││ For more information on "DietPi-Backup", please use the link below:             ││  - https://dietpi.com/docs/dietpi_tools/#dietpi-backup-backuprestore            ││                                                                                 ││                      <Ok>                          <Cancel>                     ││                                                                                 │└─────────────────────────────────────────────────────────────────────────────────┘[  OK  ] DietPi-Software | DietPi-Userdata validation: /mnt/media1/dietpi_userdata

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Checking for conflicts and missing inputs


 DietPi-Software
─────────────────────────────────────────────────────
 Step: Checking for prerequisite software

[ INFO ] DietPi-Software | Git will be reinstalled
[ INFO ] DietPi-Software | Docker will be reinstalled
[  OK  ] DietPi-Software | Checking IPv4 network connectivity
[  OK  ] DietPi-Software | Checking IPv6 network connectivity
[  OK  ] DietPi-Software | Checking DNS resolver
[  OK  ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads /var/www /opt /usr/local/bin
[  OK  ] DietPi-Software | chown dietpi:dietpi /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[  OK  ] DietPi-Software | chmod 0775 /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[ SUB1 ] DietPi-Services > unmask
[  OK  ] DietPi-Services | unmask : proftpd
[  OK  ] DietPi-Services | unmask : redis-server
[  OK  ] DietPi-Services | unmask : mariadb
[  OK  ] DietPi-Services | unmask : php8.1-fpm
[  OK  ] DietPi-Services | unmask : lighttpd
[  OK  ] DietPi-Services | unmask : vaultwarden
[  OK  ] DietPi-Services | unmask : docker
[  OK  ] DietPi-Services | unmask : cron
[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : docker
[  OK  ] DietPi-Services | stop : vaultwarden
[  OK  ] DietPi-Services | stop : lighttpd
[  OK  ] DietPi-Services | stop : php8.1-fpm
[  OK  ] DietPi-Services | stop : mariadb
[  OK  ] DietPi-Services | stop : redis-server
[  OK  ] DietPi-Services | stop : proftpd
[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 https://download.docker.com/linux/raspbian bullseye InRelease
Hit:3 https://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists...
[  OK  ] DietPi-Software | APT update

 DietPi-Software
─────────────────────────────────────────────────────
RPi 3 Model B+ (armv7l) | IP: 192.168.200.2
┌───────────────────────────────┤ DietPi-Software ├───────────────────────────────┐│ 
APT install for: php7.4-fpm php7.4-apcu php7.4-curl php7.4-gd php7.4-mbstring   ││ 
php7.4-xml php7.4-zip php7.4-mysql php7.4-sqlite3 php7.4-redis                  ││  
- Command: apt-get -y --allow-change-held-packages install php7.4-fpm          ││ 
php7.4-apcu php7.4-curl php7.4-gd php7.4-mbstring php7.4-xml php7.4-zip         ││ 
php7.4-mysql php7.4-sqlite3 php7.4-redis                                        ││  
- Exit code: 100                                                               ││  - DietPi version: v8.10.2 (MichaIng/master) | HW_MODEL: 3 | HW_ARCH: 2 |       ││ DISTRO: 6                                                                       ││  
- Image creator: DietPi Core Team                                              ││ 
 - Pre-image: Raspbian Lite                                                     ││  
- Error log:                                                                   ││ Reading package lists...                                                        ││ 
Building dependency tree...                                                     ││ 
Reading state information...                                                    ││ 
Package php7.4-apcu is a virtual package provided by:                           ││   
php-apcu 5.1.19+4.0.11-3 [Not candidate version]                              ││                                                                                 ││ 
Package php7.4-redis is a virtual package provided by:                          ││   
php-redis 5.3.2+4.3.0-2+deb11u1 [Not candidate version]                       ││                                                                                 ││ 
E: Package 'php7.4-apcu' has no installation candidate                          ││ 
E: Package 'php7.4-redis' has no installation candidate                         ││                                                                                 ││       Retry          : Re-run the last command that failed                      ││       
DietPi-Config  : Edit network, APT/NTP mirror settings etc                ││       
Open subshell  : Open a subshell to investigate or solve the issue        ││       
Send report    : Uploads bugreport containing system info to DietPi       ││                      ●─ Devs only ──────────────────────────────────────●       ││       Change command : Adjust and rerun the command                             ││                                                                                 ││                                                                                 ││                      <Ok>                          <Exit>                       ││                                                                                 │└─────────────────────────────────────────────────────────────────────────────────┘

Somebody else had this problem already: https://github.com/MichaIng/DietPi/issues/4983

Exactly.

All resolved.

Purging php made the install possible again.

Resolved.

Nice,
on github they did

Changing the apache reinstall command to use php-acpu instead of php7.4-acpu allows the reinstall to proceed, but both mariadb and apache don’t start

but this came with more problems…