Fedora

在 Fedora 上執行 dnf update 會返回 MongoDB 的衝突

  • February 21, 2022

我很感激一些解決與我的 Fedora 工作站上安裝的 MongoDB 衝突的建議。我已將 MongoDB 添加為自定義儲存庫,並在執行時在終端中獲得以下輸出sudo dnf update

Fedora 35 - x86_64 - Updates                                                                         69 kB/s |  19 kB     00:00    
Fedora Modular 35 - x86_64 - Updates                                                                 46 kB/s |  21 kB     00:00    
RPM Fusion for Fedora 35 - Free tainted                                                              23 kB/s | 3.6 kB     00:00    
Dependencies resolved.

Problem 1: cannot install the best update candidate for package mongodb-org-database-tools-extra-4.4.4-1.el8.x86_64
 - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-4.4.12-1.el8.x86_64
Problem 2: package mongodb-org-tools-4.4.12-1.el8.x86_64 requires mongodb-org-database-tools-extra = 4.4.12, but none of the providers can be installed
 - cannot install the best update candidate for package mongodb-org-tools-4.4.4-1.el8.x86_64
 - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-4.4.12-1.el8.x86_64
Problem 3: package mongodb-org-4.4.12-1.el8.x86_64 requires mongodb-org-tools = 4.4.12, but none of the providers can be installed
 - package mongodb-org-tools-4.4.12-1.el8.x86_64 requires mongodb-org-database-tools-extra = 4.4.12, but none of the providers can be installed
 - cannot install the best update candidate for package mongodb-org-4.4.4-1.el8.x86_64
 - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-4.4.12-1.el8.x86_64
Problem 4: problem with installed package mongodb-org-4.4.4-1.el8.x86_64
 - package mongodb-org-4.4.4-1.el8.x86_64 requires mongodb-org-mongos = 4.4.4, but none of the providers can be installed
 - package mongodb-org-4.4.10-1.el8.x86_64 requires mongodb-org-tools = 4.4.10, but none of the providers can be installed
 - package mongodb-org-4.4.11-1.el8.x86_64 requires mongodb-org-tools = 4.4.11, but none of the providers can be installed
 - package mongodb-org-4.4.12-1.el8.x86_64 requires mongodb-org-tools = 4.4.12, but none of the providers can be installed
 - package mongodb-org-4.4.5-1.el8.x86_64 requires mongodb-org-tools = 4.4.5, but none of the providers can be installed
 - package mongodb-org-4.4.6-1.el8.x86_64 requires mongodb-org-tools = 4.4.6, but none of the providers can be installed
 - package mongodb-org-4.4.7-1.el8.x86_64 requires mongodb-org-tools = 4.4.7, but none of the providers can be installed
 - package mongodb-org-4.4.8-1.el8.x86_64 requires mongodb-org-tools = 4.4.8, but none of the providers can be installed
 - package mongodb-org-4.4.9-1.el8.x86_64 requires mongodb-org-tools = 4.4.9, but none of the providers can be installed
 - cannot install both mongodb-org-mongos-4.4.12-1.el8.x86_64 and mongodb-org-mongos-4.4.4-1.el8.x86_64
 - cannot install both mongodb-org-mongos-4.4.4-1.el8.x86_64 and mongodb-org-mongos-4.4.12-1.el8.x86_64
 - package mongodb-org-tools-4.4.10-1.el8.x86_64 requires mongodb-org-database-tools-extra = 4.4.10, but none of the providers can be installed
 - package mongodb-org-tools-4.4.11-1.el8.x86_64 requires mongodb-org-database-tools-extra = 4.4.11, but none of the providers can be installed
 - package mongodb-org-tools-4.4.12-1.el8.x86_64 requires mongodb-org-database-tools-extra = 4.4.12, but none of the providers can be installed
 - package mongodb-org-tools-4.4.5-1.el8.x86_64 requires mongodb-org-database-tools-extra = 4.4.5, but none of the providers can be installed
 - package mongodb-org-tools-4.4.6-1.el8.x86_64 requires mongodb-org-database-tools-extra = 4.4.6, but none of the providers can be installed
 - package mongodb-org-tools-4.4.7-1.el8.x86_64 requires mongodb-org-database-tools-extra = 4.4.7, but none of the providers can be installed
 - package mongodb-org-tools-4.4.8-1.el8.x86_64 requires mongodb-org-database-tools-extra = 4.4.8, but none of the providers can be installed
 - package mongodb-org-tools-4.4.9-1.el8.x86_64 requires mongodb-org-database-tools-extra = 4.4.9, but none of the providers can be installed
 - cannot install the best update candidate for package mongodb-org-mongos-4.4.4-1.el8.x86_64
 - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-4.4.10-1.el8.x86_64
 - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-4.4.11-1.el8.x86_64
 - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-4.4.12-1.el8.x86_64
 - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-4.4.5-1.el8.x86_64
 - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-4.4.6-1.el8.x86_64
 - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-4.4.7-1.el8.x86_64
 - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-4.4.8-1.el8.x86_64
 - nothing provides /usr/libexec/platform-python needed by mongodb-org-database-tools-extra-4.4.9-1.el8.x86_64
