SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu Linux 18.04.6 |
Webmin version | 2.101 |
Virtualmin version | 7.8.2 PRO |
Related packages |
I would like to know how to upgrade my PHP 8.2 to current version, please advise
SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu Linux 18.04.6 |
Webmin version | 2.101 |
Virtualmin version | 7.8.2 PRO |
Related packages |
I would like to know how to upgrade my PHP 8.2 to current version, please advise
https://www.virtualmin.com/documentation/web/multiplephp/
Make sure what php scripts you are are compatible.
You don’t don’t upgrade you switch.
I think latest available is 8.3
please see the command below, Idk why it cannot local the package
root@tor:~# apt-get install php8.1-{cgi,cli,fpm,pdo,gd,mbstring,mysqlnd,opcache,curl,xml,zip}
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package php8.1-cgi
E: Couldn’t find any package by glob ‘php8.1-cgi’
E: Couldn’t find any package by regex ‘php8.1-cgi’
E: Unable to locate package php8.1-cli
E: Couldn’t find any package by glob ‘php8.1-cli’
E: Couldn’t find any package by regex ‘php8.1-cli’
E: Unable to locate package php8.1-fpm
E: Couldn’t find any package by glob ‘php8.1-fpm’
E: Couldn’t find any package by regex ‘php8.1-fpm’
E: Unable to locate package php8.1-pdo
E: Couldn’t find any package by glob ‘php8.1-pdo’
E: Couldn’t find any package by regex ‘php8.1-pdo’
E: Unable to locate package php8.1-gd
E: Couldn’t find any package by glob ‘php8.1-gd’
E: Couldn’t find any package by regex ‘php8.1-gd’
E: Unable to locate package php8.1-mbstring
E: Couldn’t find any package by glob ‘php8.1-mbstring’
E: Couldn’t find any package by regex ‘php8.1-mbstring’
E: Unable to locate package php8.1-mysqlnd
E: Couldn’t find any package by glob ‘php8.1-mysqlnd’
E: Couldn’t find any package by regex ‘php8.1-mysqlnd’
E: Unable to locate package php8.1-opcache
E: Couldn’t find any package by glob ‘php8.1-opcache’
E: Couldn’t find any package by regex ‘php8.1-opcache’
E: Unable to locate package php8.1-curl
E: Couldn’t find any package by glob ‘php8.1-curl’
E: Couldn’t find any package by regex ‘php8.1-curl’
E: Unable to locate package php8.1-xml
E: Couldn’t find any package by glob ‘php8.1-xml’
E: Couldn’t find any package by regex ‘php8.1-xml’
E: Unable to locate package php8.1-zip
E: Couldn’t find any package by glob ‘php8.1-zip’
E: Couldn’t find any package by regex ‘php8.1-zip’
root@tor:~#
You sure you added the repo?
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php && apt-get update
Yes I did
root@tor:~# LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php && apt-get update
Hit:1 https://repos.sonar.digitalocean.com/apt main InRelease
Hit:2 Index of /ubuntu/ bionic InRelease
Hit:3 Index of /ubuntu bionic-security InRelease
Hit:4 Index of /ubuntu bionic InRelease
Hit:5 Index of /ubuntu/ bionic-updates InRelease
Hit:6 Index of /ubuntu/ bionic-backports InRelease
Hit:7 Index of /ondrej/php/ubuntu bionic InRelease
Hit:8 http://software.virtualmin.com/vm/6/apt virtualmin-bionic InRelease
Hit:9 http://software.virtualmin.com/vm/6/apt virtualmin-universal InRelease
Reading package lists… Done
N: Usage of apt_auth.conf(5) should be preferred over embedding login information directly in the sources.list(5) entry for ‘http://software.virtualmin.com/vm/6/apt’
N: Usage of apt_auth.conf(5) should be preferred over embedding login information directly in the sources.list(5) entry for ‘http://software.virtualmin.com/vm/6/apt’
Hit:1 https://repos.sonar.digitalocean.com/apt main InRelease
Hit:2 Index of /ubuntu/ bionic InRelease
Hit:3 Index of /ubuntu bionic InRelease
Hit:4 Index of /ubuntu/ bionic-updates InRelease
Hit:5 Index of /ubuntu/ bionic-backports InRelease
Hit:6 Index of /ondrej/php/ubuntu bionic InRelease
Hit:7 Index of /ubuntu bionic-security InRelease
Hit:8 http://software.virtualmin.com/vm/6/apt virtualmin-bionic InRelease
Hit:9 http://software.virtualmin.com/vm/6/apt virtualmin-universal InRelease
Reading package lists… Done
N: Usage of apt_auth.conf(5) should be preferred over embedding login information directly in the sources.list(5) entry for ‘http://software.virtualmin.com/vm/6/apt’
N: Usage of apt_auth.conf(5) should be preferred over embedding login information directly in the sources.list(5) entry for ‘http://software.virtualmin.com/vm/6/apt’
root@tor:~# apt-get install php8.1-{cgi,cli,fpm,pdo,gd,mbstring,mysqlnd,opcache,curl,xml,zip}
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package php8.1-cgi
E: Couldn’t find any package by glob ‘php8.1-cgi’
E: Couldn’t find any package by regex ‘php8.1-cgi’
E: Unable to locate package php8.1-cli
E: Couldn’t find any package by glob ‘php8.1-cli’
E: Couldn’t find any package by regex ‘php8.1-cli’
E: Unable to locate package php8.1-fpm
E: Couldn’t find any package by glob ‘php8.1-fpm’
E: Couldn’t find any package by regex ‘php8.1-fpm’
E: Unable to locate package php8.1-pdo
E: Couldn’t find any package by glob ‘php8.1-pdo’
E: Couldn’t find any package by regex ‘php8.1-pdo’
E: Unable to locate package php8.1-gd
E: Couldn’t find any package by glob ‘php8.1-gd’
E: Couldn’t find any package by regex ‘php8.1-gd’
E: Unable to locate package php8.1-mbstring
E: Couldn’t find any package by glob ‘php8.1-mbstring’
E: Couldn’t find any package by regex ‘php8.1-mbstring’
E: Unable to locate package php8.1-mysqlnd
E: Couldn’t find any package by glob ‘php8.1-mysqlnd’
E: Couldn’t find any package by regex ‘php8.1-mysqlnd’
E: Unable to locate package php8.1-opcache
E: Couldn’t find any package by glob ‘php8.1-opcache’
E: Couldn’t find any package by regex ‘php8.1-opcache’
E: Unable to locate package php8.1-curl
E: Couldn’t find any package by glob ‘php8.1-curl’
E: Couldn’t find any package by regex ‘php8.1-curl’
E: Unable to locate package php8.1-xml
E: Couldn’t find any package by glob ‘php8.1-xml’
E: Couldn’t find any package by regex ‘php8.1-xml’
E: Unable to locate package php8.1-zip
E: Couldn’t find any package by glob ‘php8.1-zip’
E: Couldn’t find any package by regex ‘php8.1-zip’
root@tor:~#
have you looked in apt sources to make sure the above command worked ?
run this
grep ondrej /etc/apt/sources.list /etc/apt/sources.list.d/*
if you get no output from the above command it’s not worked
but as Ubuntu 18.04 hit end of life earlier this year the repro for UB 18.04 may no longer be available
to quote ***** The main PPA for supported PHP versions with many PECL ext... : Ondřej Surý
Co-installable PHP versions: PHP 5.6, PHP 7.x, PHP 8.x and most requested extensions are included. Only Supported Versions of PHP (PHP: Supported Versions) for Supported Ubuntu Releases (Releases - Ubuntu Wiki) are provided. Don’t ask for end-of-life PHP versions or Ubuntu release, they won’t be provided.
so you may want to upgrade your OS
I try to upgarde but it fails…any advise what is the easiest way to upgrade?
Did you bother to read the page where these packages come from: ***** The main PPA for supported PHP versions with many PECL ext... : Ondřej Surý
“Co-installable PHP versions: PHP 5.6, PHP 7.x, PHP 8.x and most requested extensions are included. Only Supported Versions of PHP (PHP: Supported Versions) for Supported Ubuntu Releases (Releases - Ubuntu Wiki) are provided. Don’t ask for end-of-life PHP versions or Ubuntu release, they won’t be provided.”
You are not on a supported Ubuntu release. 18.04 reached end of life months ago. If you want new software, you need to run a maintained distro.
This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.