installing php8.2 --- weird errors/user issue

bruce badouglas at gmail.com
Tue Jan 2 23:11:44 UTC 2024


Hi.

Running test version - ubuntu 22.04 -- digital ocean cloud instance.

Trying to install php8.2 following various sites. Appears I'm running
into an issue:

apt install software-properties-common ca-certificates lsb-release
apt-transport-https
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
software-properties-common is already the newest version (0.99.35).
ca-certificates is already the newest version (20230311ubuntu0.23.04.1).
lsb-release is already the newest version (12.0-1ubuntu1).
lsb-release set to manually installed.
apt-transport-https is already the newest version (2.6.0ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root at ubuntu-s-1vcpu-2gb-nyc1-pp:~#
root at ubuntu-s-1vcpu-2gb-nyc1-pp:~#
root at ubuntu-s-1vcpu-2gb-nyc1-pp:~# LC_ALL=C.UTF-8 sudo
add-apt-repository ppa:ondrej/php
PPA publishes dbgsym, you may need to include 'main/debug' component
Repository: 'deb https://ppa.launchpadcontent.net/ondrej/php/ubuntu/ lunar main'
Description:
Co-installable PHP versions: PHP 5.6, PHP 7.x, PHP 8.x and most
requested extensions are included. Only Supported Versions of PHP
(http://php.net/supported-versions.php) for Supported Ubuntu Releases
(https://wiki.ubuntu.com/Releases) are provided. Don't ask for
end-of-life PHP versions or Ubuntu release, they won't be provided.

Debian oldstable and stable packages are provided as well:
https://deb.sury.org/#debian-dpa

You can get more information about the packages at https://deb.sury.org

IMPORTANT: The <foo>-backports is now required on older Ubuntu releases.

BUGS&FEATURES: This PPA now has a issue tracker:
https://deb.sury.org/#bug-reporting

CAVEATS:
1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
2. If you are using apache2, you are advised to add ppa:ondrej/apache2
3. If you are using nginx, you are advised to add ppa:ondrej/nginx-mainline
   or ppa:ondrej/nginx

PLEASE READ: If you like my work and want to give me a little
motivation, please consider donating regularly:
https://donate.sury.org/

WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:

# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Found existing deb entry in /etc/apt/sources.list.d/ondrej-ubuntu-php-lunar.list
Adding deb entry to /etc/apt/sources.list.d/ondrej-ubuntu-php-lunar.list
Found existing deb-src entry in
/etc/apt/sources.list.d/ondrej-ubuntu-php-lunar.list
Adding disabled deb-src entry to
/etc/apt/sources.list.d/ondrej-ubuntu-php-lunar.list
Adding key to /etc/apt/trusted.gpg.d/ondrej-ubuntu-php.gpg with
fingerprint 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C
Hit:1 http://mirrors.digitalocean.com/ubuntu lunar InRelease
Hit:2 http://mirrors.digitalocean.com/ubuntu lunar-updates InRelease
Hit:3 https://repos-droplet.digitalocean.com/apt/droplet-agent main
InRelease
Hit:4 http://mirrors.digitalocean.com/ubuntu lunar-backports InRelease
Hit:5 http://security.ubuntu.com/ubuntu lunar-security InRelease
Ign:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu lunar InRelease
Err:7 https://ppa.launchpadcontent.net/ondrej/php/ubuntu lunar Release
  404  Not Found [IP: 185.125.190.80 443]
Reading package lists... Done
E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu
lunar 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.
root at ubuntu-s-1vcpu-2gb-nyc1-pp:~#
root at ubuntu-s-1vcpu-2gb-nyc1-pp:~#
root at ubuntu-s-1vcpu-2gb-nyc1-pp:~#
root at ubuntu-s-1vcpu-2gb-nyc1-pp:~# apt update
Hit:1 http://mirrors.digitalocean.com/ubuntu lunar InRelease
Hit:2 http://mirrors.digitalocean.com/ubuntu lunar-updates InRelease
Hit:3 https://repos-droplet.digitalocean.com/apt/droplet-agent main
InRelease
Hit:4 http://mirrors.digitalocean.com/ubuntu lunar-backports InRelease
Hit:5 http://security.ubuntu.com/ubuntu lunar-security InRelease
Ign:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu lunar InRelease
Err:7 https://ppa.launchpadcontent.net/ondrej/php/ubuntu lunar Release
  404  Not Found [IP: 185.125.190.80 443]
Reading package lists... Done
E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu
lunar 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.
root at ubuntu-s-1vcpu-2gb-nyc1-pp:~#
root at ubuntu-s-1vcpu-2gb-nyc1-pp:~#
root at ubuntu-s-1vcpu-2gb-nyc1-pp:~# apt install php8.2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package php8.2
E: Couldn't find any package by glob 'php8.2'
root at ubuntu-s-1vcpu-2gb-nyc1-pp:~#


tried a number of "different" variations on the above but I keep getting the

>>
E: Unable to locate package php8.2
E: Couldn't find any package by glob 'php8.2'

Any thoughts/ideas on what I'm missing??? Or sites/pointers that actually work!

thanks



More information about the ubuntu-users mailing list