====================================================================================================================================
Package                                          Architecture           Version                      Repository               Size
====================================================================================================================================
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
mongodb-org-mongos                               x86_64                 4.4.12-1.el8                 Mongodb                  17 M
Skipping packages with broken dependencies:
mongodb-org                                      x86_64                 4.4.10-1.el8                 Mongodb                  11 k
mongodb-org                                      x86_64                 4.4.11-1.el8                 Mongodb                  11 k
mongodb-org                                      x86_64                 4.4.12-1.el8                 Mongodb                  11 k
mongodb-org                                      x86_64                 4.4.5-1.el8                  Mongodb                  11 k
mongodb-org                                      x86_64                 4.4.6-1.el8                  Mongodb                  11 k
mongodb-org                                      x86_64                 4.4.7-1.el8                  Mongodb                  11 k
mongodb-org                                      x86_64                 4.4.8-1.el8                  Mongodb                  11 k
mongodb-org                                      x86_64                 4.4.9-1.el8                  Mongodb                  11 k
mongodb-org-database-tools-extra                 x86_64                 4.4.10-1.el8                 Mongodb                  23 k
mongodb-org-database-tools-extra                 x86_64                 4.4.11-1.el8                 Mongodb                  23 k
mongodb-org-database-tools-extra                 x86_64                 4.4.12-1.el8                 Mongodb                  23 k
mongodb-org-database-tools-extra                 x86_64                 4.4.5-1.el8                  Mongodb                  23 k
mongodb-org-database-tools-extra                 x86_64                 4.4.6-1.el8                  Mongodb                  23 k
mongodb-org-database-tools-extra                 x86_64                 4.4.7-1.el8                  Mongodb                  23 k
mongodb-org-database-tools-extra                 x86_64                 4.4.8-1.el8                  Mongodb                  23 k
mongodb-org-database-tools-extra                 x86_64                 4.4.9-1.el8                  Mongodb                  23 k
mongodb-org-tools                                x86_64                 4.4.10-1.el8                 Mongodb                  11 k
mongodb-org-tools                                x86_64                 4.4.11-1.el8                 Mongodb                  11 k
mongodb-org-tools                                x86_64                 4.4.12-1.el8                 Mongodb                  11 k
mongodb-org-tools                                x86_64                 4.4.5-1.el8                  Mongodb                  11 k
mongodb-org-tools                                x86_64                 4.4.6-1.el8                  Mongodb                  11 k
mongodb-org-tools                                x86_64                 4.4.7-1.el8                  Mongodb                  11 k
mongodb-org-tools                                x86_64                 4.4.8-1.el8                  Mongodb                  11 k
mongodb-org-tools                                x86_64                 4.4.9-1.el8                  Mongodb                  11 k

Transaction Summary
====================================================================================================================================
Skip  25 Packages

我已經嘗試過,因為輸出表明執行sudo dnf update --best --allowerasing會解除安裝並重新安裝 MongoDB。但是,它返回相同的衝突。我很感激一些建議或建議解決方法。我正在使用此頁面上發布的 repo 資訊,https://developer.fedoraproject.org/tech/database/mongodb/about.html

該 repo 似乎適用於 RHEL8,並且可能不再適用於 Fedora。我建議刪除您從第三方儲存庫獲得的所有軟體包,並使用 Fedora 儲存庫中的軟體包。

dnf remove mongodb-org*

……應該將它們全部刪除。

引用自:https://unix.stackexchange.com/questions/691471