环境
Ubuntu18
问题描述

发现结果为0
解决方法
参考教程
由于是Ubuntu没有yum源,所以要想使用yum安装软件必须要配置yum安装源
- 进入
/etc/yum/repos.d
- 新建
fedora-163.repo
fedora-updates-163.repo
| touch fedora-updates-163.repo |
fedora-163.repo
配置信息
| [fedora] |
| |
| name=Fedora 17 - $basearch - 163.com |
| failovermethod=priority |
| baseurl=http://mirrors.163.com/fedora/releases/17/Everything/$basearch/os/ |
| mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-17&arch=$basearch |
| enabled=1 |
| metadata_expire=7d |
| gpgcheck=1 |
| gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch |
| |
| [fedora-debuginfo] |
| name=Fedora 17 - $basearch - Debug - 163.com |
| failovermethod=priority |
| baseurl=http://mirrors.163.com/fedora/releases/17/Everything/$basearch/debug/ |
| mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-17&arch=$basearch |
| enabled=0 |
| metadata_expire=7d |
| gpgcheck=1 |
| gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch |
| |
| [fedora-source] |
| name=Fedora 17 - Source - 163.com |
| failovermethod=priority |
| baseurl=http://mirrors.163.com/fedora/releases/17/Everything/source/SRPMS/ |
| mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-17&arch=$basearch |
| enabled=0 |
| metadata_expire=7d |
| gpgcheck=1 |
| gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch |
fedora-updates-163.repo
配置信息
| vim fedora-updates-163.repo |
| [updates] |
| name=Fedora 17 - $basearch - Updates - 163.com |
| failovermethod=priority |
| baseurl=http://mirrors.163.com/fedora/updates/17/$basearch/ |
| mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f17&arch=$basearch |
| enabled=1 |
| gpgcheck=1 |
| gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch |
| |
| [updates-debuginfo] |
| name=Fedora 17 - $basearch - Updates - Debug - 163.com |
| failovermethod=priority |
| baseurl=http://mirrors.163.com/fedora/updates/17/$basearch/debug/ |
| mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f17&arch=$basearch |
| enabled=0 |
| gpgcheck=1 |
| gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch |
| |
| [updates-source] |
| name=Fedora 17 - Updates Source - 163.com |
| failovermethod=priority |
| baseurl=http://mirrors.163.com/fedora/updates/17/SRPMS/ |
| mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f17&arch=$basearch |
| enabled=0 |
| gpgcheck=1 |
| gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch |

- 执行配置

【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!