am not able to install php-intl ( PHP 8.1.7-1ubuntu3) on kinetic (Ubuntu 22.10)on kinetic

Asked by davidtolo

If I try to install php-intl ( PHP 8.1.7-1ubuntu3) on kinetic (Ubuntu 22.10)on kinetic

root@dpnbackup:/# apt-get install php-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 to resolve the situation:

The following packages have unmet dependencies:
 php7.4-intl : Depends: php7.4-common (= 7.4.3-4ubuntu2.15) but it is not installable
E: Unable to correct problems, you have held broken packages.
root@dpnbackup:/#

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu php8.1 Edit question
Assignee:
No assignee Edit question
Solved by:
davidtolo
Solved:
Last query:
Last reply:
Revision history for this message
davidtolo (david-tolo) said :
#1

I tried adding the launchpad ppa and it throws an error message.

Ign:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu kinetic InRelease
Ign:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu kinetic InRelease
Ign:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu kinetic InRelease
Err:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu kinetic InRelease
  503 Service Unavailable [IP: 185.125.190.52 443]
Reading package lists... Done
W: Failed to fetch https://ppa.launchpadcontent.net/ondrej/php/ubuntu/dists/kinetic/InRelease 503 Service Unavailable [IP: 185.125.190.52 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.

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

For diagnostic purposes, what is the output of the commands

uname -a
lsb_release -crid
apt policy php-intl

Revision history for this message
davidtolo (david-tolo) said :
#4

/home/dtolo# uname -a
Linux dpnbackup 5.19.0-21-generic #21-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 12 18:33:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

 lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 22.10
Release: 22.10
Codename: kinetic

apt policy php-intl
php-intl:
  Installed: (none)
  Candidate: 2:7.4+75
  Version table:
     2:7.4+75 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages

Revision history for this message
davidtolo (david-tolo) said :
#5

I also need:

====================================================================================
 apt policy php-fpm
php-fpm:
  Installed: (none)
  Candidate: 2:7.4+75
  Version table:
     2:7.4+75 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages

root@dpnbackup:/home/dtolo# apt policy php-json
php-json:
  Installed: (none)
  Candidate: 2:7.4+75
  Version table:
     2:7.4+75 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages

root@dpnbackup:/home/dtolo# apt policy php-mbstring
php-mbstring:
  Installed: (none)
  Candidate: 2:7.4+75
  Version table:
     2:7.4+75 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages

/home/dtolo# apt policy php-xmlrpc
php-xmlrpc:
  Installed: (none)
  Candidate: 2:7.4+75
  Version table:
     2:7.4+75 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages

apt policy php-memcache
php-memcache:
  Installed: (none)
  Candidate: 3.0.9~20170802.e702b5f-4build1
  Version table:
     3.0.9~20170802.e702b5f-4build1 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages

 apt policy php-imap
php-imap:
  Installed: (none)
  Candidate: 2:7.4+75
  Version table:
     2:7.4+75 500
500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages

===========================================================================

My Sources are:
cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse

deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner

Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#6

Your sources.list file and the Ubuntu release that you are running do not fit together.

Edit your sources.list file and change all occurrences of "focal" to "kinetic"
and disable the canonical/partner repository, it does not exist for kinetic.

Then run
sudo apt update
sudo apt full-upgrade
to install all available updates
and finally try installing php-intl.

Revision history for this message
davidtolo (david-tolo) said :
#7

Thank you! You may close the ticket