Good afternoon community, well I have changed from S.O from fedora to ubuntu for compatibility with my graphics card, well my problem is that I cannot install the php-mbstring package and I get this error in console Console error
➜ ~ sudo apt install php7.4-mbstring
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.4-mbstring : Depends: libonig5 (>= 6.8.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
Do you have any idea what might be happening? Cheers
Related
For your reference, please:
OS: Ubuntu 16.04
PHP: PHP 7.2.34
NGIX: nginx/1.10.3 (Ubuntu)
I'm having a problem installing php curl. I already tried commands I found online but still, no luck.
Any help would be appreciated. Thank you in advance :)
I already tried these commands:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php7.2-curl
But I always have this result:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.2-curl
E: Couldn't find any package by glob 'php7.2-curl'
E: Couldn't find any package by regex 'php7.2-curl'
When I try this command:
sudo apt-get update
sudo apt install php-curl
This is the result:
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-curl : Depends: php7.0-curl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I want to install gd extension in my current php-project(php version is 7.2.34) for that i use this command sudo apt-get install php7.2-gd it's throwing following error and it's not showing in the list when i run php -m command ,How to install gd extension please help me to fix this issue..
Error
Reading package lists... Done
Building dependency tree... Done
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-gd : Depends: libjpeg62-turbo (>= 1.3.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
This package depends on libjpeg62-turbo so you need to install it first
wget http://ftp.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_amd64.deb
sudo apt-get install ./libjpeg62-turbo_1.5.1-2_amd64.deb
after that, you could install your package easily
sudo apt-get install php7.2-gd
I have been trying to install php5-mysql in order to run an owncloud server, but every time I try it shows a dependency error, view it here:
pi#raspberrypi:/var/www/html $ sudo apt-get install php5-mysql
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-mysql : Depends: libmysqlclient18 but it is not installable
E: Unable to correct problems, you have held broken packages.
I am inputting the command sudo apt-get install php5-MySQL. I have looked for the dependency but so far haven't found it and tried to install it using synaptic but it shows the same error. Do I need to use something different as is this out of date or has been removed? The tutorial I am following to run owncloud on my pi is available here
If there any detail I need to provide I will do so, I would just like to know how to obtain that dependency or a suitable alternative for owncloud on raspberry pi.
I'm trying to install GMP on Ubuntu 14.04:
$ sudo apt-get install php5-gmp
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-gmp : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.5) but 5.5.17+dfsg-2+deb.sury.org~precise+1 is to be installed
E: Unable to correct problems, you have held broken packages.
Why is it not letting me install this?
somehow you have installed a special version of php-common (= 5.5.17+dfsg-2+deb.sury.org~precise+1)
try to
apt-get remove php5-common
and then install again.
Your installation appears to be broken by php5-common-5.5.17+dfsg-2+deb.sury.org~precise+1 package installed from some alien repo.
Try to start with:
sudo apt-search php5
remove everything looking suspicious and then reinstall it from the official repo. I think, simple removal of this alien common and reinstalling gmp might resolve an issue.
I need to setup php on server where ROR and nginx are already configured .
When I am installing php5-fpm then there are one package libssl0.9.8 version dependency.
I have searched a lot and tried to remove and re-install package libssl0.9.8 but version is not updating .
I am getting below error when I am trying to install php5-fpm .
root#boxyroom:~# sudo apt-get install php5-fpm -f
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-fpm: Depends: libssl0.9.8 (>= 0.9.8m-1) but 0.9.8k-7ubuntu8.13 is to be installed
PreDepends: dpkg (>= 1.15.7.2) but 1.15.5.6ubuntu4.6 is to be installed
E: Broken packages
Please let me know if any one has an idea to install the php5-fpm or upgrading package libssl0.9.8.
Thanks in advance .