Some reinstalls of software after upgrade from Buster to Bullseye fail Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
fhals
Posts: 35
Joined: Mon Sep 07, 2020 10:00 am

Some reinstalls of software after upgrade from Buster to Bullseye fail

Post by fhals »

Hi,

I successfully followed the excellent upgrade hints up to the suggested software reinstall after upgrading from Buster to Bullseye.

Code: Select all

dietpi-software reinstall 38 40 47 48 56 83 84 85 88 89 93 114 143
At least I got stuck on Lighttpd's mod openssl and php/Redis.

Code: Select all

#### Details:
- Date           | Fri Sep 24 12:11:45 CEST 2021
- Bug report     | 0f17ae44-c4db-409c-af26-9d1f1f4fe98f
- DietPi version | v7.6.2 (MichaIng/master)
- Image creator  | DietPi Core Team
- Pre-image      | Meveric
- Hardware       | Odroid C2 (aarch64) (ID=12)
- Kernel version | `Linux DietPi 3.16.85+ #1 SMP PREEMPT Tue Jun 30 19:02:35 CEST 2020 aarch64 GNU/Linux`
- Distro         | bullseye (ID=6)
- Command        | `lighty-enable-mod openssl`
- Exit code      | 2
- Software title | DietPi-Software
#### Additional logs:
```
Ignoring unknown module: openssl
Run "service lighttpd force-reload" to enable changes
and

Code: Select all

#### Details:
- Date           | Fri Sep 24 12:32:17 CEST 2021
- Bug report     | 0f17ae44-c4db-409c-af26-9d1f1f4fe98f
- DietPi version | v7.6.2 (MichaIng/master)
- Image creator  | DietPi Core Team
- Pre-image      | Meveric
- Hardware       | Odroid C2 (aarch64) (ID=12)
- Kernel version | `Linux DietPi 3.16.85+ #1 SMP PREEMPT Tue Jun 30 19:02:35 CEST 2020 aarch64 GNU/Linux`
- Distro         | bullseye (ID=6)
- Command        | `apt-get -qq --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-redis`
- Exit code      | 100
- Software title | DietPi-Software
#### Additional logs:
```
E: Package 'php7.4-redis' has no installation candidate
Any idea how to get them back to work without breaking the dietpi-standards will be appreciated.

Thanks & regards
Frans
Last edited by fhals on Fri Sep 24, 2021 3:30 pm, edited 1 time in total.
User avatar
Joulinar
Posts: 5997
Joined: Sat Nov 16, 2019 12:49 am

Re: Some einstalls of software after upgrade from Buster to Bullseye fail

Post by Joulinar »

for Lighttpd, do you use SSL/HTTPS ?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
fhals
Posts: 35
Joined: Mon Sep 07, 2020 10:00 am

Re: Some reinstalls of software after upgrade from Buster to Bullseye fail

Post by fhals »

yes, I'm using the dietpi-letsencrypt.
User avatar
Joulinar
Posts: 5997
Joined: Sat Nov 16, 2019 12:49 am

Re: Some reinstalls of software after upgrade from Buster to Bullseye fail

Post by Joulinar »

ok could you check if following module is installed.

Code: Select all

apt install lighttpd-mod-openssl
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3357
Joined: Sat Nov 18, 2017 6:21 pm

Re: Some reinstalls of software after upgrade from Buster to Bullseye fail

Post by MichaIng »

It's a bug our end. It should be:

Code: Select all

lighty-enable-mod ssl
You can select "Change command" from the error prompt and adjust it accordingly. I'll send a live-patch.

But php7.4-redis is "provided" by php-redis, so that it should be selected automatically. Works fine here :?.
fhals
Posts: 35
Joined: Mon Sep 07, 2020 10:00 am

Re: Some reinstalls of software after upgrade from Buster to Bullseye fail

Post by fhals »

Thank you- jumped over the (open)ssl-hurdle with changing the command.
Should I try the same with

Code: Select all

apt-get -qq --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-redis
and leave out the 'php7.4-redis' for further investigation?
User avatar
Joulinar
Posts: 5997
Joined: Sat Nov 16, 2019 12:49 am

Re: Some reinstalls of software after upgrade from Buster to Bullseye fail

Post by Joulinar »

maybe it's missing on apt source. Let`s check where the other packages are download from. Can you try following

Code: Select all

dpkg -l php7.4-curl
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
fhals
Posts: 35
Joined: Mon Sep 07, 2020 10:00 am

Re: Some reinstalls of software after upgrade from Buster to Bullseye fail

Post by fhals »

Quick reply:

Code: Select all

dpkg-query: no packages found matching php7.4-curl
Edit:
This is the output of dpkg -l regarding PHP:

Code: Select all

ii  php-common                      2:84+0~20210621.36+debian9~1.gbp28513e          all          Common files for PHP packages
ii  php-igbinary                    3.2.6+2.0.8-1+0~20210913.27+debian9~1.gbp64b0ea arm64        igbinary PHP serializer
ii  php-redis                       5.3.4+4.3.0-1+0~20210329.35+debian9~1.gbpdc7ead arm64        PHP extension for interfacing with Redis
ii  php8.0-common                   8.0.10-1+0~20210826.23+debian9~1.gbp9ab3fd      arm64        documentation, examples and common module for PHP
ii  php8.0-igbinary                 3.2.6+2.0.8-1+0~20210913.27+debian9~1.gbp64b0ea arm64        igbinary PHP serializer
ii  php8.0-redis                    5.3.4+4.3.0-1+0~20210329.35+debian9~1.gbpdc7ead arm64        PHP extension for interfacing with Redis
User avatar
Joulinar
Posts: 5997
Joined: Sat Nov 16, 2019 12:49 am

Re: Some reinstalls of software after upgrade from Buster to Bullseye fail

Post by Joulinar »

hmm maybe PHP to be removed completely. But let's check with our developer first.

@MichaIng
can you have a look. It seems there are still packages from Ondrej's PHP repository installed. Should they be purged completely or just removed?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3357
Joined: Sat Nov 18, 2017 6:21 pm

Re: Some reinstalls of software after upgrade from Buster to Bullseye fail

Post by MichaIng »

There are some PHP8.0 packages as well which should be purged:

Code: Select all

apt purge php8.0-common php8.0-igbinary php8.0-redis
then reinstall the others, accepting the downgrade (of php-common, I guess):

Code: Select all

apt install --reinstall --allow-downgrade php-common php7.4-igbinary php7.4-redis
Post Reply