我在Oracle VM VirtualBox管理器中安装了VM,并在/etc/yum.repos.d下面安装了/ dev/sr0并配置了system.repo,如下所示。无法安装Ansible
[SYSTEM]
name=rhel6
baseurl=file:///mnt
gpgcheck=0
enabled=1
并从Fedora网站下载epel-release-latest-6.noarch.rpm安装Ansible。
但百胜命令不工作,并得到错误的“错误:无法检索库的Metalink:EPEL请确认它的路径,然后再试一次”
我的确在EPEL回购文件中的一些更改,如更换HTTPS作为http用于mirr orlist选项,但在此之后,当我运行任何yum命令时,它会在以下消息中给出。
Existing lock /var/run/yum.pid: another copy is running as pid 2448. Another app is currently holding the yum lock; waiting for it to exit...
当我杀死yum id并再次运行任何yum命令时,它将输出为yum命令。
我们都有一个本地'yum'或'dnf'回购,一个虚拟箱应该和真机有相同的行为,'baseurl'应该是真实的,我也渴望知道答案 – Gang
我希望你能解释我能做些什么来解决它。 – sudhakar