When I try to install phpize for my Pop OS VM I get this error. I have done an sudo apt-get update as well but am still unable to do it.
I was following the steps that was in this recommendation for Xdebug:
but ...
cs#pop-os:~/Downloads$ sudo apt install php-dev.openSUSE
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php-dev.openSUSE
E: Couldn't find any package by glob 'php-dev.openSUSE'
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'm getting error saying E: Unable to locate package php
when installing php in raspbian image on docker.
I've pulled the raspbian/jessie image from docker hub and run it.
and in this container I've used 1.apt update 2. apt upgrade 3. apt install apache2
then tried to install php
all looked fine untill apt install apache2
root#516cf9de5248:/# apt install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root#516cf9de5248:/# apt install php php-fpm php-curl php-gd php-intl php-mbstring php-mysql php-soap php-xml php-xmlrpc php-zip libapache2-mod-php
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php
E: Unable to locate package php-fpm
E: Unable to locate package php-curl
E: Unable to locate package php-gd
E: Unable to locate package php-intl
E: Unable to locate package php-mbstring
E: Unable to locate package php-mysql
E: Unable to locate package php-xml
E: Unable to locate package php-xmlrpc
E: Unable to locate package php-zip
E: Unable to locate package libapache2-mod-php
I've tried apt-get update after but still doesn't work
Running sudo apt-get install php5 worked for me, even if it's not the best for security.
I'm trying to install the php7.3-gd extension.
When I try to: sudo apt-get install -y php7.3-gd
I recieve the output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.3-gd
E: Couldn't find any package by glob 'php7.3-gd'
E: Couldn't find any package by regex 'php7.3-gd'
I tried to update my repo using the following awnser but to no avail.
Edit: I'm on ubuntu 19.08
php7.3-gd is available on Ubuntu 19.10.
First, you need upgrade your ubuntu to 19.10:
sudo do-release-upgrade -d
And then you can install it:
sudo apt install php7.3-gd
/etc/init.d/mysql status is running active
When I am trying to install php, I get this message:
sudo apt-get install php5.6-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php5.6-mysql
E: Couldn't find any package by glob 'php5.6-mysql'
E: Couldn't find any package by regex 'php5.6-mysql'
To find out what packages exist in the repositories:
sudo apt search <package_name>
This will give you a list of packages that you can install, and this will allow you to check if the package php5.6-mysql actually exists (which it probably doesn't).
Once you've done that, you'll be able to install the correct package that you need!
The packages you probably want are php5-mysql and mysql-server.
So simply run:
sudo apt install php5-mysql mysql-server
as the title already explains I need to install the zip module from php 7.1 under Ubuntu 18.04. When every I use the command
sudo apt-get install php7.1-zip
and the follwing output.
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.1-zip : Depends: libzip4 (>= 1.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
Trying to Install libzip4 does not work either.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libzip4 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 'libzip4' has no installation candidate
Can somebody please try to help. Google does not help with unfortunately either.
Elias
Use the official repository:
sudo add-apt-repository universe
sudo apt update
then:
sudo apt install php7.1-zip
A temporary solution is to just download the package file from trusted source like:
https://packages.ubuntu.com/xenial/libzip4
Afterwards, install it with
dpkg -i libzip4_1.0.1-0ubuntu1_amd64.deb
And the php7.1-zip will install gracefully.
Please try with the following:
if you are using 64-bit then do:
sudo apt-get purge libzip4
then:
sudo apt-get install php7.1-zip
if you are using 32-bit system then:
sudo apt-get install php7.1-zip:i386