i am having Debian 11, and i am trying to install some php libs like mysql:
command: sudo apt install php-mysql
result:
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-mysql : Depends: php7.4-common (= 7.4.21-1+deb11u1) but 7.4.25-1+deb11u1 is to be installed
E: Unable to correct problems, you have held broken packages.
update
the result of apt show php-mysql
Package: php-mysql
Version: 2:7.4+76
Priority: optional
Section: php
Source: php-defaults (76)
Maintainer: Debian PHP Maintainers <team+pkg-php@tracker.debian.org>
Installed-Size: 13.3 kB
Depends: php-common, php7.4-mysql
Download-Size: 6,360 B
APT-Sources: http://deb.debian.org/debian bullseye/main amd64 Packages
Description: MySQL module for PHP [default]
This package provides a MySQL module for PHP.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
.
This package is a dependency package, which depends on Debian's default
PHP version (currently 7.4).
and also
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.list
:
deb https://packages.sury.org/php/ bullseye main
result of sudo apt update
Hit:1 http:
Hit:2 http:
Hit:3 https:
Get:4 https:
Get:5 https:
Hit:6 http:
Get:7 https:
Ign:8 http:
Err:4 https:
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743
Hit:9 http:
Err:10 http:
404 Not Found [IP: 199.232.82.132 80]
Reading package lists... Done
W: GPG error: https:
E: The repository 'https:
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http:
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
the result of cat /etc/apt/sources.list
:
deb http:
deb-src http:
deb http:
deb-src http:
deb http:
deb-src http:
deb https:
deb https: