zoukankan      html  css  js  c++  java
  • 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


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

  • 相关阅读:
    北航软院2012级C#期末考试部分考题解答
    题目1013:开门人和关门人(字符串处理)
    char * 与char []探究理解
    题目1017:还是畅通工程(最小生成树)
    最小生成树(Prim算法+Kruskal算法)
    题目1018:统计同成绩学生人数(hash简单应用)
    GoogLeNet InceptionV2/V3/V4
    Python库
    卷积为什么如此强大?一文全解深度学习中的卷积
    神经网络训练tricks
  • 原文地址:https://www.cnblogs.com/osxlinux/p/3259859.html
Copyright © 2011-2022 走看看