Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install php8.0-dev package #1684

Closed
1 task done
loxK opened this issue Nov 20, 2021 · 5 comments
Closed
1 task done

Cannot install php8.0-dev package #1684

loxK opened this issue Nov 20, 2021 · 5 comments

Comments

@loxK
Copy link

loxK commented Nov 20, 2021

Frequently asked questions

Describe the bug

I wanted to compile the php-pdlib as this extension is no more available in your PHP 8.0 builds.

On Ubuntu 20.04 I tried to install php8.0-dev and get this error:

The following packages have unmet dependencies:
 php8.0-dev : Depends: libssl-dev but it is not going to be installed

If I try to install libssl-dev I get this error:

The following packages have unmet dependencies:
 libssl-dev : Depends: libssl1.1 (= 1.1.1f-1ubuntu2.9) but 1.1.1g-1+ubuntu20.04.1+deb.sury.org+1 is to be installed

Distribution (please complete the following information):

  • OS: Ubuntu 20.04.3 LTS
  • Architecture: amd64
  • Repository: Ubuntu PPA

Package(s) (please complete the following information):

# apt-cache policy php8.0-dev
php8.0-dev:
  Installed: (none)
  Candidate: 8.0.13-1+ubuntu20.04.1+deb.sury.org+1
  Version table:
     8.0.13-1+ubuntu20.04.1+deb.sury.org+1 500
        500 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 Packages
# apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 Packages
     release v=20.04,o=LP-PPA-ondrej-php,a=focal,n=focal,l=***** The main PPA for supported PHP versions with many PECL extensions *****,c=main,b=amd64
     origin ppa.launchpad.net
 500 http://ppa.launchpad.net/ondrej/apache2/ubuntu focal/main amd64 Packages
     release v=20.04,o=LP-PPA-ondrej-apache2,a=focal,n=focal,l=PPA for Apache 2.x,c=main,b=amd64
     origin ppa.launchpad.net
1000 http://downloads.mariadb.com/Tools/ubuntu focal/main amd64 Packages
     release o=MariaDB Enterprise Tools,n=focal,l=MariaDB,c=main,b=amd64
     origin downloads.mariadb.com
 500 https://dlm.mariadb.com/repo/maxscale/latest/apt focal/main amd64 Packages
     release o=MariaDB Enterprise,n=focal,l=MariaDB Enterprise,c=main,b=amd64
     origin dlm.mariadb.com
 500 https://dlm.mariadb.com/repo/mariadb-server/10.5/repo/ubuntu focal/main/debug arm64 Packages
     release o=MariaDB,n=focal,l=MariaDB,c=main/debug,b=arm64
     origin dlm.mariadb.com
 500 https://dlm.mariadb.com/repo/mariadb-server/10.5/repo/ubuntu focal/main/debug amd64 Packages
     release o=MariaDB,n=focal,l=MariaDB,c=main/debug,b=amd64
     origin dlm.mariadb.com
 500 https://dlm.mariadb.com/repo/mariadb-server/10.5/repo/ubuntu focal/main arm64 Packages
     release o=MariaDB,n=focal,l=MariaDB,c=main,b=arm64
     origin dlm.mariadb.com
 500 https://dlm.mariadb.com/repo/mariadb-server/10.5/repo/ubuntu focal/main amd64 Packages
     release o=MariaDB,n=focal,l=MariaDB,c=main,b=amd64
     origin dlm.mariadb.com
 500 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages
     release o=elastic,a=stable,n=stable,l=. stable,c=main,b=amd64
     origin artifacts.elastic.co
 500 https://repo.delellis.com.ar focal/focal amd64 Packages
     release o=repo.delellis.com.ar,n=focal,l=repo.delellis.com.ar,c=focal,b=amd64
     origin repo.delellis.com.ar
 500 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-security,n=focal,l=Ubuntu,c=multiverse,b=amd64
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-security,n=focal,l=Ubuntu,c=universe,b=amd64
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-security,n=focal,l=Ubuntu,c=restricted,b=amd64
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-security,n=focal,l=Ubuntu,c=main,b=amd64
     origin security.ubuntu.com
 100 http://nc.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-backports,n=focal,l=Ubuntu,c=universe,b=amd64
     origin nc.archive.ubuntu.com
 100 http://nc.archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-backports,n=focal,l=Ubuntu,c=main,b=amd64
     origin nc.archive.ubuntu.com
 500 http://nc.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-updates,n=focal,l=Ubuntu,c=multiverse,b=amd64
     origin nc.archive.ubuntu.com
 500 http://nc.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-updates,n=focal,l=Ubuntu,c=universe,b=amd64
     origin nc.archive.ubuntu.com
 500 http://nc.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-updates,n=focal,l=Ubuntu,c=restricted,b=amd64
     origin nc.archive.ubuntu.com
 500 http://nc.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-updates,n=focal,l=Ubuntu,c=main,b=amd64
     origin nc.archive.ubuntu.com
 500 http://nc.archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages
     release v=20.04,o=Ubuntu,a=focal,n=focal,l=Ubuntu,c=multiverse,b=amd64
     origin nc.archive.ubuntu.com
 500 http://nc.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
     release v=20.04,o=Ubuntu,a=focal,n=focal,l=Ubuntu,c=universe,b=amd64
     origin nc.archive.ubuntu.com
 500 http://nc.archive.ubuntu.com/ubuntu focal/restricted amd64 Packages
     release v=20.04,o=Ubuntu,a=focal,n=focal,l=Ubuntu,c=restricted,b=amd64
     origin nc.archive.ubuntu.com
 500 http://nc.archive.ubuntu.com/ubuntu focal/main amd64 Packages
     release v=20.04,o=Ubuntu,a=focal,n=focal,l=Ubuntu,c=main,b=amd64
     origin nc.archive.ubuntu.com
Pinned packages:
@oerdnj
Copy link
Owner

oerdnj commented Nov 20, 2021

Where does the libssl-dev come from?

What does apt-cache policy libssl-dev say?

@oerdnj
Copy link
Owner

oerdnj commented Nov 20, 2021

It's this: #1563 but you must have done something weird to your system that the package didn't get downgraded and there's stale dev package.

@loxK
Copy link
Author

loxK commented Nov 20, 2021

# apt-cache policy libssl-dev
libssl-dev:
  Installed: (none)
  Candidate: 1.1.1f-1ubuntu2.9
  Version table:
     1.1.1f-1ubuntu2.9 500
        500 http://nc.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
     1.1.1f-1ubuntu2.8 500
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
     1.1.1f-1ubuntu2 500
        500 http://nc.archive.ubuntu.com/ubuntu focal/main amd64 Packages
# apt-cache policy libssl1.1
libssl1.1:
  Installed: 1.1.1g-1+ubuntu20.04.1+deb.sury.org+1
  Candidate: 1.1.1g-1+ubuntu20.04.1+deb.sury.org+1
  Version table:
 *** 1.1.1g-1+ubuntu20.04.1+deb.sury.org+1 100
        100 /var/lib/dpkg/status
     1.1.1f-1ubuntu2.9 500
        500 http://nc.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
     1.1.1f-1ubuntu2.8 500
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
     1.1.1f-1ubuntu2 500
        500 http://nc.archive.ubuntu.com/ubuntu focal/main amd64 Packages

@oerdnj
Copy link
Owner

oerdnj commented Nov 20, 2021

So, you either didn't upgrade in really long time or willfully ignored the downgrade to the distro provided libssl1.1 package. Well, now you are on your own.

@oerdnj oerdnj closed this as completed Nov 20, 2021
@loxK
Copy link
Author

loxK commented Nov 20, 2021

I don't know what I could have done wrong. Anyhow, this downgraded to distribution's version and fixed it:

apt install openssl=1.1.1f-1ubuntu2.9 libssl1.1=1.1.1f-1ubuntu2.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants