删除 wget yum source sublime2

delete wget yum source sublime2

我想我已经通过wget添加了一个sublime2源,但是我没有安装成功。然后现在如果我想安装任何其他软件,如 firefox:

yum install firefox

我会得到这样的错误:

Loaded plugins: security
Setting up Install Process
Repository sublime2 is listed more than once in the configuration
Repository sublime2-dev is listed more than once in the configuration
Repository sublime2-nightly is listed more than once in the configuration
G02R02C00                                                | 1.5 kB     00:00     
epel/metalink                                            |  27 kB     00:00     
epel                                                     | 4.3 kB     00:00     
epel/primary_db                                          | 5.9 MB     00:01     
scl_python27                                             | 3.0 kB     00:00     
standard                                                 | 1.2 kB     00:00     
standard/primary                                         |  28 MB     00:06     
standard                                                            16898/16898
http://repo.cloudhike.com/sublime2/fedora/6Server/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: sublime2. Please verify its path and try again

我很困惑,因为我不知道为什么当我尝试安装任何其他东西时会出现此错误。 我 运行 命令

sudo find / -name sublime2

我得到了:

/var/lib/yum/repos/x86_64/6Server/sublime2
/var/cache/yum/x86_64/6Server/sublime2

我删除了这两个,但下次我尝试安装其他东西时,它们会再次出现! 我怎样才能完全删除与 sublime2 相关的所有内容?非常感谢!

删除文件 /etc/yum.repos.d/sublime.repo(或具有相似名称的任何其他文件),然后它应该可以工作。

如果您没有找到任何此类文件。然后在 /etc/yum.repos.d 目录中 grep for sublime。并删除文件。

grep "sublime" /etc/yum.repos.d/*

另一个临时解决方案是在每次 运行 yum 时禁用存储库。

yum --disablerepo=sublime2 install firefox