我正在通過以下鏈接http://www.idevelopment.info/data/AWS/AWS_Tips/AWS_Management/AWS_10.shtml在AWS EC2中創建自己的centOS 64位ami。現在,我正在爲EC2實例創建自己的AMI。使用EC2實例創建AWS EC2自己的AMI時出現錯誤
所以,當我發出此命令#百勝-c /opt/ec2/yum/yum-xen.conf --installroot =到/ mnt/EC2映像-y groupinstall基地我收到以下錯誤,
yum -c /opt/ec2/yum/yum-xen.conf --installroot =/mnt/ec2-image -y groupinstall基地 沒有安裝的組文件。 也許運行:yum組標記轉換(請參閱man yum) 無法檢索鏡像列表http://repo。$ awsregion。$ awsdomain/$ releasever/main /mirror.list錯誤爲 14:PYCURL ERROR 6 - 「無法解析主機:回購。$ awsregion。$ awsdomain「
其中一個配置的存儲庫失敗(未知), 和yum沒有足夠的緩存數據繼續。在這一點上,唯一可以做的安全事情就是失敗。有幾種方法來解決這個問題:
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: amzn-main/$releasever
我不明白這個問題。任何人都可以幫助我解決這個問題,思想也會有所幫助。
TIA ...,