英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论