Yum,Redhat - 为什么我会收到“... 之间的名称冲突”错误以及如何修复它?

Yum,Redhat - 为什么我会收到“... 之间的名称冲突”错误以及如何修复它?

每次我尝试启动“yum”时都会出现以下错误:

Name collision between kterm kterm
Name collision between kterm-color kterm-color
Name collision between xterm-nic xterm-nic
Name collision between xterm1 xterm1
Name collision between color_xterm color_xterm
Name collision between xterm-color xterm-color
Name collision between gnome-rh62 gnome-rh62
Name collision between gnome-rh72 gnome-rh72
Name collision between gnome-rh80 gnome-rh80
Name collision between gnome-rh90 gnome-rh90
Name collision between gnome-fc5 gnome-fc5
Name collision between gnome gnome
Name collision between gnome-256color gnome-256color
Name collision between kvt kvt
Name collision between konsole-base konsole-base
Name collision between konsole-linux konsole-linux
Name collision between konsole-solaris konsole-solaris
Name collision between konsole-xf3x konsole-xf3x
Name collision between konsole-xf4x konsole-xf4x
Name collision between konsole-vt100 konsole-vt100
Name collision between konsole-vt420pc konsole-vt420pc
Name collision between konsole-16color konsole-16color
Name collision between konsole konsole
Name collision between mlterm mlterm
Name collision between rxvt-basic rxvt-basic
Name collision between rxvt+pcfkeys rxvt+pcfkeys
Name collision between rxvt rxvt
Name collision between rxvt-color rxvt-color
Name collision between rxvt-256color rxvt-256color
Name collision between rxvt-xpm rxvt-xpm
Name collision between rxvt-cygwin rxvt-cygwin
Name collision between rxvt-cygwin-native rxvt-cygwin-native
Name collision between rxvt-16color rxvt-16color
Name collision between rxvt-unicode rxvt-unicode
Name collision between Eterm Eterm
Name collision between xtermm xtermm
Name collision between xtermc xtermc
Name collision between xterm-pcolor xterm-pcolor
....

有人知道如何解决这个问题吗?

答案1

我建议您暂时(重新)将所有 *.repo 从 /etc/yum.repos.d/ 移动到 /tmp/,然后尝试“yum clean all”,如果这样可以解决问题,则尝试查看这些文件并将它们逐个移回,然后查看问题何时再次出现。

[alexus@wcmisdlin02 ~]$ yum repolist
Loaded plugins: refresh-packagekit
repo id                                                                                             repo name                                                                                                                         status
adobe-linux-x86_64                                                                                  Adobe Systems Incorporated                                                                                                            2
epel                                                                                                Extra Packages for Enterprise Linux 6 - x86_64                                                                                    7,720
google-chrome                                                                                       google-chrome                                                                                                                         3
google-talkplugin                                                                                   google-talkplugin                                                                                                                     1
sl                                                                                                  Scientific Linux 6.1 - x86_64                                                                                                     6,251
sl-security                                                                                         Scientific Linux 6.1 - x86_64 - security updates                                                                                  1,954
repolist: 15,931
[alexus@wcmisdlin02 ~]$ sudo mv /etc/yum.repos.d/*.repo /tmp/
[alexus@wcmisdlin02 ~]$ yum repolist
Loaded plugins: refresh-packagekit
repolist: 0
[alexus@wcmisdlin02 ~]$ 

答案2

我重新安装了新版本的 Python,更改了一些环境变量,它就正常工作了。按照这个解决方案链接查看我如何解决我遇到的问题。“解决方案链接”中的问题又是另一个问题,但按照那里的步骤操作也可以解决本页中描述的问题。

相关内容