如何在Debian Buster上安装libpcre2-8-0的依赖项(>= 10.38)?

huangapple go评论96阅读模式
英文:

How can I install dependencies for libpcre2-8-0 (>= 10.38) on debian buster?

问题

我想在我的Debian Buster机器上安装php8.2软件包,但在尝试安装时出现以下错误消息:

# apt install php8.2-fpm
正在读取软件包列表... 完成
...
以下信息可能有助于解决问题:

以下软件包有未满足的依赖关系:
 php8.2-fpm : 依赖: php8.2-cli 但无法安装
              依赖: libpcre2-8-0 (>= 10.38) 但将安装 10.32-5+deb10u1
              依赖: libsodium23 (>= 1.0.18) 但将安装 1.0.17-1
E: 无法纠正问题,您有损坏的软件包。

我正在使用仓库:https://packages.sury.org/php buster InRelease

但似乎libpcre2-8-0软件包版本大于10.38不在Buster仓库中。

那么,在这里解决依赖关系问题的最佳方法是什么?我是否需要使用sid仓库?(我不知道是否会在这个仓库中遇到问题)

谢谢。

英文:

I want to install php8.2 packages on my debian buster machine, but when I try to install I got following error message:

# apt install php8.2-fpm
Reading package lists... Done
...
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php8.2-fpm : Depends: php8.2-cli but it is not going to be installed
              Depends: libpcre2-8-0 (>= 10.38) but 10.32-5+deb10u1 is to be installed
              Depends: libsodium23 (>= 1.0.18) but 1.0.17-1 is to be installed
E: Unable to correct problems, you have held broken packages.

I'm using the repository: https://packages.sury.org/php buster InRelease

But it seems the libpcre2-8-0 package > v.10.38 is not in the repos by buster.

So what is here best way to resolve the dependencies break? Have I to use sid repositories? (I don't know if I got some problems with this repo)

Thanks

答案1

得分: 0

已经解决了:

只需检查libpcre2-8-0包的版本

apt policy libpcre2-8-0

然后手动安装该包,但不知道为什么只安装php8.x包不起作用。

apt install libpcre2-8-0=10.40-1+0~20220713.16+debian10~1.gbpb6cec5
#与apt policy libzip4和libsodium相同
apt install libzip4=1.7.3-1+0~20210114.10+debian10~1.gbp4c125d
apt install libsodium23=1.0.18-1+0~20191009.1+debian10~1.gbpb6823f
#安装php
apt install php8.2 php8.2-cli php8.2-{bz2,curl,mbstring,intl}
apt install php8.2-fpm
英文:

Got it to work with:

Just check the version of libpcre2-8-0 package

apt poilicy libpcre2-8-0

and then install package manually, but dont know why this isn't worked by just installing the php8.x packages automatically.

apt install libpcre2-8-0=10.40-1+0~20220713.16+debian10~1.gbpb6cec5
#same with apt policy libzip4 and libsodium
apt install libzip4=1.7.3-1+0~20210114.10+debian10~1.gbp4c125d
apt install libsodium23=1.0.18-1+0~20191009.1+debian10~1.gbpb6823f
# install php
apt install php8.2 php8.2-cli php8.2-{bz2,curl,mbstring,intl}
apt install php8.2-fpm

huangapple
  • 本文由 发表于 2023年6月22日 01:30:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76525831.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定