'Unable to complete update, please contact Pi-hole Support'

Expected Behaviour:

Update Pi-Hole

Actual Behaviour:

Script says: Unable to complete update, please contact Pi-hole Support

Debug Token:

  [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

        .;;,.
        .ccccc:,.
         :cccclll:.      ..,,
          :ccccclll.   ;ooodc
           'ccll:;ll .oooodc
             .;cll.;;looo:.
                 .. ','.
                .',,,,,,'.
              .',,,,,,,,,,.
            .',,,,,,,,,,,,....
          ....''',,,,,,,'.......
        .........  ....  .........
        ..........      ..........
        ..........      ..........
        .........  ....  .........
          ........,,,,,,,'......
            ....',,,,,,,,,,,,.
               .',,,,,,,,,'.
                .',,,,,,'.
                  ..'''.

  [✓] Update local cache of available packages
  [i] Existing PHP installation detected : PHP version 7.2.24-0ubuntu0.18.04.7
  [i] Performing unattended setup, no whiptail dialogs will be displayed

  [✓] Checking apt-get for upgraded packages... 16 updates available
  [i] It is recommended to update your OS after installing the Pi-hole!

  [i] Installer Dependency checks...
  [✓] Checking for dhcpcd5
  [✓] Checking for git
  [✓] Checking for iproute2
  [✓] Checking for whiptail
  [✓] Checking for dnsutils

  [✓] Supported OS detected
  [i] SELinux not detected
  [i] Performing reconfiguration, skipping download of local repos
  [✓] Resetting repository within /etc/.pihole...
  [✓] Resetting repository within /var/www/html/admin...
  [i] Main Dependency checks...
  [✓] Checking for cron
  [✓] Checking for curl
  [✓] Checking for iputils-ping
  [✓] Checking for lsof
  [✓] Checking for netcat
  [✓] Checking for psmisc
  [✓] Checking for sudo
  [✓] Checking for unzip
  [✓] Checking for wget
  [✓] Checking for idn2
  [✓] Checking for sqlite3
  [✓] Checking for libcap2-bin
  [✓] Checking for dns-root-data
  [✓] Checking for libcap2
  [✓] Checking for lighttpd
  [✓] Checking for php7.2-common
  [✓] Checking for php7.2-cgi
  [i] Checking for php7.2-sqlite3 (will be installed)
  [✓] Checking for php7.2-xml
  [✓] Checking for php7.2-json
  [i] Checking for php7.2-intl (will be installed)
  [i] Processing apt-get install(s) for: php7.2-sqlite3 php7.2-intl, please wait...
------------------------------------------------------------------------------------------------------------------------------------------------------------------
E: Package 'php7.2-sqlite3' has no installation candidate
E: Package 'php7.2-intl' has no installation candidate

  Unable to complete update, please contact Pi-hole Support

Raspi 2 or 3 (cant recall), OS Ubuntu Server

This is an OS problem and not a Pi-hole one.
Your configured APT repos for your distro dont contain the packages that Pi-hole depends on:

pi@ph5b:~ $ apt search 'php7.*-sqlite3'
Sorting... Done
Full Text Search... Done
php7.1-sqlite3/stable 7.1.20-1+b2 armhf
  SQLite3 module for PHP

php7.2-sqlite3/stable 7.2.9-1+b2 armhf
  SQLite3 module for PHP

php7.3-sqlite3/stable,now 7.3.27-1~deb10u1 armhf [installed,automatic]
  SQLite3 module for PHP
pi@ph5b:~ $ apt policy php7.2-sqlite3 php7.3-sqlite3 php7.2-intl php7.3-intl
php7.2-sqlite3:
  Installed: (none)
  Candidate: 7.2.9-1+b2
  Version table:
     7.2.9-1+b2 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
php7.3-sqlite3:
  Installed: 7.3.27-1~deb10u1
  Candidate: 7.3.27-1~deb10u1
  Version table:
 *** 7.3.27-1~deb10u1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
php7.2-intl:
  Installed: (none)
  Candidate: 7.2.9-1+b2
  Version table:
     7.2.9-1+b2 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
php7.3-intl:
  Installed: 7.3.27-1~deb10u1
  Candidate: 7.3.27-1~deb10u1
  Version table:
 *** 7.3.27-1~deb10u1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status

You can figure out configured repos for APT with below:

pi@ph5b:~ $ sudo grep -v '^\s*#\|^\s*$' -R /etc/apt/sources.list*
/etc/apt/sources.list:deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
/etc/apt/sources.list.d/raspi.list:deb http://archive.raspberrypi.org/debian/ buster main
2 Likes

Thanks!

Running

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update

Did the job.

1 Like

What distribution are you using? This shouldn't be necessary.

Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-1034-raspi aarch64)

it was missing php 7.3, maybe because they swapped to 7.4? strange

You had an existing PHP 7.2 install from Ubuntu 18.04. Did you do an in-place upgrade from 18 to 20?

Yes I did from 18 something, cant recall exactly.

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