Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 10300  / 3 Years ago, wed, may 19, 2021, 5:43:16

i've following this tutorial https://computingforgeeks.com/how-to-install-php-on-ubuntu/, to install php7.4 on ubuntu


as far as i know, you just need to add this package


sudo add-apt-repository ppa:ondrej/php

then run update


sudo apt-get update

and install the php7.4


sudo apt-get instal php7.4

and i'm getting this error


nugroho@vostro:~$ sudo apt-get update
Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease
Ign:2 https://ppa.launchpadcontent.net/ondrej/php/ubuntu kinetic InRelease
Err:3 https://ppa.launchpadcontent.net/ondrej/php/ubuntu kinetic Release
404 Not Found [IP: 185.125.190.52 443]
Hit:4 http://archive.ubuntu.com/ubuntu kinetic InRelease
Get:5 http://archive.ubuntu.com/ubuntu kinetic-updates InRelease [90,7 kB]
Hit:6 http://archive.ubuntu.com/ubuntu kinetic-backports InRelease
Get:7 http://archive.ubuntu.com/ubuntu kinetic-security InRelease [90,7 kB]
Reading package lists... Done
E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu kinetic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.


and


nugroho@vostro:~$ sudo apt-get install php7.4
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package php7.4 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 'php7.4' has no installation candidate


is it not supported yet ? or ther is some mistake that i made


No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.10
Release: 22.10
Codename: kinetic

More From » apt

 Answers
4

There are a couple of elements at work here.


First, the PHP version follows Ubuntu by default. So any installation of PHP other than 8 on Ubuntu 22.10 is non-default.


One method is using the ppa:ondrej/php. However, the PPA needs to be updated for each distribution, which hasn't happened yet for 22.10.


Another option is to install PHP (and possibly Apache etc.) using containers. In this case, the PHP version can be independent from the system.


Any other manual installation of a non-default PHP version is not recommended, since it can cause package dependency issues in the long run.


[#171] Thursday, May 20, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
laiuct

Total Points: 44
Total Questions: 105
Total Answers: 107

Location: Seychelles
Member since Mon, Feb 15, 2021
3 Years ago
;