Unable to install php8.2-intl on Ubuntu 23.10

Asked by James Cobban

My website, which is hosted on a computer running Ubuntu 23.10 has been down for five days now because it depends upon the internationalization feature of PHP and I cannot install that feature. I urgently need instructions on how to install this feature.

    $ sudo apt-get install php8.2-intl
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help resolve the situation:

    The following packages have unmet dependencies:
     php8.2-intl : Depends: php8.2-common (= 8.2.10-2ubuntu1) but 8.2.14-1+ubuntu22.04.1+deb.sury.org+1 is to be installed
    E: Unable to correct problems, you have held broken packages.

I have the following repositories defined:

deb http://archive.ubuntu.com/ubuntu mantic main restricted
deb http://archive.ubuntu.com/ubuntu mantic-updates main restricted
deb http://archive.ubuntu.com/ubuntu mantic universe
deb http://archive.ubuntu.com/ubuntu mantic-updates universe
deb http://archive.ubuntu.com/ubuntu mantic multiverse
deb http://archive.ubuntu.com/ubuntu mantic-updates multiverse
deb http://archive.ubuntu.com/ubuntu mantic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu mantic-security main restricted
deb http://security.ubuntu.com/ubuntu mantic-security universe
deb http://security.ubuntu.com/ubuntu mantic-security multiverse
deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_12.x focal main
deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_12.x focal main
deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_12.x focal main
deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_12.x focal main
deb http://archive.ubuntu.com/ubuntu lunar main restricted
deb http://archive.ubuntu.com/ubuntu lunar-updates main restricted
deb http://archive.ubuntu.com/ubuntu lunar universe
deb http://archive.ubuntu.com/ubuntu lunar-updates universe
deb http://archive.ubuntu.com/ubuntu lunar multiverse
deb http://archive.ubuntu.com/ubuntu lunar-updates multiverse
deb http://archive.ubuntu.com/ubuntu lunar-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu lunar-security main restricted
deb http://archive.ubuntu.com/ubuntu lunar-security universe
deb http://archive.ubuntu.com/ubuntu lunar-security multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ focal main restricted
deb http://ca.archive.ubuntu.com/ubuntu/ focal-updates main restricted
deb http://ca.archive.ubuntu.com/ubuntu/ focal universe
deb http://ca.archive.ubuntu.com/ubuntu/ focal-updates universe
deb http://ca.archive.ubuntu.com/ubuntu/ focal multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ focal-updates multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: ubiquity (not installed)
ProcVersionSignature: Ubuntu 6.5.0-15.15-generic 6.5.3
Uname: Linux 6.5.0-15-generic x86_64
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Sat Jan 27 19:23:07 2024
InstallCmdLine: file=/cdrom/preseed/ubuntu.seed initrd=/casper/initrd quiet splash --- maybe-ubiquity
InstallationDate: Installed on 2020-02-09 (1448 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
SourcePackage: ubiquity
Symptom: installation
UpgradeStatus: Upgraded to mantic on 2024-01-20 (8 days ago)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ubiquity Edit question
Assignee:
No assignee Edit question
Solved by:
James Cobban
Solved:
Last query:
Last reply:
Revision history for this message
Chris Guiver (guiverc) said :
#1

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Bug reporting is about finding & fixing problems thus preventing future users from hitting the same bug.

I suspect a Support site would be more appropriate, eg. https://answers.launchpad.net/ubuntu. You can also find help with your problem in the support forum of your local Ubuntu community http://loco.ubuntu.com/ or asking at https://askubuntu.com or https://ubuntuforums.org, or for more support options please look at https://discourse.ubuntu.com/t/community-support/709

You've marked this issue as an installer issue, however your install was successfully completed 1448 days ago? I also see details provided from EOL releases, thus problems can be expected; and support may be of benefit to you.

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

Please provide the output that you receive fir the following commands:

uname -a
lsb_release -crid
apt policy php8.2-intl php8.2-common
cat -n /etc/apt/sources.list
ls -l /etc/apt/sources.list.d/*.list

Your package management configuration file sources.list contains an unhealthy mix of different Ubuntu releases (focal, lunar and mantic).

Revision history for this message
James Cobban (7-webmaster) said :
#3

Thank you for your prompt response.

On 2024-01-28 08:40, Manfred Hampl wrote:
> Your question #709134 on ubiquity in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ubiquity/+question/709134
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> Please provide the output that you receive fir the following commands:
>
> uname -a
> lsb_release -crid
> apt policy php8.2-intl php8.2-common
> cat -n /etc/apt/sources.list
> ls -l /etc/apt/sources.list.d/*.list
>
> Your package management configuration file sources.list contains an
> unhealthy mix of different Ubuntu releases (focal, lunar and mantic).
>
$ lsb_release -crid
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 23.10
Release:    23.10
Codename:    mantic
$ apt policy php8.2-intl php8.2-common
php8.2-intl:
   Installed: (none)
   Candidate: 8.2.10-2ubuntu1
   Version table:
      8.2.14-1+ubuntu22.04.1+deb.sury.org+1 -1
         100 /var/lib/dpkg/status
      8.2.10-2ubuntu1 500
         500 http://archive.ubuntu.com/ubuntu mantic/universe amd64 Packages
php8.2-common:
   Installed: 8.2.14-1+ubuntu22.04.1+deb.sury.org+1
   Candidate: 8.2.14-1+ubuntu22.04.1+deb.sury.org+1
   Version table:
  *** 8.2.14-1+ubuntu22.04.1+deb.sury.org+1 100
         100 /var/lib/dpkg/status
      8.2.10-2ubuntu1 500
         500 http://archive.ubuntu.com/ubuntu mantic/main amd64 Packages
$ cat -n /etc/apt/sources.list
      1    # See http://help.ubuntu.com/community/UpgradeNotes for how
to upgrade to
      2    # newer versions of the distribution.
      3    deb http://archive.ubuntu.com/ubuntu mantic main restricted
      4
      5    ## Major bug fix updates produced after the final release of the
      6    ## distribution.
      7    deb http://archive.ubuntu.com/ubuntu mantic-updates main
restricted
      8
      9    ## N.B. software from this repository is ENTIRELY UNSUPPORTED
by the Ubuntu
     10    ## team. Also, please note that software in universe WILL NOT
receive any
     11    ## review or updates from the Ubuntu security team.
     12    deb http://archive.ubuntu.com/ubuntu mantic universe
     13    deb http://archive.ubuntu.com/ubuntu mantic-updates universe
     14
     15    ## N.B. software from this repository is ENTIRELY UNSUPPORTED
by the Ubuntu
     16    ## team, and may not be under a free licence. Please satisfy
yourself as to
     17    ## your rights to use the software. Also, please note that
software in
     18    ## multiverse WILL NOT receive any review or updates from the
Ubuntu
     19    ## security team.
     20    deb http://archive.ubuntu.com/ubuntu mantic multiverse
     21    deb http://archive.ubuntu.com/ubuntu mantic-updates multiverse
     22
     23    ## N.B. software from this repository may not have been tested as
     24    ## extensively as that contained in the main release,
although it includes
     25    ## newer versions of some applications which may provide
useful features.
     26    ## Also, please note that software in backports WILL NOT
receive any review
     27    ## or updates from the Ubuntu security team.
     28    deb http://archive.ubuntu.com/ubuntu mantic-backports main
restricted universe multiverse
     29
     30
     31    deb http://security.ubuntu.com/ubuntu mantic-security main
restricted
     32    deb http://security.ubuntu.com/ubuntu mantic-security universe
     33    deb http://security.ubuntu.com/ubuntu mantic-security multiverse
     34
     35    # This system was installed using small removable media
     36    # (e.g. netinst, live or single CD). The matching "deb cdrom"
     37    # entries were disabled at the end of the installation process.
     38    # For information about how to configure apt package sources,

     39    # see the sources.list(5) manual.

$ ls -l /etc/apt/sources.list.d/*.list
-rw-r--r-- 1 root root 221 Jan 27 17:45
/etc/apt/sources.list.d/google-earth-pro.list
-rw-r--r-- 1 root root 181 Jan 27 17:45
/etc/apt/sources.list.d/ondrej-ubuntu-apache2-jammy.list
-rw-r--r-- 1 root root  64 Jan 27 17:45
/etc/apt/sources.list.d/ondrej-ubuntu-php-focal.list
-rw-r--r-- 1 root root 173 Jan 27 17:45
/etc/apt/sources.list.d/ondrej-ubuntu-php-jammy.list
-rw-r--r-- 1 root root 209 Jan 27 17:45
/etc/apt/sources.list.d/ubuntugis-ubuntu-ubuntugis-unstable-jammy.list

I deleted the four lists associated with focal and jammy.

$ sudo apt update

$ sudo apt install php8.2-intl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
  php8.2-intl : Depends: php8.2-common (= 8.2.10-2ubuntu1) but
8.2.14-1+ubuntu22.04.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.

So I still cannot install php8.2-intl because there is no available
candidate at 8.2.14-1.

--
James Cobban
911-500 Springbank Dr
London, ON, Canada
N6J 4G6
mailto: <email address hidden>
+1-226-504-7603

Revision history for this message
James Cobban (7-webmaster) said :
#4

I tried:

$ sudo apt-get purge php8.2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  libapache2-mod-php8.2
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  php8.2*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 67.6 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 313761 files and directories currently installed.)
Removing php8.2 (8.2.10-2ubuntu1) ...
$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  libapache2-mod-php8.2
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 5,552 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 313756 files and directories currently installed.)
Removing libapache2-mod-php8.2 (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
apache2_invoke php8.2 prerm: No action required
$ sudo apt-get autoclean
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Del php-intl 2:8.3+94+ubuntu22.04.1+deb.sury.org+1 [7,228 B]
Del base-files 12ubuntu4.5 [62.7 kB]
Del thunderbird-locale-en-us 1:115.6.0+build2-0ubuntu0.22.04.1 [9,542 B]
Del php8.2-gd 8.2.14-1+ubuntu22.04.1+deb.sury.org+1 [32.9 kB]
Del thunderbird-locale-en-gb 1:115.6.0+build2-0ubuntu0.22.04.1 [9,538 B]
Del php8.3-common 8.3.1-1+ubuntu22.04.1+deb.sury.org+1 [752 kB]
Del php-mbstring 2:8.3+94+ubuntu22.04.1+deb.sury.org+1 [7,238 B]
Del php8.3-intl 8.3.1-1+ubuntu22.04.1+deb.sury.org+1 [162 kB]
Del php8.2-mysql 8.2.14-1+ubuntu22.04.1+deb.sury.org+1 [131 kB]
Del thunderbird-gnome-support 1:115.6.0+build2-0ubuntu0.22.04.1 [8,622 B]
Del php-common 2:94+ubuntu22.04.1+deb.sury.org+1 [16.7 kB]
Del php8.2-zip 8.2.14-1+ubuntu22.04.1+deb.sury.org+1 [29.5 kB]
Del php8.3-xml 8.3.1-1+ubuntu22.04.1+deb.sury.org+1 [128 kB]
Del google-earth-pro-stable 7.3.6.9750-r0 [57.7 MB]
Del php8.3-mbstring 8.3.1-1+ubuntu22.04.1+deb.sury.org+1 [539 kB]
Del systemd-hwe-hwdb 249.11.5 [3,228 B]
Del thunderbird 1:115.6.0+build2-0ubuntu0.22.04.1 [67.3 MB]
Del php8.2-fpm 8.2.14-1+ubuntu22.04.1+deb.sury.org+1 [1,894 kB]
Del libmm-glib0 1.20.0-1~ubuntu22.04.3 [263 kB]
Del tzdata 2023d-0ubuntu0.22.04 [351 kB]
Del php8.2-curl 8.2.14-1+ubuntu22.04.1+deb.sury.org+1 [40.3 kB]
Del php-xml 2:8.3+94+ubuntu22.04.1+deb.sury.org+1 [7,252 B]
Del thunderbird-locale-en 1:115.6.0+build2-0ubuntu0.22.04.1 [980 kB]
Del modemmanager 1.20.0-1~ubuntu22.04.3 [1,094 kB]
$ sudo php -v
PHP 8.2.14 (cli) (built: Dec 21 2023 20:19:50) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.14, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.14, Copyright (c), by Zend Technologies

So that did not work. So I tried:

$ sudo apt-get purge php8.2*
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'php8.2-xdebug' for glob 'php8.2*'
Note, selecting 'php8.2-msgpack' for glob 'php8.2*'
Note, selecting 'php8.2-gmagick' for glob 'php8.2*'
Note, selecting 'php8.2-xmlwriter' for glob 'php8.2*'
Note, selecting 'php8.2-mysql' for glob 'php8.2*'
Note, selecting 'php8.2-pdo-pgsql' for glob 'php8.2*'
Note, selecting 'php8.2-enchant' for glob 'php8.2*'
Note, selecting 'php8.2-pspell' for glob 'php8.2*'
Note, selecting 'php8.2-shmop' for glob 'php8.2*'
Note, selecting 'php8.2-maxminddb' for glob 'php8.2*'
Note, selecting 'php8.2-sass' for glob 'php8.2*'
Note, selecting 'php8.2-simplexml' for glob 'php8.2*'
Note, selecting 'php8.2-calendar' for glob 'php8.2*'
Note, selecting 'php8.2-pdo-sqlite' for glob 'php8.2*'
Note, selecting 'php8.2-smbclient' for glob 'php8.2*'
Note, selecting 'php8.2-interbase' for glob 'php8.2*'
Note, selecting 'php8.2-pinba' for glob 'php8.2*'
Note, selecting 'php8.2-snmp' for glob 'php8.2*'
Note, selecting 'php8.2-soap' for glob 'php8.2*'
Note, selecting 'php8.2-mailparse' for glob 'php8.2*'
Note, selecting 'php8.2-solr' for glob 'php8.2*'
Note, selecting 'php8.2-http' for glob 'php8.2*'
Note, selecting 'php8.2-yaml' for glob 'php8.2*'
Note, selecting 'php8.2-ssh2' for glob 'php8.2*'
Note, selecting 'php8.2-pdo-mysql' for glob 'php8.2*'
Note, selecting 'php8.2-uploadprogress' for glob 'php8.2*'
Note, selecting 'php8.2' for glob 'php8.2*'
Note, selecting 'php8.2-memcache' for glob 'php8.2*'
Note, selecting 'php8.2-mbstring' for glob 'php8.2*'
Note, selecting 'php8.2-stomp' for glob 'php8.2*'
Note, selecting 'php8.2-curl' for glob 'php8.2*'
Note, selecting 'php8.2-posix' for glob 'php8.2*'
Note, selecting 'php8.2-bcmath' for glob 'php8.2*'
Note, selecting 'php8.2-fileinfo' for glob 'php8.2*'
Note, selecting 'php8.2-tidy' for glob 'php8.2*'
Note, selecting 'php8.2-opcache' for glob 'php8.2*'
Note, selecting 'php8.2-imap' for glob 'php8.2*'
Note, selecting 'php8.2-imagick' for glob 'php8.2*'
Note, selecting 'php8.2-intl' for glob 'php8.2*'
Note, selecting 'php8.2-libvirt-php' for glob 'php8.2*'
Note, selecting 'php8.2-readline' for glob 'php8.2*'
Note, selecting 'php8.2-odbc' for glob 'php8.2*'
Note, selecting 'php8.2-memcached' for glob 'php8.2*'
Note, selecting 'php8.2-igbinary' for glob 'php8.2*'
Note, selecting 'php8.2-mongodb' for glob 'php8.2*'
Note, selecting 'php8.2-redis' for glob 'php8.2*'
Note, selecting 'php8.2-facedetect' for glob 'php8.2*'
Note, selecting 'php8.2-gettext' for glob 'php8.2*'
Note, selecting 'php8.2-uopz' for glob 'php8.2*'
Note, selecting 'php8.2-json' for glob 'php8.2*'
Note, selecting 'php8.2-xmlreader' for glob 'php8.2*'
Note, selecting 'php8.2-pcov' for glob 'php8.2*'
Note, selecting 'php8.2-uuid' for glob 'php8.2*'
Note, selecting 'php8.2-phar' for glob 'php8.2*'
Note, selecting 'php8.2-pdo-odbc' for glob 'php8.2*'
Note, selecting 'php8.2-xmlrpc' for glob 'php8.2*'
Note, selecting 'php8.2-gearman' for glob 'php8.2*'
Note, selecting 'php8.2-sockets' for glob 'php8.2*'
Note, selecting 'php8.2-exif' for glob 'php8.2*'
Note, selecting 'php8.2-tideways' for glob 'php8.2*'
Note, selecting 'php8.2-sysvmsg' for glob 'php8.2*'
Note, selecting 'php8.2-pdo-dblib' for glob 'php8.2*'
Note, selecting 'php8.2-oauth' for glob 'php8.2*'
Note, selecting 'php8.2-phpdbg' for glob 'php8.2*'
Note, selecting 'php8.2-ds' for glob 'php8.2*'
Note, selecting 'php8.2-gd' for glob 'php8.2*'
Note, selecting 'php8.2-mysqli' for glob 'php8.2*'
Note, selecting 'php8.2-ps' for glob 'php8.2*'
Note, selecting 'php8.2-sysvsem' for glob 'php8.2*'
Note, selecting 'php8.2-sysvshm' for glob 'php8.2*'
Note, selecting 'php8.2-sqlite3' for glob 'php8.2*'
Note, selecting 'php8.2-raphf' for glob 'php8.2*'
Note, selecting 'php8.2-ast' for glob 'php8.2*'
Note, selecting 'php8.2-bz2' for glob 'php8.2*'
Note, selecting 'php8.2-cgi' for glob 'php8.2*'
Note, selecting 'php8.2-cli' for glob 'php8.2*'
Note, selecting 'php8.2-dba' for glob 'php8.2*'
Note, selecting 'php8.2-dev' for glob 'php8.2*'
Note, selecting 'php8.2-dom' for glob 'php8.2*'
Note, selecting 'php8.2-ffi' for glob 'php8.2*'
Note, selecting 'php8.2-fpm' for glob 'php8.2*'
Note, selecting 'php8.2-ftp' for glob 'php8.2*'
Note, selecting 'php8.2-common' for glob 'php8.2*'
Note, selecting 'php8.2-gmp' for glob 'php8.2*'
Note, selecting 'php8.2-sybase' for glob 'php8.2*'
Note, selecting 'php8.2-ctype' for glob 'php8.2*'
Note, selecting 'php8.2-pgsql' for glob 'php8.2*'
Note, selecting 'php8.2-gnupg' for glob 'php8.2*'
Note, selecting 'php8.2-ldap' for glob 'php8.2*'
Note, selecting 'php8.2-tokenizer' for glob 'php8.2*'
Note, selecting 'php8.2-iconv' for glob 'php8.2*'
Note, selecting 'php8.2-pdo-firebird' for glob 'php8.2*'
Note, selecting 'php8.2-mysqlnd' for glob 'php8.2*'
Note, selecting 'php8.2-pdo' for glob 'php8.2*'
Note, selecting 'php8.2-psr' for glob 'php8.2*'
Note, selecting 'php8.2-amqp' for glob 'php8.2*'
Note, selecting 'php8.2-rrd' for glob 'php8.2*'
Note, selecting 'php8.2-apcu' for glob 'php8.2*'
Note, selecting 'php8.2-mcrypt' for glob 'php8.2*'
Note, selecting 'php8.2-xml' for glob 'php8.2*'
Note, selecting 'php8.2-xsl' for glob 'php8.2*'
Note, selecting 'php8.2-yac' for glob 'php8.2*'
Note, selecting 'php8.2-zip' for glob 'php8.2*'
Note, selecting 'php8.2-zmq' for glob 'php8.2*'
Note, selecting 'php8.2-common' instead of 'php8.2-calendar'
Note, selecting 'php8.2-common' instead of 'php8.2-ctype'
Note, selecting 'php8.2-common' instead of 'php8.2-exif'
Note, selecting 'php8.2-common' instead of 'php8.2-ffi'
Note, selecting 'php8.2-common' instead of 'php8.2-fileinfo'
Note, selecting 'php8.2-common' instead of 'php8.2-ftp'
Note, selecting 'php8.2-common' instead of 'php8.2-gettext'
Note, selecting 'php8.2-common' instead of 'php8.2-iconv'
Note, selecting 'php8.2-common' instead of 'php8.2-pdo'
Note, selecting 'php8.2-common' instead of 'php8.2-phar'
Note, selecting 'php8.2-common' instead of 'php8.2-posix'
Note, selecting 'php8.2-common' instead of 'php8.2-shmop'
Note, selecting 'php8.2-common' instead of 'php8.2-sockets'
Note, selecting 'php8.2-common' instead of 'php8.2-sysvmsg'
Note, selecting 'php8.2-common' instead of 'php8.2-sysvsem'
Note, selecting 'php8.2-common' instead of 'php8.2-sysvshm'
Note, selecting 'php8.2-common' instead of 'php8.2-tokenizer'
Note, selecting 'php8.2-mysql' instead of 'php8.2-mysqli'
Note, selecting 'php8.2-mysql' instead of 'php8.2-mysqlnd'
Note, selecting 'php8.2-mysql' instead of 'php8.2-pdo-mysql'
Note, selecting 'php8.2-odbc' instead of 'php8.2-pdo-odbc'
Note, selecting 'php8.2-pgsql' instead of 'php8.2-pdo-pgsql'
Note, selecting 'php8.2-sqlite3' instead of 'php8.2-pdo-sqlite'
Note, selecting 'php8.2-xml' instead of 'php8.2-dom'
Note, selecting 'php8.2-xml' instead of 'php8.2-simplexml'
Note, selecting 'php8.2-xml' instead of 'php8.2-xmlreader'
Note, selecting 'php8.2-xml' instead of 'php8.2-xmlwriter'
Note, selecting 'php8.2-interbase' instead of 'php8.2-pdo-firebird'
Note, selecting 'php8.2-sybase' instead of 'php8.2-pdo-dblib'
Package 'php8.2' is not installed, so not removed
Package 'php8.2-dev' is not installed, so not removed
Package 'php8.2-cgi' is not installed, so not removed
Package 'php8.2-gmp' is not installed, so not removed
Package 'php8.2-ldap' is not installed, so not removed
Package 'php8.2-odbc' is not installed, so not removed
Package 'php8.2-pgsql' is not installed, so not removed
Package 'php8.2-pspell' is not installed, so not removed
Package 'php8.2-snmp' is not installed, so not removed
Package 'php8.2-sqlite3' is not installed, so not removed
Package 'php8.2-tidy' is not installed, so not removed
Package 'php8.2-xsl' is not installed, so not removed
Package 'php8.2-amqp' is not installed, so not removed
Package 'php8.2-apcu' is not installed, so not removed
Package 'php8.2-ast' is not installed, so not removed
Package 'php8.2-bcmath' is not installed, so not removed
Package 'php8.2-bz2' is not installed, so not removed
Package 'php8.2-ds' is not installed, so not removed
Package 'php8.2-enchant' is not installed, so not removed
Package 'php8.2-facedetect' is not installed, so not removed
Package 'php8.2-gearman' is not installed, so not removed
Package 'php8.2-gmagick' is not installed, so not removed
Package 'php8.2-gnupg' is not installed, so not removed
Package 'php8.2-http' is not installed, so not removed
Package 'php8.2-igbinary' is not installed, so not removed
Package 'php8.2-imagick' is not installed, so not removed
Package 'php8.2-imap' is not installed, so not removed
Package 'php8.2-interbase' is not installed, so not removed
Package 'php8.2-mailparse' is not installed, so not removed
Package 'php8.2-maxminddb' is not installed, so not removed
Package 'php8.2-mcrypt' is not installed, so not removed
Package 'php8.2-memcache' is not installed, so not removed
Package 'php8.2-memcached' is not installed, so not removed
Package 'php8.2-mongodb' is not installed, so not removed
Package 'php8.2-msgpack' is not installed, so not removed
Package 'php8.2-oauth' is not installed, so not removed
Package 'php8.2-pcov' is not installed, so not removed
Package 'php8.2-phpdbg' is not installed, so not removed
Package 'php8.2-pinba' is not installed, so not removed
Package 'php8.2-ps' is not installed, so not removed
Package 'php8.2-psr' is not installed, so not removed
Package 'php8.2-raphf' is not installed, so not removed
Package 'php8.2-redis' is not installed, so not removed
Package 'php8.2-rrd' is not installed, so not removed
Package 'php8.2-sass' is not installed, so not removed
Package 'php8.2-smbclient' is not installed, so not removed
Package 'php8.2-soap' is not installed, so not removed
Package 'php8.2-solr' is not installed, so not removed
Package 'php8.2-ssh2' is not installed, so not removed
Package 'php8.2-stomp' is not installed, so not removed
Package 'php8.2-sybase' is not installed, so not removed
Package 'php8.2-tideways' is not installed, so not removed
Package 'php8.2-uopz' is not installed, so not removed
Package 'php8.2-uploadprogress' is not installed, so not removed
Package 'php8.2-uuid' is not installed, so not removed
Package 'php8.2-xdebug' is not installed, so not removed
Package 'php8.2-xmlrpc' is not installed, so not removed
Package 'php8.2-yac' is not installed, so not removed
Package 'php8.2-yaml' is not installed, so not removed
Package 'php8.2-zmq' is not installed, so not removed
Package 'php8.2-dba' is not installed, so not removed
Package 'php8.2-libvirt-php' is not installed, so not removed
The following package was automatically installed and is no longer required:
  libzip4
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  php8.2-cli* php8.2-common* php8.2-curl* php8.2-fpm* php8.2-gd* php8.2-intl*
  php8.2-mbstring* php8.2-mysql* php8.2-opcache* php8.2-readline* php8.2-xml*
  php8.2-zip*
0 upgraded, 0 newly installed, 12 to remove and 0 not upgraded.
After this operation, 23.9 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 313748 files and directories currently installed.)
Removing php8.2-fpm (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Conf php8.2-fpm disabled.
apache2_invoke prerm: Disable configuration php8.2-fpm
Removing php8.2-cli (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Removing php8.2-zip (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Removing php8.2-xml (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Removing php8.2-curl (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Removing php8.2-gd (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Removing php8.2-mbstring (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Removing php8.2-mysql (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Removing php8.2-opcache (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Removing php8.2-readline (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Removing php8.2-common (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Processing triggers for man-db (2.11.2-3) ...
(Reading database ... 313575 files and directories currently installed.)
Purging configuration files for php8.2-common (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
dpkg: warning: while removing php8.2-common, directory '/etc/php/8.2/mods-available' not empty so not removed
Purging configuration files for php8.2-mysql (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Purging configuration files for php8.2-zip (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Purging configuration files for php8.2-opcache (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Purging configuration files for php8.2-readline (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Purging configuration files for php8.2-mbstring (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Purging configuration files for php8.2-intl (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Purging configuration files for php8.2-fpm (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
apache2_invoke postrm: Purging state for php8.2-fpm
Purging configuration files for php8.2-curl (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Purging configuration files for php8.2-xml (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Purging configuration files for php8.2-gd (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
Purging configuration files for php8.2-cli (8.2.14-1+ubuntu22.04.1+deb.sury.org+1) ...
$ sudo php -v
sudo: php: command not found

So now I know there is no trace of PHP8.2 left on my system.

$ sudo apt install php8.2 php-cli php8.2-fpm php8.2-curl php8.2-xml php8.2-gd php8.2-intl php8.2-mysql php8.2-opcache php-8.2-readline php8.2-mbstring
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package php-8.2-readline
E: Couldn't find any package by glob 'php-8.2-readline'
$ sudo apt install php8.2 php-cli php8.2-fpm php8.2-curl php8.2-xml php8.2-gd php8.2-intl php8.2-mysql php8.2-opcache php8.2-mbstring
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  libzip4
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  php8.2-cli php8.2-common php8.2-readline
Suggested packages:
  php-pear
The following NEW packages will be installed:
  php-cli php8.2 php8.2-cli php8.2-common php8.2-curl php8.2-fpm php8.2-gd
  php8.2-intl php8.2-mbstring php8.2-mysql php8.2-opcache php8.2-readline
  php8.2-xml
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,827 kB of archives.
After this operation, 24.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu mantic/main amd64 php8.2-common amd64 8.2.10-2ubuntu1 [696 kB]
Get:2 http://archive.ubuntu.com/ubuntu mantic/main amd64 php8.2-opcache amd64 8.2.10-2ubuntu1 [370 kB]
Get:3 http://archive.ubuntu.com/ubuntu mantic/main amd64 php8.2-readline amd64 8.2.10-2ubuntu1 [13.5 kB]
Get:4 http://archive.ubuntu.com/ubuntu mantic/main amd64 php8.2-cli amd64 8.2.10-2ubuntu1 [1,872 kB]
Get:5 http://archive.ubuntu.com/ubuntu mantic/main amd64 php-cli all 2:8.2+93ubuntu1 [4,512 B]
Get:6 http://archive.ubuntu.com/ubuntu mantic/universe amd64 php8.2-fpm amd64 8.2.10-2ubuntu1 [1,878 kB]
Get:7 http://archive.ubuntu.com/ubuntu mantic/main amd64 php8.2 all 8.2.10-2ubuntu1 [9,166 B]
Get:8 http://archive.ubuntu.com/ubuntu mantic/main amd64 php8.2-curl amd64 8.2.10-2ubuntu1 [39.4 kB]
Get:9 http://archive.ubuntu.com/ubuntu mantic/main amd64 php8.2-gd amd64 8.2.10-2ubuntu1 [31.6 kB]
Get:10 http://archive.ubuntu.com/ubuntu mantic/universe amd64 php8.2-intl amd64 8.2.10-2ubuntu1 [155 kB]
Get:11 http://archive.ubuntu.com/ubuntu mantic/main amd64 php8.2-mbstring amd64 8.2.10-2ubuntu1 [509 kB]
Get:12 http://archive.ubuntu.com/ubuntu mantic/main amd64 php8.2-mysql amd64 8.2.10-2ubuntu1 [127 kB]
Get:13 http://archive.ubuntu.com/ubuntu mantic/main amd64 php8.2-xml amd64 8.2.10-2ubuntu1 [121 kB]
Fetched 5,827 kB in 3s (1,793 kB/s)
Selecting previously unselected package php8.2-common.
(Reading database ... 313566 files and directories currently installed.)
Preparing to unpack .../00-php8.2-common_8.2.10-2ubuntu1_amd64.deb ...
Unpacking php8.2-common (8.2.10-2ubuntu1) ...
Selecting previously unselected package php8.2-opcache.
Preparing to unpack .../01-php8.2-opcache_8.2.10-2ubuntu1_amd64.deb ...
Unpacking php8.2-opcache (8.2.10-2ubuntu1) ...
Selecting previously unselected package php8.2-readline.
Preparing to unpack .../02-php8.2-readline_8.2.10-2ubuntu1_amd64.deb ...
Unpacking php8.2-readline (8.2.10-2ubuntu1) ...
Selecting previously unselected package php8.2-cli.
Preparing to unpack .../03-php8.2-cli_8.2.10-2ubuntu1_amd64.deb ...
Unpacking php8.2-cli (8.2.10-2ubuntu1) ...
Selecting previously unselected package php-cli.
Preparing to unpack .../04-php-cli_2%3a8.2+93ubuntu1_all.deb ...
Unpacking php-cli (2:8.2+93ubuntu1) ...
Selecting previously unselected package php8.2-fpm.
Preparing to unpack .../05-php8.2-fpm_8.2.10-2ubuntu1_amd64.deb ...
Unpacking php8.2-fpm (8.2.10-2ubuntu1) ...
Selecting previously unselected package php8.2.
Preparing to unpack .../06-php8.2_8.2.10-2ubuntu1_all.deb ...
Unpacking php8.2 (8.2.10-2ubuntu1) ...
Selecting previously unselected package php8.2-curl.
Preparing to unpack .../07-php8.2-curl_8.2.10-2ubuntu1_amd64.deb ...
Unpacking php8.2-curl (8.2.10-2ubuntu1) ...
Selecting previously unselected package php8.2-gd.
Preparing to unpack .../08-php8.2-gd_8.2.10-2ubuntu1_amd64.deb ...
Unpacking php8.2-gd (8.2.10-2ubuntu1) ...
Selecting previously unselected package php8.2-intl.
Preparing to unpack .../09-php8.2-intl_8.2.10-2ubuntu1_amd64.deb ...
Unpacking php8.2-intl (8.2.10-2ubuntu1) ...
Selecting previously unselected package php8.2-mbstring.
Preparing to unpack .../10-php8.2-mbstring_8.2.10-2ubuntu1_amd64.deb ...
Unpacking php8.2-mbstring (8.2.10-2ubuntu1) ...
Selecting previously unselected package php8.2-mysql.
Preparing to unpack .../11-php8.2-mysql_8.2.10-2ubuntu1_amd64.deb ...
Unpacking php8.2-mysql (8.2.10-2ubuntu1) ...
Selecting previously unselected package php8.2-xml.
Preparing to unpack .../12-php8.2-xml_8.2.10-2ubuntu1_amd64.deb ...
Unpacking php8.2-xml (8.2.10-2ubuntu1) ...
Setting up php8.2-common (8.2.10-2ubuntu1) ...

Creating config file /etc/php/8.2/mods-available/calendar.ini with new version

Creating config file /etc/php/8.2/mods-available/ctype.ini with new version

Creating config file /etc/php/8.2/mods-available/exif.ini with new version

Creating config file /etc/php/8.2/mods-available/fileinfo.ini with new version

Creating config file /etc/php/8.2/mods-available/ffi.ini with new version

Creating config file /etc/php/8.2/mods-available/ftp.ini with new version

Creating config file /etc/php/8.2/mods-available/gettext.ini with new version

Creating config file /etc/php/8.2/mods-available/iconv.ini with new version

Creating config file /etc/php/8.2/mods-available/pdo.ini with new version

Creating config file /etc/php/8.2/mods-available/phar.ini with new version

Creating config file /etc/php/8.2/mods-available/posix.ini with new version

Creating config file /etc/php/8.2/mods-available/shmop.ini with new version

Creating config file /etc/php/8.2/mods-available/sockets.ini with new version

Creating config file /etc/php/8.2/mods-available/sysvmsg.ini with new version

Creating config file /etc/php/8.2/mods-available/sysvsem.ini with new version

Creating config file /etc/php/8.2/mods-available/sysvshm.ini with new version

Creating config file /etc/php/8.2/mods-available/tokenizer.ini with new version
Setting up php8.2-mysql (8.2.10-2ubuntu1) ...

Creating config file /etc/php/8.2/mods-available/mysqlnd.ini with new version

Creating config file /etc/php/8.2/mods-available/mysqli.ini with new version

Creating config file /etc/php/8.2/mods-available/pdo_mysql.ini with new version
Setting up php8.2-opcache (8.2.10-2ubuntu1) ...

Creating config file /etc/php/8.2/mods-available/opcache.ini with new version
Setting up php8.2-readline (8.2.10-2ubuntu1) ...

Creating config file /etc/php/8.2/mods-available/readline.ini with new version
Setting up php8.2-mbstring (8.2.10-2ubuntu1) ...

Creating config file /etc/php/8.2/mods-available/mbstring.ini with new version
Setting up php8.2-intl (8.2.10-2ubuntu1) ...

Creating config file /etc/php/8.2/mods-available/intl.ini with new version
Setting up php8.2-curl (8.2.10-2ubuntu1) ...

Creating config file /etc/php/8.2/mods-available/curl.ini with new version
Setting up php8.2-xml (8.2.10-2ubuntu1) ...

Creating config file /etc/php/8.2/mods-available/dom.ini with new version

Creating config file /etc/php/8.2/mods-available/simplexml.ini with new version

Creating config file /etc/php/8.2/mods-available/xml.ini with new version

Creating config file /etc/php/8.2/mods-available/xmlreader.ini with new version

Creating config file /etc/php/8.2/mods-available/xmlwriter.ini with new version

Creating config file /etc/php/8.2/mods-available/xsl.ini with new version
Setting up php8.2-gd (8.2.10-2ubuntu1) ...

Creating config file /etc/php/8.2/mods-available/gd.ini with new version
Setting up php8.2-cli (8.2.10-2ubuntu1) ...
update-alternatives: using /usr/bin/php8.2 to provide /usr/bin/php (php) in auto
 mode
update-alternatives: using /usr/bin/phar8.2 to provide /usr/bin/phar (phar) in a
uto mode
update-alternatives: using /usr/bin/phar.phar8.2 to provide /usr/bin/phar.phar (
phar.phar) in auto mode

Creating config file /etc/php/8.2/cli/php.ini with new version
Setting up php8.2-fpm (8.2.10-2ubuntu1) ...

Creating config file /etc/php/8.2/fpm/php.ini with new version
NOTICE: Not enabling PHP 8.2 FPM by default.
NOTICE: To enable PHP 8.2 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.2-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Created symlink /etc/systemd/system/multi-user.target.wants/php8.2-fpm.service →
 /lib/systemd/system/php8.2-fpm.service.
Setting up php8.2 (8.2.10-2ubuntu1) ...
Setting up php-cli (2:8.2+93ubuntu1) ...
update-alternatives: using /usr/bin/php.default to provide /usr/bin/php (php) in
 auto mode
update-alternatives: using /usr/bin/phar.default to provide /usr/bin/phar (phar)
 in auto mode
update-alternatives: using /usr/bin/phar.phar.default to provide /usr/bin/phar.p
har (phar.phar) in auto mode
Processing triggers for man-db (2.11.2-3) ...
Processing triggers for php8.2-cli (8.2.10-2ubuntu1) ...
Processing triggers for php8.2-fpm (8.2.10-2ubuntu1) ...
NOTICE: Not enabling PHP 8.2 FPM by default.
NOTICE: To enable PHP 8.2 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.2-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
$ sudo a2enmod proxy_fcgi setenvif
Considering dependency proxy for proxy_fcgi:
Module proxy already enabled
Module proxy_fcgi already enabled
Module setenvif already enabled
$ sudo a2enconf php8.2-fpm
Enabling conf php8.2-fpm.
To activate the new configuration, you need to run:
  systemctl reload apache2
$ systemctl reload apache2
$ sudo vim /etc/php/8.2/fpm/php.ini
$ sudo systemctl restart php8.2-fpm.service.
Failed to restart php8.2-fpm.service..service: Unit php8.2-fpm.service..service not found.
$ sudo restart php8.2-fpm
sudo: restart: command not found
$ sudo service php8.2-fpm restart

FINALLY!!!

Thank you to everyone who responded. Please forgive my ignorance.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

The main cause of your problem was the fact, that you had installed some of the php packages from a PPA.

The steps that you took for correcting were good, but it may have lead to the situation, that too many packages have been removed.

You should check whether you want some of the following ones (re-)installed:
base-files
google-earth-pro-stable
libmm-glib0
modemmanager
systemd-hwe-hwdb
thunderbird
thunderbird-gnome-support
thunderbird-locale-en
thunderbird-locale-en-gb
thunderbird-locale-en-us
tzdata

(for most of them there should not be the need on a server system anyhow).

Revision history for this message
James Cobban (7-webmaster) said :
#6

Thank you for your advice.

On 2024-01-29 02:35, Manfred Hampl wrote:
> Your question #709134 on ubiquity in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/ubiquity/+question/709134
>
> Manfred Hampl posted a new comment:
> The main cause of your problem was the fact, that you had installed some
> of the php packages from a PPA.
>
> The steps that you took for correcting were good, but it may have lead
> to the situation, that too many packages have been removed.
>
> You should check whether you want some of the following ones (re-)installed:
> base-files
> google-earth-pro-stable
> libmm-glib0
> modemmanager
> systemd-hwe-hwdb
> thunderbird
> thunderbird-gnome-support
> thunderbird-locale-en
> thunderbird-locale-en-gb
> thunderbird-locale-en-us
> tzdata
>
> (for most of them there should not be the need on a server system
> anyhow).
>
--
James Cobban
911-500 Springbank Dr
London, ON, Canada
N6J 4G6
mailto: <email address hidden>
+1-226-504-7603