Been using pihole for a couple of months now, upgrading was never an issue until now
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
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:~$