virt-viewer
Centos 7에 대한 모든 종속성이 포함된 패키지를 다운로드 하려고 합니다 . 대신 yum을 사용합니다Yum 다운로더:
yum install --installroot=/tmp/ --downloadonly --downloaddir virt-viewer virt-viewer
실수:
Loaded plugins: fastestmirror, langpacks
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable <repoid>
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: centosplus/$releasever/x86_64
나는 성공하지 못한 채 저장소에서 echo 7 > /etc/yum/vars/releasever
주석 처리를 제거하거나 시도하지 않았습니다.baseurl
etc/yum.repos/
편집: yum update
둘 다 yum downloader
작동하므로 DNS 확인 중이라고 생각합니다.
답변1
어떤 스레드에서 이걸 찾았어요https://bugzilla.redhat.com/show_bug.cgi?id=850686:
--installroot를 사용하면 chroot 내에서 모든 작업이 수행되므로 yum은 $releasever가 무엇에 매핑되는지 알 수 없습니다(일반적으로 /var/lib/rpm을 읽어 이를 수행합니다).
두 가지 해결책이 있습니다: - 경유: --releasever=6 - 경유: --releasever=/