A
A
Alexander Koshelev2018-01-06 13:56:34
ubuntu
Alexander Koshelev, 2018-01-06 13:56:34

How to fix missing dependencies error in ubuntu?

Hello Guys, Happy New Year Everyone!!!
I want to set up Composer, I started doing everything according to the manual!

Make sure all dependencies are installed: sudo apt-get install php5 git php5-curl

and then immediately errors are thrown:
[email protected]:~# sudo apt-get install php5 git php5-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5 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 'php5' has no installation candidate
E: Unable to locate package php5-

curl I managed to fix them ((((who can help???

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2018-01-06
@Maksclub

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php5 git php5-curl

but in general you put something old, what kind of manual? Did mammoths live when the manual was written?
Use version 7, php-fpm and Nginx, here is an example instruction:
https://www.digitalocean.com/community/tutorials/l...
set the composer here (translated also by DO)
https://www.8host.com /blog/installation-i-use...

A
A person from Kazakhstan, 2018-01-06
@LenovoId

I installed sudo apt-get install lamp-server^ and php 7 became automatic, but I did it about a year ago

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question