Unable to install php7.2 or 7.3 on ubuntu 20.10 - ubuntu-20.10

I want to install php7.2 or php7.3 on ubuntu 20.10 but i get this error :
Done Building dependency tree
Reading state information...
Done E: Unable to locate package php7.3
E: Couldn't find any package by glob 'php7.3'
before i ran these commands
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.3
Does ubuntu 20.10 supports php 7.3 or 7.2 ?
Thanks

Ubuntu 20.10 is no longer supported by Canonical (EOL July 2021), and thus no longer supported by deb.sury.org (which only contains packages for released versions). You should downgrade to the LTS version 20.04 of Ubuntu, as for 21.10 the package support is still in discussion

Related

How to install a bookworm package from a bullseye docker image

I'm currently building images from python:3.9-slim-bullseye.
I also need the latest version of libleptonica-dev which is only available for bookworm and sid.
Currently, if I run apt-get install -y libleptonica-dev in my Dockerfile, it's installing the 1.79, but I need the 1.82.
Is there a way to install a package from a future debian version even if bullseye-backport doesn't exist ?
IN order to install libleptonica-dev version 1.82 from bookworm in Debian bullseye open the terminal and type:
sudo apt update
wget -c http://ftp.us.debian.org/debian/pool/main/l/leptonlib/libleptonica-dev_1.82.0-3+b2_amd64.deb
sudo apt install ./libleptonica-dev_1.82.0-3+b2_amd64.deb

What is the difference between install docker with python-pip and with yum?

What is the difference between install docker with python-pip and with yum ? thank you
1: pip is the package installer for Python client API. You can use pip to install packages from the Python Package Index. By this you will install a Docker client library that will interact with Docker. For this to work Docker has to be installed already.
2: YUM is the primary package management tool for installing, updating, removing, and managing software packages in RedHat Operating system. Like Brew for MacOS, apt for Ubuntu.

install php7.4 on ubuntu 16.04 - Dockerfile

I am trying to install php7.4 and related packages with below commands
FROM ubuntu:16.04
RUN apt update \
&& apt install -y software-properties-common\
&& add-apt-repository ppa:ondrej/php \
&& apt-get update \
&& apt-get install -y php7.4
I get the below message
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php7.4
E: Couldn't find any package by glob 'php7.4'
E: Couldn't find any package by regex 'php7.4'
on searching with
apt-cache search php7
I see that only 7.0 related packages are available
php7.0 - server-side, HTML-embedded scripting language (metapackage)
php7.0-cgi - server-side, HTML-embedded scripting language (CGI binary)
php7.0-cli - command-line interpreter for the PHP scripting language
php7.0-common - documentation, examples and common module for PHP
php7.0-curl - CURL module for PHP
I am confused why I am not getting the newer versions as 7.3, 7,4 and 8 should be the only ones available today. How can I get php7.4 packages?
TL;DR: Since Ubuntu 16.04 reached "End of Standard Support", packages for it were removed from the PPA.
You might want to read this: https://github.com/oerdnj/deb.sury.org/issues/1567
In April 2021, Ubuntu 16.04 Xenial will reach End of Standard Support and will be available only as a paid option through Ubuntu Extended Security Maintenance.
What does it mean for DEB.SURY.ORG PPAs?
The packages for Ubuntu 16.04 will be deleted shortly after the EoL/EoSS is announced, usually at the same time as the next PHP release is published because it's not possible to build the packages any more.
The packages for Ubuntu 16.04 will be available via PHP LTS by Freexian paid program. This is cheaper option than previously announced Private dedicated repositories.
FROM ubuntu:20.04
RUN apt-get update
RUN apt-get install -y wget tar make
RUN wget https://www.php.net/distributions/php-7.4.33.tar.gz --no-check-certificate
RUN tar xzf php-7.4.33.tar.gz
RUN cd php-7.4.33
RUN apt-get update
RUN apt-get --assume-yes install gcc
RUN apt-get -y install expect
RUN apt-get -y install pkg-config
RUN apt-get --assume-yes install -y libsqlite3-dev
RUN apt-get --assume-yes install -y libxml2-dev
RUN ./php-7.4.33/configure
RUN make
RUN make install
CMD ["/bin/bash"]
Install PHP 7.4 on Ubuntu 20.04
NOTE: Ubuntu 20.04 ships with PHP 7.4 in its upstream repositories. Just install it and the extensions you with the apt package manager.
sudo apt update
sudo apt install php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath
Confirm PHP version:
$ php --version
PHP 7.4.3 (cli) (built: Mar 26 2020 20:24:23) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
Install PHP 7.4 on Ubuntu 18.04/16.04
Step 1: Add PHP PPA Repository
We’ll add ppa:ondrej/php PPA repository which has the latest build packages of PHP.
sudo apt-get update
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
Step 2: Install PHP 7.4 on Ubuntu 18.04/19.04/16.04
Install PHP 7.4 on Ubuntu 18.04/19.04/16.04 using the command:
sudo apt -y install php7.4
Check version installed:
$ php -v
PHP 7.4.0beta4 (cli) (built: Aug 28 2019 11:41:49) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0-dev, Copyright (c) Zend Technologies
with Zend OPcache v7.4.0beta4, Copyright (c), by Zend Technologies
Use the next command to install additional packages:
sudo apt-get install php7.4-xxx
Example:
sudo apt-get install -y php7.4-{bcmath,bz2,intl,gd,mbstring,mysql,zip,common}
PHP configurations related to Apache is stored in /etc/php/7.4/apache2/php.ini
I hope my experience help you guys

Installation of neo4j on ubuntu 14.04 fails

I am attempting to install neo4j in ubuntu 14.04 as specified in http://neo4j.com/docs/operations-manual/current/installation/linux/debian/?_ga=2.249168388.2041192375.1507250087-893468657.1507250087
The installation instruction I am using is
sudo apt-get install neo4j=3.2.3
but it doesn't work
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package neo4j
I'd apreciate any help
Maybe you forgot to add the debian repository and to update your list of packages:
wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.org/repo stable/' | sudo tee -a /etc/apt/sources.list.d/neo4j.list
sudo apt-get update
https://neo4j.com/docs/operations-manual/current/installation/linux/debian/#debian-add-repository
I had the same problem on Debian and installing "apt-transport-https" fixed it because deb https://debian.neo4j.org/repo stable/ is using https.
You can install it with this:
sudo apt install apt-transport-https

Docker Upgrade from v1.11 to v1.12 using apt-get on Ubuntu 14.04.4 LTS

I was trying to upgrade docker as is suggsted in its manual
sudo apt-get upgrade docker-engine
For some unknown reasons this will result in fetching and unpacking almost every package and library in my linux ( linux-images, lightdm, jvm,etc.). This has been going on for an hour now.
Does anyone have any idea what is going wrong and how it can be stopped without messing up my Ubuntu installation?
( in case you are planning to upgrade your docker using this, just don't. a purge an reinstall is a much better choice if you like your Ubuntu)
apt-get upgrade always upgrades all the packages on your machine.
You want
$ apt-get update && apt-get install docker-engine -y

Resources