Update fails for php-pear on Ubuntu 20

SYSTEM INFORMATION
OS type and version Ubuntu Linux 20.04.4
Virtualmin version 6.17-3

Update Packages

Building complete list of packages …

Now updating php-pear …

Installing package(s) with command apt-get -y install php-pear …

Reading package lists… Building dependency tree… Reading state information… 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: php-pear : Depends: php-archive-tar (>= 1.4.9) but it is not installable E: Unable to correct problems, you have held broken packages.

… install failed!

No packages were installed. Check the messages above for the cause of the error.

Checking php-archive-tar from the shell:

ubuntu@server:~$ sudo apt install php-archive-tar
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php-archive-tar is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php-archive-tar' has no installation candidate

any ideas?

Try:

sudo apt-get install -f

From the man page:

-f, --fix-broken Fix; attempt to correct a system with broken dependencies in place. This option, when used with install/remove, can omit any packages to permit APT to deduce a likely solution.

1 Like

No luck:

ubuntu@server:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
ubuntu@server:~$ sudo apt-get install php-archive-tar -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php-archive-tar is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php-archive-tar' has no installation candidate
ubuntu@server:~$

After completing:

ubuntu@server:~$ sudo apt upgrade

It no longer shows up.

The package, that Virtualmin wanted initially to upgrade is:

php-pear PEAR Base System 1.10.13+submodules+notgz+2022032202-1+ubuntu20.04.1+deb.sury.org+1

But now it disappeared :slight_smile:

I hope I have not broken anything.

You should be okay. :crossed_fingers:

1 Like

This worked for me for the exact same issue!

1 Like

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