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       xkbroot@localhost:/var/lib# cp -r xend xen

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

ubuntu xen 错误: POST operation failed

cp -r /usr/share/qemu-linaro/ /usr/share/qemu

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

转载于:https://www.cnblogs.com/osxlinux/p/3259859.html

ubuntu错误解决。相关推荐

  1. ubuntu安装libaio的错误解决

    ubuntu安装libaio的错误解决 一.前言 二.如何安装libaio 三.为 Ubuntu 安装 libaio-dev 软件包 一.前言 个人主页: ζ小菜鸡 大家好我是ζ小菜鸡,让我们一起看看 ...

  2. python psycopg2_Ubuntu 安装 PostgreSQL 和 python-psycopg2基础教程(以及错误解决)

    Ubuntu 安装 PostgreSQL 和 python-psycopg2基础教程(以及错误解决) 2012/06/27 by Crazyant    3条评论 Django支持以下四种数据库Pos ...

  3. linux编译安装的报错,linux编译安装时常见错误解决办法

    This article is post on https://coderwall.com/p/ggmpfa 原文链接:http://www.bkjia.com/PHPjc/1008013.html ...

  4. NFS网络文件系统服务配置、验证及错误解决

    NFS网络文件系统服务配置.验证及错误解决 前期准备: 1.至少准备一台服务器(nfs-server)和一台客户机(nfs-client).老表测试用的服务器端用的系统是ubuntu,客户机用的是Ce ...

  5. Python headers not found错误解决办法

    安装Python扩展时,Configure error: Python headers not found错误解决办法 在安装spot时,遇到#include "Python.h" ...

  6. 老是说我编译版本不够_编译etcd出现的cannot load bufio的错误解决办法

    编译etcd出现的cannot load bufio的错误解决办法 今天在安装编译etcd的时候,出现以下错误: go: finding github.com/golang/groupcache v0 ...

  7. vatic标注工具安装步骤(非docker安装)以及错误解决办法

    Vatic标注工具安装步骤(非docker安装)以及错误解决 1.安装参考 2.安装步骤 2.1.环境介绍 2.2.下载Vatic 2.3.配置Apache 2.4.配置MySQL 2.5.配置/安装 ...

  8. jack server 常见错误解决方法

    jack 服务常见错误解决方法 当你编译Android时,你不需要修改任何内容. Jack是Andriod M的默认编译工具.只需使用标准的makefile命令执行即可.当第一次执行jack时,它会在 ...

  9. jack 服务常见错误解决方法

    jack 服务常见错误解决方法 当你编译Android时,你不需要修改任何内容. Jack是Andriod M的默认编译工具.只需使用标准的makefile命令执行即可.当第一次执行jack时,它会在 ...

最新文章

  1. 秦州:西瓜书 + 南瓜书 吃瓜系列 12. 聚类
  2. 阿里AI攻克心血管识别技术,冠脉中心线提取论文入选国际医学影像会议
  3. 自定义 coding.net 静态网站域名
  4. windows远程修改密码
  5. 银华基金:用小型机的群狼战术保驾护航!
  6. 【Java】统计随机抽出两个小于等于N的互异正整数的频率
  7. 透视变换矩阵(单应矩阵)计算:findHomography 与 getPerspectiveTransform
  8. php缩略图代码,php 缩略图实现函数代码_php
  9. mysql mha好吗_MySQL高可用方案MHA的一些总结和思考
  10. 移动开发:怎么去掉点击时出现背景蓝色
  11. Linux下编译googletest
  12. 拆分php中 $i++ ++$i PHP中的i++与++i的区别及效率
  13. Cisco 模拟器实现NAT案例
  14. 获取URL中的一级域名
  15. 360产品无法安装,此程序被组策略阻止
  16. 如何设计财务对账系统 —— 从0到1搭建对账中心实战
  17. LCOI出题组加团规则
  18. 聚焦Java性能优化 打造亿级流量秒杀系统【学习笔记】09_防刷限流技术
  19. frida hook svc调用
  20. 关于安装mathtype后找不到电脑预装office2016安装路径的问题

热门文章

  1. 微服务架构的四大金刚利器
  2. 什么是整洁的代码?什么是肮脏的代码?
  3. 我的《超级马里奥》我做主:会漂移掉头还带刹车音效,C++从零打造,网友:小心任天堂找你...
  4. Transformer应用到建筑行业,CAD设计起飞了
  5. 涵盖18+ SOTA GAN实现,这个图像生成领域的PyTorch库火了
  6. 脑洞大开!Adobe等新研究把「自拍」变「他拍」,魔幻修图效果感人
  7. 腾讯优图8篇论文入选ECCV 2020,涵盖目标检测/跟踪/Re-ID/人脸等领域
  8. Github高赞的YOLOv5引发争议?Roboflow和开发者这样说
  9. 没有数学何来计算机:论计算机起源的数学思想
  10. 知名网站的 404 页面长啥样?