0

I'm using Ubuntu 20.04 LTS, and I tried installing Phoronix by downloading the .deb file from their website and using dpkg. I get some unmet dependencies on php5 pacakges;

 phoronix-test-suite depends on php-cli | php5-cli; however:
  Package php-cli is not installed.
  Package php5-cli is not installed.
 phoronix-test-suite depends on php5-cli | php-xml; however:
  Package php5-cli is not installed.
  Package php-xml is not installed.

I tried installing these, and I get that

  Package php5-cli 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
  However the following packages replace it:
  php7.0-cli:i386 php7.0-cli
  E: Package 'php5-cli' has no installation candidate

apparently this is because php5 is obsolete, according to this answer. I read the answer but I didn't understand what they were saying that I need to do.

Can someone explain to me how to overcome this dependency issue in installing Phoronix?

Jojo
  • 159
  • 10

2 Answers2

0

Add the PHP ppa: sudo add-apt-repository ppa:ondrej/php

Then update and upgrade: sudo apt update sudo apt upgrade If you get a fix-broken-install issue, try running: sudo apt install --fix-broken (source)

Now dpkg the .deb and it should be resolved!

-1

You should try sudo apt update and sudo apt-get install <dependency_name>

Like this:

sudo apt update    
sudo apt-get install php-cli
sudo apt-get install php5-cli
  • I already tried this and it doesn't work. I've edited my question to make that more clear – Jojo Aug 11 '21 at 17:29