ubuntu中出现如下错误:
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise-backports/main/i18n/Translation-en Something wicked happened resolving 'cn.archive.ubuntu.com:http' (-5 - No address associated with hostname) W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/i18n/Translation-en_US Something wicked happened resolving 'cn.archive.ubuntu.com:http' (-5 - No address associated with hostname) W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise-backports/multiverse/i18n/Translation-en Something wicked happened resolving 'cn.archive.ubuntu.com:http' (-5 - No address associated with hostname) W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/i18n/Translation-en_US Something wicked happened resolving 'cn.archive.ubuntu.com:http' (-5 - No address associated with hostname) W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise-backports/restricted/i18n/Translation-en Something wicked happened resolving 'cn.archive.ubuntu.com:http' (-5 - No address associated with hostname) W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/i18n/Translation-en_US Something wicked happened resolving 'cn.archive.ubuntu.com:http' (-5 - No address associated with hostname) W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/i18n/Translation-en Something wicked happened resolving 'cn.archive.ubuntu.com:http' (-5 - No address associated with hostname) E: Some index files failed to download. They have been ignored, or old ones used instead.
解决办法:
在/etc/resolv.conf中加入DNS地址:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 172.16.10.1
-------------------------------------------------------------------------------------------------------
如下错误解决办法:Could not start storage pool: cannot open path '/var/lib/xen': No such file or directory
root@localhost:~# virt-install -n vm01 -r 512 -f /data/xen/vm01.img -l http://172.16.10.103/centos/ Starting install... Retrieving file .treeinfo... | 834 B 00:00 ... Retrieving file vmlinuz... | 3.9 MB 00:00 ... Retrieving file initrd.img... | 15 MB 00:00 ... ERROR Could not start storage pool: cannot open path '/var/lib/xen': No such file or directory
解决办法:
root@localhost:~# cd /var/lib/ root@localhost:/var/lib# ls AccountsService dbus initramfs-tools logrotate ocaml rpm udisks usb_modeswitch xml-core apt dhcp initscripts misc os-prober samba update-manager usbutils aptitude dictionaries-common insserv mlocate pam sgml-base update-notifier vim aspell dpkg landscape munin-node php5 snmp update-rc.d xend belocs gconf libuuid mysql plymouth sudo upower xenstored binfmts gdm libvirt NetworkManager polkit-1 synaptic urandom xfonts colord ghostscript locales ntpdate pulseaudio ucf ureadahead xkb root@localhost:/var/lib# cp -r xend xen
**************************************************************************
ubuntu xen 错误: POST operation failed
cp -r /usr/share/qemu-linaro/ /usr/share/qemu
***************************************************************************