oerdnj / deb.sury.org

Public bugreports for anything ppa:ondrej/*
800 stars 26 forks source link

Unable to install PHP 7.4 on Ubuntu 24.04 #2123

Closed mlocati closed 4 days ago

mlocati commented 2 months ago

Frequently asked questions

Describe the bug

I tried installing php7.4-cli in an Ubuntu 24.04 docker image, to no avail.

To reproduce it, start a new docker container with:

docker run --rm -it ubuntu:24.04 bash

Then, inside the docker container, run:

# Update the system
$ apt-get update -q
$ apt-get upgrade -qy

# Install package providing add-apt-repository
$ apt-get install software-properties-common -qy

# Add ppa:ondrej/php
$ LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php

# This shouldn't be needed, but it doesn't hurt
$ apt-get update -q

# (Try to) install PHP 7.4
$ apt-get install php7.4-cli

The last command fails with this error message:

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:
 php-common : Breaks: php7.4-common but 1:7.4.33-10+ubuntu24.04.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.

And I really don't know how to proceed...

oerdnj commented 2 months ago

And I really don't know how to proceed...

Ubuntu 24.04 hasn’t been released yet…

mlocati commented 2 months ago

Ubuntu 24.04 hasn’t been released yet

It will be released tomorrow, and I can't find any "beta" note neither in /etc/os-release nor in the output of lsb_release -a

mlocati commented 2 months ago

@oerdnj I think you managed to fix this issue, right? Everything seems ok now...

oerdnj commented 4 days ago

The status is tracked here: #2127