Skip to content
Advertisement

Unable to install PHP packages with apt-get, gives “E: Unable to locate package”

I’m actually setting up my vagrant vm (trusty-64, Ubuntu distribution v14.04) and encountered an issue during the installation of all ppa:ondrej/php packages.

I tried the default way to install php…

JavaScript

But it still has this issue:

JavaScript

It seems he’s ignoring the added repository (it’s not listed in apt-get update) but the command seems fine:

JavaScript

Actually, i have no clue whats wrong. Maybe someone has an idea and can explain it? Thanks a lot.

UPDATE:

JavaScript

used ubuntu/trusty64 vagrant box

It’s the most common vagrant box with few well predefined settings.

source.list

JavaScript

It’s in the source list, but it is still ignored. E.g. apt-cache search php7 gives always no result instead of an list.

I also destroyed the box an setup a new one.. but still the same issue.

Advertisement

Answer

I looked at the repository and it seems like 14.04 is no longer supported. Even though trusty is listed in the dist packages, when I looked into the pools there is nothing for ubuntu 14.04.

Take a look here:

http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.3/

That probably explains why the repository is not being included when you run

JavaScript

I guess that server update can’t wait any longer 😉

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement