Json has no installation candidate

Hi all,

Been using pihole for a couple of months now, upgrading was never an issue until now :frowning:

sudo pihole -up
  [i] Checking for updates...
  [i] Pi-hole Core:     up to date
  [i] Web Interface:    up to date
  [i] FTL:              update available

  [i] FTL out of date, it will be updated by the installer.

  [✓] Root user check

<snip>

[✓] Checking for lighttpd
  [✓] Checking for php8.0-common
  [✓] Checking for php8.0-cgi
  [✓] Checking for php8.0-sqlite3
  [✓] Checking for php8.0-xml
  [i] Checking for php8.0-json (will be installed)
  [✓] Checking for php8.0-intl
  [i] Processing apt-get install(s) for: php8.0-json, please wait...
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
E: Package 'php8.0-json' has no installation candidate

  Unable to complete update, please contact Pi-hole Support

Running Ubuntu 20.04.1 LTS with php 8.0.0.

Anyone know what I'm doing wrong here?

Cheers,

Marcel

I just tried to reinstall pihole, and checked 'keep settings', same issue stays.

Anyone has an idea perhaps?

There's the issue. The max version we support at present is PHP 7.

All this will be going the way of the dodo once we move to embedding the web interface (and PH7 - not to be confused with PHP 7) into FTL

Is PHP 8.0 default on Ub 20.04.1?

You my friend are amazing.

I manually updated php to 8, so that's indeed the problem. After I downgraded to 7.4 the update process works like a charm again.

mb@pihole:~$ sudo update-alternatives --set php /usr/bin/php7.4
update-alternatives: using /usr/bin/php7.4 to provide /usr/bin/php (php) in manual mode

mb@pihole:~$ sudo update-alternatives --set phar /usr/bin/phar7.4
update-alternatives: using /usr/bin/phar7.4 to provide /usr/bin/phar (phar) in manual mode

mb@pihole:~$ sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.4
update-alternatives: using /usr/bin/phar.phar7.4 to provide /usr/bin/phar.phar (phar.phar) in manual mode

mb@pihole:~$ sudo pihole -up
[i] Checking for updates...
[i] Pi-hole Core: up to date
[i] Web Interface: up to date
[i] FTL: update available

[i] FTL out of date, it will be updated by the installer.

[✓] Root user check

[✓] DNS service is listening
[✓] UDP (IPv4)
[✓] TCP (IPv4)
[✓] UDP (IPv6)
[✓] TCP (IPv6)

[✓] Pi-hole blocking is enabled

[i] The install log is located at: /etc/pihole/install.log
Update Complete!

Current Pi-hole version is v5.2.2.
Current AdminLTE version is v5.2.2.
Current FTL version is v5.3.4.
mb@pihole:~$

Thanks a lot!

Cheers,

Marcel

3 Likes

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