I can't install php 8.1

Hi, I have this problem:

#cat /etc/issue
Ubuntu 20.04.6 LTS \n \l

Repository List:

Hit:1 http://ubuntu.repos.clouding.io focal InRelease
Hit:2 http://ubuntu.repos.clouding.io focal-security InRelease
Hit:3 http://ubuntu.repos.clouding.io focal-updates InRelease
Hit:4 Index of /ondrej/apache2/ubuntu focal InRelease
Hit:5 Index of /ondrej/php/ubuntu focal InRelease
Get:6 https://dlm.mariadb.com/repo/mariadb-server/10.11/repo/ubuntu focal InRelease [7,767 B]
Hit:7 https://apt.hestiacp.com focal InRelease
Hit:8 Index of /packages/mainline/ubuntu/ focal InRelease
Hit:9 Index of /imunify360/ubuntu/20.04/ focal InRelease
Get:10 Index of /ubuntu/20.04/slot-1/ focal InRelease [1,648 B]
Hit:11 Index of /ubuntu/20.04/slot-2/ focal InRelease
Hit:12 Index of /ubuntu/20.04/slot-3/ focal InRelease
Hit:13 Zabbix Official Repository focal InRelease
Hit:14 Index of /ubuntu/20.04/slot-4/ focal InRelease
Hit:15 Index of /ubuntu/20.04/slot-5/ focal InRelease
Hit:16 Index of /ubuntu/20.04/slot-6/ focal InRelease
Hit:17 Zabbix Official Repository focal InRelease
Hit:18 Index of /ubuntu/20.04/slot-7/ focal InRelease
Hit:19 Index of /ubuntu/20.04/slot-8/ focal InRelease
Fetched 9,415 B in 2s (5,068 B/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
146 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
N: Skipping acquire of configured file ‘main/binary-i386/Packages’ as repository ‘Zabbix Official Repository focal InRelease’ doesn’t support architecture ‘i386’

Then:

#apt update
#apt-cache search php8.1 → none results

Can you help me?

More info:

#cat /etc/apt/sources.list.d/ondrej-ubuntu-php-focal.list 
deb http://ppa.launchpad.net/ondrej/php/ubuntu focal main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu focal main

Hi @hansjj

Try this:

rm -rf /var/lib/apt/lists/*
apt clean
apt update
apt-cache search php8.1

Thanks @sahsanu!

But, didn’t work. I think that packages are missing in my ubuntu (this is a old version of ubuntu today…):

Another option is upgrade ubuntu…buff… :slight_smile:

Are you sure that apt update doesn’t show any errors?

Also, please show the output of this command so we can see which versions you’re using:

curl -fsSLm15 https://7j.gg/hcpver | bash -s --

You could also try to remove and add again the repos for php and apache2:

mkdir -p /root/backup_sources/
cp -rf /etc/apt/sources.list.d/ /root/backup_sources/
add-apt-repository --remove -y ppa:ondrej/php
add-apt-repository --remove -y ppa:ondrej/apache2
add-apt-repository -y ppa:ondrej/php
add-apt-repository -y ppa:ondrej/apache2
apt update
apt-cache search php8.1