我yum
开始无法以非 root 用户身份进行搜索。以前这是可以正常工作的,但后来出现了问题:
sudo yum update
运行良好,但会产生sudo yum search blah
多yum search blah
页错误,并且无法中断。
有人能帮助我了解如何修复此问题以允许使用非 root 帐户进行搜索吗?
robert@...:/etc/yum.repos.d% sudo yum clean metadata
Loaded plugins: langpacks, refresh-packagekit
Cleaning repos: fedora updates
14 metadata files removed
9 sqlite files removed
0 metadata files removed
% sudo yum clean all
Loaded plugins: langpacks, refresh-packagekit
Cleaning repos: fedora updates
Cleaning up everything
% sudo yum update
Loaded plugins: langpacks, refresh-packagekit
fedora/20/x86_64/metalink | 33 kB 00:00:00
fedora | 3.8 kB 00:00:00
updates/20/x86_64/metalink | 23 kB 00:00:00
updates | 4.9 kB 00:00:00
(1/4): updates/20/x86_64/primary_db | 9.3 MB 00:00:06
(2/4): fedora/20/x86_64/group_gz | 394 kB 00:00:06
(3/4): updates/20/x86_64/group_gz | 394 kB 00:00:06
(4/4): fedora/20/x86_64/primary_db | 18 MB 00:00:17
(1/2): updates/20/x86_64/pkgtags | 1.0 MB 00:00:06
(2/2): updates/20/x86_64/updateinfo | 1.0 MB 00:00:06
No packages marked for update
% yum search lvm
Loaded plugins: langpacks, refresh-packagekit
http://mirror2.hs-esslingen.de/fedora/linux/updates/20/x86_64/repodata/pkgtags.sqlite.gz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://vesta.informatik.rwth-aachen.de/ftp/pub/Linux/fedora/linux/updates/20/x86_64/repodata/pkgtags.sqlite.gz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://mirror.netcologne.de/fedora/linux/updates/20/x86_64/repodata/pkgtags.sqlite.gz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
<output curtailed>
答案1
尝试安装以下包(以 root 身份):
sudo yum install yum-plugin-fastestmirror
如果这没有帮助,请尝试以下操作