Can't install PHP 7.3: "release not found" - php

I want to install php7.3. I use the following script.
apt-get update && apt-get upgrade && \
apt-get -y install software-properties-common && \
add-apt-repository ppa:ondrej/php && \
apt-get update && \
apt-get -y install php7.3 \
php7.3-mbstring
The error says:
W: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu eoan Release' does not have a Release file.
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/eoan/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
I am using:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
The guide I followed was How to install PHP (7, 7.2 or 7.3) on Ubuntu.

It looks like your system is trying to use eoan distribution of Ubuntu, which is not yet released, so it's no wonder that packages for that distribution do not exist on this PPA.
You can manually change eoan to bionic in the relevant file in /etc/apt/sources.list.d/ and run apt-get update && apt-get -y install php7.3 php7.3-mbstring again.
Why is your system using eoan instead of bionic, I cannot answer.

Related

Unable to install PHP 7.4 Zip extension in Ubuntu 20.04

I'm getting this error when running sudo apt-get install php7.4-zip:
The following packages have unmet dependencies:
php7.4-zip : Depends: php7.4-common (= 7.4.3-4ubuntu2.12) but 7.4.10-1+ubuntu18.04.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.
The PHP manual page for installing the Zip extension says this:
As of PHP 7.4.0, in order to use these functions you must compile PHP with zip support by using the --with-zip configure option. Previously, zip support had to be enabled by using the --enable-zip configure option. As of PHP 7.4.0, the bundled libzip is removed.
What is the straightforward method for getting the Zip extension installed on my system?
UPDATE: Additional information:
dpkg --get-selections | grep hold returns no held packages.
sudo apt autoremove removed some packages but did not change the message returned by sudo apt install php7.4-zip
try this:
sudo apt-get install -y php7.4-cli php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-bcmath
Try apt-search for repo is exists for php7.4-zip
apt search php7.4-zip
If repos are exists
apt install php7.4-zip
Or you can use the wildcard
apt install php7.4*zip

Errors during installing new Laravel application in ubuntu 14.04

I am trying to install new laravel app on my machine but i am getting errors during installation.I am attaching the image files that shows the errors that i am getting. I am using ubuntu 14.04
This is my typical list of "extras" for a ubuntu install. Your requirements may differ:
apt-get install -y fish
apt-get install -y zip
apt-get install -y sqlite
apt-get install -y php-mbstring
apt-get install -y php-curl
apt-get install -y php-dom
You have a missing requirement php5.6-mbstring.
It has already been answered over here but for php7.0:
https://askubuntu.com/a/731380/588546
You could install it using the apt get method.
If you are using php5 use:
apt-get install php5-mbstring
If you are using php5.6 (as i could see you are using it) use:
apt-get install php5.6-mbstring
If you are using php7.0 use:
apt-get install php7.0-mbstring
There might be some other missing dependencies too.
Hope it helps.

brew install homebrew/php/php56 giving me an error

Hi I am trying to install homebrew php56 on ubuntu 14.04
I installed php 5.6 and apache2 and other dependencies of installation like perl, curl , etc.
But still I am getting this error.
That's rather a freaky way — install something on Ubuntu Linux through homebrew — it's actually should not work.
You'd better use apt package manager. You can install php-5.6 binaries from PPA:
sudo apt-get update && sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php5-5.6
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install php5

facing error while install imagemagick Ubuntu 14.04

I am new to use ubuntu, to install imagemagick I have run below command
sudo apt-get update
but it showing error
I have executed below commands as well but not able to install
sudo -i
cd
apt-get install build-essential checkinstall && apt-get build-dep imagemagick -y
wget http://www.imagemagick.org/download/ImageMagick-6.8.7-7.tar.gz
tar xzvf ImageMagick-6.8.9-1.tar.gz
cd ImageMagick-6.8.9-1/
./configure --prefix=/opt/imagemagick-6.8 && make
checkinstall
https://gist.github.com/rodleviton/74e22e952bd6e7e5bee1
Google has dropped the support for 32-bit version for chrome on Linux and that is the reason you are seeing that error.
Edit /etc/apt/sources.list.d/google-chrome.list - You would need sudo
Replace the existing line with deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
Run sudo apt-get update now.
And what is the error you are seeing when you are trying to install imagemagick?

How to fix error with xml2-config not found when installing PHP from sources?

When I try to install php 5.3 stable from source on Ubuntu (downloading compressed installation file from http://www.php.net/downloads.php) and I run ./configure I get this error:
configure: error: xml2-config not found. Please check your libxml2 installation.
All you need to do instal install package libxml2-dev for example:
sudo apt-get install libxml2-dev
On CentOS/RHEL:
sudo yum install libxml2-devel
For the latest versions it is needed to install libxml++2.6-dev like that:
apt-get install libxml++2.6-dev
I had the same issue when I used a DockerFile.
My Docker is based on the php:5.5-apache image.
I got that error when executing the command RUN docker-php-ext-install soap
I have solved it by adding the following command to my Dockerfile:
RUN apt-get update && apt-get install -y libxml2-dev
Ubuntu, Debian:
sudo apt install libxml2-dev
Centos:
sudo yum install libxml2-devel
this solution it gonna be ok on Redhat 8.0
sudo yum install libxml2-devel
OpenSuse
"sudo zypper install libxml2-devel"
It will install any other dependencies or required packages/libraries

Categories