错误:事务检查与 depsolve...php 依赖项

错误:事务检查与 depsolve...php 依赖项

我正在尝试运行sudo dnf system-upgrade download --refresh --releasever=30 --allowerasing(从 fedora 25)并遇到以下错误。

Running transaction check
Error: transaction check vs depsolve:
(php-composer(symfony/expression-language) >= 2.8 with php-composer(symfony/expression-language) < 5) is needed by php-phpmyadmin-motranslator-4.0-4.fc30.noarch
(gcc >= 9 with gcc < 10) is needed by annobin-8.71-4.fc30.x86_64
(php-composer(symfony/translation) >= 2.7.1 with php-composer(symfony/translation) < 4.0) is needed by php-twig-extensions-1.5.4-4.fc30.noarch
(php-composer(twig/twig) >= 1.27 with php-composer(twig/twig) < 3.0) is needed by php-twig-extensions-1.5.4-4.fc30.noarch
(php-composer(symfony/polyfill-mbstring) >= 1.3 with php-composer(symfony/polyfill-mbstring) < 2) is needed by php-twig2-2.12.5-1.fc30.noarch
(php-composer(composer/ca-bundle) >= 1.0 with php-composer(composer/ca-bundle) < 2) is needed by composer-1.10.6-1.fc30.noarch
(php-composer(composer/semver) >= 1.0 with php-composer(composer/semver) < 2) is needed by composer-1.10.6-1.fc30.noarch
(php-composer(composer/spdx-licenses) >= 1.2 with php-composer(composer/spdx-licenses) < 2) is needed by composer-1.10.6-1.fc30.noarch
(php-composer(composer/xdebug-handler) >= 1.1 with php-composer(composer/xdebug-handler) < 2) is needed by composer-1.10.6-1.fc30.noarch
(php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) is needed by composer-1.10.6-1.fc30.noarch
(php-composer(seld/jsonlint) >= 1.4 with php-composer(seld/jsonlint) < 2) is needed by composer-1.10.6-1.fc30.noarch
(php-composer(seld/phar-utils) >= 1.0 with php-composer(seld/phar-utils) < 2) is needed by composer-1.10.6-1.fc30.noarch
(php-composer(psr/log) >= 1.0.1 with php-composer(psr/log) < 2.0) is needed by php-symfony-console-2.8.52-1.fc30.noarch
(php-composer(psr/log) >= 1.0.1 with php-composer(psr/log) < 2.0) is needed by php-symfony-http-kernel-2.8.52-1.fc30.noarch
(php-composer(symfony/polyfill-php56) >= 1.8 with php-composer(symfony/polyfill-php56) < 2.0) is needed by php-symfony-http-kernel-2.8.52-1.fc30.noarch
(php-composer(psr/log) >= 1.0.1 with php-composer(psr/log) < 2.0) is needed by php-symfony-debug-2.8.52-1.fc30.noarch
(php-composer(symfony/polyfill-php54) >= 1.8 with php-composer(symfony/polyfill-php54) < 2.0) is needed by php-symfony-http-foundation-2.8.52-1.fc30.noarch
(php-composer(symfony/polyfill-php55) >= 1.8 with php-composer(symfony/polyfill-php55) < 2.0) is needed by php-symfony-http-foundation-2.8.52-1.fc30.noarch
(php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) is needed by php-composer-xdebug-handler-1.4.1-1.fc30.noarch
(php-composer(dasprid/enum) >= 1.0 with php-composer(dasprid/enum) < 2) is needed by php-bacon-qr-code2-2.0.0-1.fc30.noarch
(php-composer(paragonie/constant_time_encoding) >= 1.0 with php-composer(paragonie/constant_time_encoding) < 3) is needed by php-pragmarx-google2fa5-5.0.0-1.fc30.noarch
(php-composer(paragonie/random_compat) >= 2.0 with php-composer(paragonie/random_compat) < 3) is needed by php-pragmarx-google2fa5-5.0.0-1.fc30.noarch
(php-composer(google/recaptcha) >= 1.1 with php-composer(google/recaptcha) < 2) is needed by phpMyAdmin-4.9.5-1.fc30.noarch
(php-composer(phpmyadmin/motranslator) >= 4.0 with php-composer(phpmyadmin/motranslator) < 5) is needed by phpMyAdmin-4.9.5-1.fc30.noarch
(php-composer(phpmyadmin/shapefile) >= 2.0 with php-composer(phpmyadmin/shapefile) < 3) is needed by phpMyAdmin-4.9.5-1.fc30.noarch
(php-composer(phpmyadmin/sql-parser) >= 4.3.2 with php-composer(phpmyadmin/sql-parser) < 5) is needed by phpMyAdmin-4.9.5-1.fc30.noarch
(php-composer(phpseclib/phpseclib) >= 2.0.9 with php-composer(phpseclib/phpseclib) < 3) is needed by phpMyAdmin-4.9.5-1.fc30.noarch
(php-composer(psr/container) >= 1.0 with php-composer(psr/container) < 2) is needed by phpMyAdmin-4.9.5-1.fc30.noarch
(php-composer(symfony/expression-language) >= 2.8 with php-composer(symfony/expression-language) < 4) is needed by phpMyAdmin-4.9.5-1.fc30.noarch
(php-composer(symfony/polyfill-mbstring) >= 1.3 with php-composer(symfony/polyfill-mbstring) < 2) is needed by phpMyAdmin-4.9.5-1.fc30.noarch
(php-composer(twig/extensions) >= 1.5.1 with php-composer(twig/extensions) < 2) is needed by phpMyAdmin-4.9.5-1.fc30.noarch
(php-composer(twig/twig) >= 1.34 with php-composer(twig/twig) < 3) is needed by phpMyAdmin-4.9.5-1.fc30.noarch
To diagnose the problem, try running: 'rpm -Va --nofiles --nodigest'.
You probably have corrupted RPMDB, running 'rpm --rebuilddb' might fix the issue.
Download complete! Use 'dnf system-upgrade reboot' to start the upgrade.
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.

说实话,我真的不关心 PHP。如果升级完成后所有内容都不能dnf install编辑,并且核心系统软件包没有列出,那么系统应该在没有它们的情况下感到满意,我会感到惊讶。有--i-dont-care-just-do-it选择吗? (多于--allowerasing

如果没有,我很乐意卸载列出的软件包,这样 dnf 就不会尝试升级它们并惨遭失败。我已经尝试过,sudo dnf remove <a bunch of these>但没有任何效果:

No match for argument: php-phpmyadmin-motranslator
No match for argument: annobin
No match for argument: php-twig-extensions
No match for argument: php-twig2
No match for argument: composer
No match for argument: php-symfony*
No match for argument: php-composer*

我还能尝试什么?


编辑

我认为这些软件包不存在的原因是它们被提议替换某些现有软件包。 DNF 应该会打印源码包并解释它是如何进入这种状态的。否则这只是一场猜谜游戏。

答案1

这可以工作:

 dnf remove '*php*'

相关内容