Error updating FTL from 4.3.1

The issue I am facing:
I tried updating pi-hole using pihole -up. Most of it updated fine but FTL, at first due to a repository on apt-get that returned error.

After fixing it I get the error:
Unable to locate package php7.3-xml

Now the Web interface is updated, PiHole too, but the FTL is not. And the web interface is very slow and not showing all of the usual data.

Details about my system:
Raspian Buster on a RBPi2

[✓] Update local cache of available packages
[i] Existing PHP installation detected : PHP version 7.3.14-1~deb10u1
[i] Performing unattended setup, no whiptail dialogs will be displayed
[✓] Disk space check

[✓] Checking apt-get for upgraded packages... up to date!

[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.3-common
[✓] Checking for php7.3-cgi
[✓] Checking for php7.3-sqlite3
[i] Checking for php7.3-xml (will be installed)
[i] Checking for php7.3-intl (will be installed)
[i] Processing apt-get install(s) for: php7.3-xml php7.3-intl, please wait...
----------------------------------------------------------------------------------------------------------------E: Unable to locate package php7.3-xml
E: Couldn't find any package by glob 'php7.3-xml'
E: Couldn't find any package by regex 'php7.3-xml'
E: Unable to locate package php7.3-intl
E: Couldn't find any package by glob 'php7.3-intl'
E: Couldn't find any package by regex 'php7.3-intl'

Unable to complete update, please contact Pi-hole Support

What I have changed since installing Pi-hole:

Maybe just an issue with the DNS server that your RPi 2 is using for itself.

Try

sudo nano /etc/resolv.conf

Check the nameserver line: If it is pointing to Pi-hole's IP or 127.0.0.1, change it to nameserver 9.9.9.9 or your preferred third party DNS service, save and exit, then retry updating Pi-hole.

Hi,

Just tried that... replaced with the DNS you suggested and then with google DNS (8.8.8.8). Neither worked (same error) :frowning:

image

Is it supposed to have this warning not to edit the file by hand?

Yes.
Any changes to that file will be reset/restored when rebooting or when network state changes.
Try install one from the list manually with below and post results ?

sudo apt install php7.3-xml

Also output for below two pls ?

apt policy php7.3-xml

sudo grep -v '^\s*#\|^\s*$' -R /etc/apt/sources.list*

Hi,

Here is the output for all of the commands you suggested....

pi@controller:~ $ sudo apt install php7.3-xml
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package php7.3-xml
E: Couldn't find any package by glob 'php7.3-xml'
E: Couldn't find any package by regex 'php7.3-xml'
pi@controller:~ $ ^C
pi@controller:~ $ apt policy php7.3-xml
N: Unable to locate package php7.3-xml
N: Couldn't find any package by glob 'php7.3-xml'
N: Couldn't find any package by regex 'php7.3-xml'
pi@controller:~ $ sudo grep -v '^\s*#\|^\s*$' -R /etc/apt/sources.list*
/etc/apt/sources.list.d/raspi.list:deb http://archive.raspberrypi.org/debian/ buster main

Thanks!

From above, your missing the main repository:

pi@ph5:~ $ 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

Create below file:

sudo nano /etc/apt/sources.list

Add below/save/exit:

deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

Run update:

sudo apt update

And try Pi-hole upgrade again:

pihole -up

It worked! Thanks a lot for all your help! :grinning: :smiley:

1 Like

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