0

CentOS8 から Centos Stream 8 に正常にアップグレードしたと思っていましたが、dnf distro-sync を機能させることができませんでした。現在、DNF は壊れているように見え、dnf アップグレードは DNF 自体に関連して libsmartcols.so.1 の満たされていない依存関係をスローします。

dnf distro-sync: 同期を実行すると、次のように表示されます。

Error: 
 Problem: The operation would result in removing the following protected packages: setup
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

--skip-broken、--nobest --allowerasing などの可能な限りの組み合わせを試して解決しました。ボールトのバージョンを使用してみましたが、違いはありません。古い CentOS リポジトリはすべて削除されたため、 /etc/yum.repos.d/ フォルダー内のリポジトリは-Stream- のみです。現時点では、EPEL リポジトリはインストールされていません。

cat /etc/centos-release => CentOS ストリーム リリース 8

サーバーは再起動後も存続し、他のすべてに対して正しく機能しているようです。

dnf -y upgrade -v を実行すると、次の結果が得られます。

dnf -y upgrade -v
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync
DNF version: 4.7.0
cachedir: /var/cache/dnf
User-Agent: constructed: 'libdnf (CentOS Stream 8; generic; Linux.x86_64)'
repo: using cache for: appstream
appstream: using metadata from Tue 08 Feb 2022 07:27:22 PM EST.
repo: using cache for: baseos
baseos: using metadata from Tue 08 Feb 2022 07:26:22 PM EST.
repo: using cache for: extras
extras: using metadata from Tue 08 Feb 2022 04:08:34 PM EST.
Last metadata expiration check: 0:26:35 ago on Thu 10 Feb 2022 12:44:57 PM EST.
--> Starting dependency resolution
---> Package dnf-plugins-core.noarch 4.0.21-8.el8 will be upgraded
---> Package dnf-plugins-core.noarch 4.0.21-10.el8 will be an upgrade
---> Package libdnf.x86_64 0.63.0-5.el8 will be upgraded
---> Package libdnf.x86_64 0.63.0-7.el8 will be an upgrade
---> Package python3-dnf-plugins-core.noarch 4.0.21-8.el8 will be upgraded
---> Package python3-dnf-plugins-core.noarch 4.0.21-10.el8 will be an upgrade
---> Package python3-hawkey.x86_64 0.63.0-5.el8 will be upgraded
---> Package python3-hawkey.x86_64 0.63.0-7.el8 will be an upgrade
---> Package python3-libdnf.x86_64 0.63.0-5.el8 will be upgraded
---> Package python3-libdnf.x86_64 0.63.0-7.el8 will be an upgrade
--> Finished dependency resolution
Dependencies resolved.
==============================================================================================================================================================================================================
 Package                                                      Architecture                               Version                                             Repository                                  Size
==============================================================================================================================================================================================================
Upgrading:
 dnf-plugins-core                                             noarch                                     4.0.21-10.el8                                       baseos                                      71 k
 libdnf                                                       x86_64                                     0.63.0-7.el8                                        baseos                                     701 k
 python3-dnf-plugins-core                                     noarch                                     4.0.21-10.el8                                       baseos                                     230 k
 python3-hawkey                                               x86_64                                     0.63.0-7.el8                                        baseos                                     116 k
 python3-libdnf                                               x86_64                                     0.63.0-7.el8                                        baseos                                     778 k

Transaction Summary
==============================================================================================================================================================================================================
Upgrade  5 Packages

Total size: 1.9 M
Downloading Packages:
[SKIPPED] dnf-plugins-core-4.0.21-10.el8.noarch.rpm: Already downloaded                                                                                                                                      
[SKIPPED] libdnf-0.63.0-7.el8.x86_64.rpm: Already downloaded                                                                                                                                                 
[SKIPPED] python3-dnf-plugins-core-4.0.21-10.el8.noarch.rpm: Already downloaded                                                                                                                              
[SKIPPED] python3-hawkey-0.63.0-7.el8.x86_64.rpm: Already downloaded                                                                                                                                         
[SKIPPED] python3-libdnf-0.63.0-7.el8.x86_64.rpm: Already downloaded                                                                                                                                         
Using rpmkeys executable at /usr/bin/rpmkeys to verify signatures
Running transaction check
Error: transaction check vs depsolve:
libsmartcols.so.1()(64bit) is needed by libdnf-0.63.0-7.el8.x86_64
libsmartcols.so.1(SMARTCOLS_2.25)(64bit) is needed by libdnf-0.63.0-7.el8.x86_64
libsmartcols.so.1(SMARTCOLS_2.28)(64bit) is needed by libdnf-0.63.0-7.el8.x86_64
libsmartcols.so.1(SMARTCOLS_2.29)(64bit) is needed by libdnf-0.63.0-7.el8.x86_64
libsmartcols.so.1(SMARTCOLS_2.30)(64bit) is needed by libdnf-0.63.0-7.el8.x86_64
libsmartcols.so.1()(64bit) is needed by python3-hawkey-0.63.0-7.el8.x86_64
libsmartcols.so.1()(64bit) is needed by python3-libdnf-0.63.0-7.el8.x86_64
libsmartcols.so.1(SMARTCOLS_2.25)(64bit) is needed by python3-libdnf-0.63.0-7.el8.x86_64
libsmartcols.so.1(SMARTCOLS_2.27)(64bit) is needed by python3-libdnf-0.63.0-7.el8.x86_64
libsmartcols.so.1(SMARTCOLS_2.28)(64bit) is needed by python3-libdnf-0.63.0-7.el8.x86_64
libsmartcols.so.1(SMARTCOLS_2.29)(64bit) is needed by python3-libdnf-0.63.0-7.el8.x86_64
libsmartcols.so.1(SMARTCOLS_2.30)(64bit) is needed by python3-libdnf-0.63.0-7.el8.x86_64
To diagnose the problem, try running: 'rpm -Va --nofiles --nodigest'.
You probably have corrupted RPMDB, running 'rpm --rebuilddb' might fix the issue.
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.

パッケージのクリーニング(dnf clean all)、キャッシュファイルの削除、各パッケージの個別の更新/アップグレードなどを試みました。アイデアがありません。

助言がありますか?

4

1 に答える 1