Pihole 5.0 update fails on ubuntu 18.04

Expected Behaviour:

Expected to update Pihole from 4.3 to 5.0 on a Digitalocean server running Ubuntu 18.04

Actual Behaviour:

Get an error during update on lightppd:

  [i] Processing apt-get install(s) for: lighttpd php-intl, please wait...
-------------------------------------------------------------------------------------------
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libssl1.1 : Breaks: lighttpd (< 1.4.49-2) but 1.4.45-1ubuntu3.18.04 is to be installed
 php-intl : Depends: php7.4-intl but it is not going to be installed
 php5.6-cli : Depends: php5.6-readline but it is not going to be installed
 php7.0-cli : Depends: php7.0-readline but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

  Unable to complete update, please contact Pi-hole Support

The webversion is up to date, but FTL isn't. Already tried changing nameserver in the conf file, but didn't work. What can be done to get the Pihole update?

Debug Token:

https://tricorder.pi-hole.net/98cwk1vbz0

Run

sudo apt update
sudo apt upgrade

and see if there are any package problems identified.

Forgot to inform that I already took that step. Just double checked, but everything is updated and looks fine there...

If it were just one package that has dependency problem, there are some ways around it:

But you've got a whole list of packages.
Hard to fix all those dependencies without getting lost in dependency forest :wink:

Hm, so I don't really understand how these dependencies got there. However, it seems like the best course of action would be to... start all over?

That is at least part of the problem, a change in the installer that can cause issues like yours. A revert has been merged for next Pi-hole release.

Can you please try:

sed -i 's/php-intl/${phpVer}-intl/' /etc/.pihole/automated\ install/basic-install.sh
pihole -up

From the other output I think it will still fail, but having the first thing sorted out should help further steps.

At least it fixed one part. There are still the other errors...:

The following packages have unmet dependencies:
 libssl1.1 : Breaks: lighttpd (< 1.4.49-2) but 1.4.45-1ubuntu3.18.04 is to be installed
 php5.6-cli : Depends: php5.6-readline but it is not going to be installed
 php7.0-cli : Depends: php7.0-readline but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Which PHP packages have you installed actually and which one is used by Lighttpd?

dpkg --get-selections '*php*'
lighttpd -p | grep 'php'

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