how can I install XDebug on Ubuntu 14.04?
I tried to install it through apt-get:
sudo apt-get install php5-xdebug
but I get this error:
php5-xdebug : Depends: phpapi-20121212+lfs
E: Unable to correct problems, you have held broken packages.
what's wrong?
Related
php installation fail getting this error E: Unable to locate package php7.4
ubuntu version 16.04
i also try
sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.4
but not working
I am trying to install PHP mbstring module in my Ubuntu 14.04 machine. I've used "sudo apt-get -f install php7.0-mbstring" to install the module. I've added necessary source list in "/etc/apt/sources.list".
When I run the above mbstring installation command I get the following error.
The following packages have unmet dependencies:
php7.0-mbstring : Depends: php7.0-common (= 7.0.33-0ubuntu0.16.04.6) but 7.0.21-1~ubuntu14.04.1+deb.sury.org+1 is to be installed
Conflicts: php7.0-mbstring:i386 but 7.0.33-0ubuntu0.16.04.6 is to be installed
php7.0-mbstring:i386 : Depends: php-common:i386 (>= 1:33) but it is not installable
Depends: php7.0-common:i386 (= 7.0.33-0ubuntu0.16.04.6) but it is not going to be installed
Depends: libc6:i386 (>= 2.4) but it is not going to be installed
Conflicts: php7.0-mbstring but 7.0.33-0ubuntu0.16.04.6 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
What is the recommended solution here? Do I need to uninstall PHP 7.0 and reinstall or is there any other low risk solution?
Edit: I've tried to install with sudo apt-get -f install as well. I get the same following error,
php7.0-mbstring:i386 : Depends: php-common:i386 (>= 1:33) but it is not installable
Depends: php7.0-common:i386 (= 7.0.33-0ubuntu0.16.04.6) but it is not installed
Depends: libc6:i386 (>= 2.4) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
First be sure that your package list is up to date, try:
sudo apt-get update
After it try install packeage again
sudo apt-get install php7.0-mbstring
If it doesn't help try to add php repository to source list, for example you can use this PPA
sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0-mbstring
I want to install composer on the server, but I get an error
"the requested PHP extension zip is missing from your system".
I have tried by typing the command
sudo apt-get install php7.1-zip
but get another error
E: Unable to locate the php7.1-zip package E: Couldn't find any
package by regex 'php7.1-zip'
has anyone ever experienced it?
The extension php-zip is missing in your environment you should install it
to check your installed extensions run
php -m
then if php-zip is not there you can add it:
if you are on a ubuntu this will install it
sudo apt install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt install php7.0-zip
then you should restart the server to apply the update.
I have php7.0 installed on Ubuntu 16.04 and I'm trying to install a forum software in apache2, but I get the following error:
In order to function correctly, the PHP XML/DOM extension needs to be available.
I tried to execute
sudo apt-get install php-xml
sudo apt-get install php7.0-xml
but these give me the following error:
php-xml: Depends: php7.1-xml but it is not going to be installed
When I try to install php7.1 from a PPA, I still get issues of dependencies from other PHP modules.
Any ideas how I can get php-xml installed without any dependency issues?
Can you try installing the .deb files manually from here https://launchpad.net/ubuntu/xenial/+package/php-xml
I am new to php and drupal.my problem is i tried to install php and related pkgs in terminal.I followed this command to install php5
sudo apt-get install php5 php5-cli php5-common php5-devel php5-mbstring php5-gd php5-mysql php5-pdo php5-xmlrpc php5-xml php5-pear
after i entered this command i saw the error like as below.
E: Unable to locate package php5-devel
E: Unable to locate package php5-mbstring
E: Unable to locate package php5-pdo
E: Unable to locate package php5-xml
E: Unable to locate package php5-pear
I tried many ways to get solution for this but i didn't got solution to this.After many hours i taken reinstall ubuntu after that again same error is shows me. Can any one help me from this headache error.
Try replacing php5 with php like so sudo apt-get install php-curl or if you have php7.0 installed use this command sudo apt-get install php7.0-curl.
You can check your php version using command php -v.