• ubuntu错误解决。



     

    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


    ***************************************************************************

  • 相关阅读:
    jQuery动态效果
    10.嗖嗖移动业务大厅
    10.IDEAD 的xml中配置DTD
    浏览器缓存相关的Http头介绍:Expires,Cache-Control,Last-Modified,ETag
    nginx 重启
    fiddler 路由设置
    JavaScript Source Map 详解
    xdebug.var_display_max_data
    PHP输出当前进程所有变量 / 常量 / 模块 / 函数 / 类
    PHP中文件包含的路径问题
  • 原文地址:https://www.cnblogs.com/osxlinux/p/3259859.html
Copyright © 2020-2023  润新知