存储库 packages-microsoft-com-prod 在配置中多次列出

pra*_*dra 8 unix yum

每当我运行任何 yum 命令时,我都会收到以下错误 -

Repository packages-microsoft-com-prod is listed more than once in the configuration
Run Code Online (Sandbox Code Playgroud)

有解决问题的想法吗?

Repository packages-microsoft-com-prod is listed more than once in the configuration
HDP-2.6                                                                                                                               | 2.9 kB  00:00:00
HDP-UTILS-1.1.0.21                                                                                                                    | 2.9 kB  00:00:00
Updates-ambari-2.5.2.0                                                                                                                | 2.9 kB  00:00:00
https://packages.microsoft.com/rhel/7/mssql-server/repodata/repomd.xml: [Errno 14] curl#60 - "Peer's certificate issuer has been marked as not trusted by the user."
Trying other mirror.
Run Code Online (Sandbox Code Playgroud)

Бог*_*ець 3

在该文件夹中,/ect/yum.repos.d您有两个或多个files.repo具有相同存储库名称的文件夹[packages-microsoft-com-prod]。我遇到了同样的问题,我必须删除其中一个文件,这与我的操作系统无关。然后我明白这不是一个好主意。