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

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

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

问题

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

  1. # apt install php8.2-fpm
  2. 正在读取软件包列表... 完成
  3. ...
  4. 以下信息可能有助于解决问题:
  5. 以下软件包有未满足的依赖关系:
  6. php8.2-fpm : 依赖: php8.2-cli 但无法安装
  7. 依赖: libpcre2-8-0 (>= 10.38) 但将安装 10.32-5+deb10u1
  8. 依赖: libsodium23 (>= 1.0.18) 但将安装 1.0.17-1
  9. 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:

  1. # apt install php8.2-fpm
  2. Reading package lists... Done
  3. ...
  4. The following information may help to resolve the situation:
  5. The following packages have unmet dependencies:
  6. php8.2-fpm : Depends: php8.2-cli but it is not going to be installed
  7. Depends: libpcre2-8-0 (>= 10.38) but 10.32-5+deb10u1 is to be installed
  8. Depends: libsodium23 (>= 1.0.18) but 1.0.17-1 is to be installed
  9. 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包的版本

  1. apt policy libpcre2-8-0

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

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

Got it to work with:

Just check the version of libpcre2-8-0 package

  1. 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.

  1. apt install libpcre2-8-0=10.40-1+0~20220713.16+debian10~1.gbpb6cec5
  2. #same with apt policy libzip4 and libsodium
  3. apt install libzip4=1.7.3-1+0~20210114.10+debian10~1.gbp4c125d
  4. apt install libsodium23=1.0.18-1+0~20191009.1+debian10~1.gbpb6823f
  5. # install php
  6. apt install php8.2 php8.2-cli php8.2-{bz2,curl,mbstring,intl}
  7. 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:

确定