删除wget yum source sublime2

时间:2016-05-10 09:20:31

标签: linux sublimetext2 wget yum

我想我已经通过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相关的所有内容?非常感谢!

1 个答案:

答案 0 :(得分:0)

删除文件/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