I am trying to install php7.2-dev but it depends upon dependencies i have search a lot on those but can't resolve the issue.
sudo apt install php7.2-dev
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:
php7.2-dev : Depends: autoconf (>= 2.63) but it is not installable
Depends: automake (>= 1.11) but it is not installable
Depends: libssl-dev but it is not installable
Depends: pkg-config but it is not installable
Depends: shtool but it is not installable
Depends: libtool (>= 2.4.6-0.1~) but it is not installable
Recommends: pkg-php-tools but it is not installable
E: Unable to correct problems, you have held broken packages.
Related
I have searched but couldn't find a resource that helped, so I have to say it out loud. Please help me. I mistakenly ran sudo apt-get upgrade -u dist-upgrade
After that, all the websites on my server stopped working. I tried to check if Php is still installed by typing php -vbut I got
-bash: php: command not found
I also tried to reinstall php using
sudo apt-get install php
And I saw this
sudo apt-get install php
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:
php : Depends: php7.2 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Then I tried running
Sudo apt-get install php7.2
And I saw this
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:
php7.2 : Depends: libapache2-mod-php7.2 but it is not going to be installed or
php7.2-fpm but it is not going to be installed or
php7.2-cgi but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I also tried installing the modules: and I get this:
root#matrixpluspluto:~# sudo apt-get install php7.2 php7.2-cli php7.2-c
gi php7.2-fpm libapache2-mod-php7.2 php7.2-opcache
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:
libapache2-mod-php7.2 : Depends: libc6 (>= 2.27) but 2.24-11+deb9u1 is to be installed
Depends: libsodium23 (>= 1.0.14) but it is not going to be installed
php7.2-cgi : Depends: libc6 (>= 2.27) but 2.24-11+deb9u1 is to be installed
Depends: libsodium23 (>= 1.0.14) but it is not going to be installed
php7.2-cli : Depends: libc6 (>= 2.27) but 2.24-11+deb9u1 is to be installed
Depends: libsodium23 (>= 1.0.14) but it is not going to be installed
php7.2-fpm : Depends: libc6 (>= 2.27) but 2.24-11+deb9u1 is to be installed
Depends: libsodium23 (>= 1.0.14) but it is not going to be installed
php7.2-opcache : Depends: libc6 (>= 2.27) but 2.24-11+deb9u1 is to be installed
E: Unable to correct problems, you have held broken packages.
I checked and saw that libc6 v2.24 is already installed
Please help me. Before this I was using php7.1 after the upgrade I started seeing 7.2. Anything I do concerning php doesn't work out. Pove been trying to fix this for more than 2 days, please help.
Don't know if you solved it yet but I had the same problem.
Solved it by running :
sudo apt-get purge php* .
Note that this is not a good solution but a desperate one. Also I knew what php related packages I had installed, so I wasen't afraid of what the command would purge.
Then I watched what packages are being purged and reintalled them.
Everything working fine for now.
I am unable to install phpmyadmin on my ubuntu 16.04.3 VPS, I was getting error while installation.
please check below mentioned error details
root#fmk-me1-1:/home/flashmarket# apt-get install phpmyadmin
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:
phpmyadmin : Depends: php but it is not installable
Depends: php-mbstring but it is not installable
Depends: php-xml but it is not installable
Depends: libjs-sphinxdoc (>= 1.0) but it is not installable
Depends: dbconfig-mysql but it is not installable or
dbconfig-no-thanks but it is not installable or
dbconfig-common (< 2.0.0) but it is not installable
Depends: php-php-gettext but it is not installable or
php-gettext (<= 1:7.0) but it is not installable
Recommends: php-curl but it is not installable
Recommends: php-gd but it is not installable
Recommends: php-bz2 but it is not installable
Recommends: php-zip but it is not installable
Recommends: php-tcpdf but it is not installable
E: Unable to correct problems, you have held broken packages.
Execute sudo apt-get autoremove
Then execute sudo apt-get update
Then try to install the package what you want
I have tried to install php7.1-curl but I get only this response:
The following packages have unmet dependencies:
php7.1-curl : Depends: php7.1-common (= 7.1.8-1) but 7.1.1-1 is to be installed
Depends: libcurl3 (>= 7.44.0) but 7.38.0-4+deb8u5 is to be installed
E: Unable to correct problems, you have held broken packages.
Can anyone help me?
I need to enable APC on my server, however not a single package will install (even php5 says it has unmet dependencies but is installed already)
The error I am getting says it will not install the packages. I tried -f and --fix-missing to no avail
apt-get -f install php5 php5-fpm php-pear php5-common php5-mcrypt php5-mysql php5-cli php5-gd
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:
php5-cli : Depends: libdb5.1 but it is not installable
Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
Depends: libxml2 (>= 2.8.0) but 2.7.8.dfsg-2+squeeze8 is to be installed
Depends: libedit2 (>= 2.11-20080614-4) but 2.11-20080614-2 is to be installed
php5-common : Depends: psmisc (>= 22.15-1~) but 22.11-1 is to be installed
php5-fpm : Depends: libdb5.1 but it is not installable
Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
Depends: libxml2 (>= 2.8.0) but 2.7.8.dfsg-2+squeeze8 is to be installed
php5-gd : Depends: libjpeg8 (>= 8c) but it is not going to be installed
php5-mcrypt : Depends: libltdl7 (>= 2.4.2) but 2.2.6b-2 is to be installed
php5-mysql : Depends: libmysqlclient18 (>= 5.5.24+dfsg-1) but it is not going to be installed
E: Broken packages
“It is not installable“ means APT does not know where to get this package. You either have incompatible sources in /etc/apt or you need to update the package cache with apt-get update.
I'm trying to enable PHP for Mongo DB. Solution for that is same (install php5-dev first) in every forums but to installation fails with error.
Any idea how to solve issue?
Note: Using Ubuntu 12:04
jojo#ubuntu:~$ sudo apt-get install php-pear php5-dev
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:
php-pear : Depends: php5-cli but it is not going to be installed
php5-dev : Depends: autoconf (>= 2.63) but it is not installable
Depends: automake (>= 1.11) but it is not installable
Depends: libtool (>= 2.2) but it is not installable
Depends: shtool but it is not installable
E: Unable to correct problems, you have held broken packages.
jojo#ubuntu:~$
Assuming you have already installed MongoDB, You can install PHP driver for MongoDB by this command
sudo apt-get install php5-mongo
sudo apt-get install php5-mongo
worked on PHP 5.5.9 / Ubuntu 14.04 LTS
I would suggest to do this:
apt-get update
apt-get upgrade
And then install:
apt-get install php5-cli php5-dev
And then:
apt-get install php-pear
pecl install mongo
I created a fresh content for sources.list using this page and then installed Synaptic Package Manager to install new stuff which solved the problem..
This seems less like an issue with installing php5-dev, or even the mongo extension, and more with the following conflicts:
Depends: autoconf (>= 2.63) but it is not installable
Depends: automake (>= 1.11) but it is not installable
Depends: libtool (>= 2.2) but it is not installable
Depends: shtool but it is not installable
You can get some more information on these with sudo aptitude show <package>, which may clue you in on other installed packages that they conflict with. From personal experience, I've only had to install the build-essential package to do any C/C++ compiling on Ubuntu. That high-level package usually ends up covering these dependencies.
http://docs.mongodb.org/ecosystem/drivers/php/
This link gives all commands we need to execute for different operting system to install php driver for mongoDb