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() file for glibc resolver() generated by resolvconf()
# 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 -f /data/xen/vm01.img -l http://172.16.10.103/centos/
Starting install...
Retrieving file .treeinfo... | B : ...
Retrieving file vmlinuz... | 3.9 MB : ...
Retrieving file initrd.img... | MB : ...
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- 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
***************************************************************************
ubuntu错误解决。的更多相关文章
- [转]ubuntu错误解决E: Sub-process /usr/bin/dpkg returned an error code (1)
[转]ubuntu错误解决E: Sub-process /usr/bin/dpkg returned an error code (1) http://yanue.net/post-123.html ...
- ubuntu 错误 & 解决
1.ssh时出现“段错误(核心已转储)” 原因:说明与ssh有关的内核代码被修改过并且部分代码访问内存过界 解决:1.将内核代码被修改过的部分修改回来 2.sudo apt-get re ...
- ubuntu错误解决E: Sub-process /usr/bin/dpkg returned an error code (1)
在用apt-get安装软件时出现了类似于 install-info: No dir file specified; try –help for more information.dpkg:处理 get ...
- Ubuntu 汉化时ubuntu software database is broken错误解决
关于Ubuntu 汉化时的错误解决:按照网上的方法没有解决 最后 删掉thunderbird mail .这个软件,顺利解决!! 错误:thunderbird-locale-en: Depends: ...
- Linux遇到的问题(一)Ubuntu报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
提示错误信息 www@iZ236j3sofdZ:~$ ifconfig Command 'ifconfig' is available in '/sbin/ifconfig' The command ...
- ubuntu 环境下pycharm的 安装与激活教程 以及错误解决方法
1. 基本安装: 1.1 打开Ubuntu的应用市场,并在搜索栏搜索pycharm,结果如下图所示 1.2 选择pro版本进行安装,结果如下图所示: 1.3打开安装后的pycharm,如果出现下图所示 ...
- Windows安装Ubuntu桌面操作系统到移动硬盘中以及错误解决
用到的工具:U盘一个(usb3.0,你懂的),移动硬盘(我这个是笔记本里面取出来的机械硬盘装上的盒子) 第一步:下载Ubuntu系统iso镜像文件 下载Ubuntu系统iso镜像文件,由于我是新手,下 ...
- openwrt-scripts/config/mconf: Syntax error: “(” unexpected错误解决
scripts/config/mconf: Syntax error: “(” unexpected错误解决 从其他地方复制而来的openwrt SDK,放在本地执行make menuconfig时出 ...
- jack server 常见错误解决方法【转】
本文转载自:https://blog.csdn.net/qq_27061049/article/details/70156200 jack 服务常见错误解决方法 当你编译Android时,你不需要修改 ...
随机推荐
- mvc 用户控件 ascx 获取 View 页面的值
<%Html.RenderAction("AscxSideNav", "UI", new {itemName=ViewData["ItemNam ...
- 完全步卸载oracle11g步骤
完全 步 卸载oracle11g骤: . 开始->设置->控制面板->管理工具->服务 停止所有Oracle服务. . 开始->程序->Oracle - OraH ...
- 1 Winform 异步更新控件
刚才看到有人问为了winfrom中,在大数据绑定的时候出现画面假死的状态,为了解决这个问题希望通过再开一个线程来给控件绑定数据,可是画面还是会假死.现在看到的方法有1.掩耳盗铃法(Control.Ch ...
- Gulp那些好用的插件 2016.04.20
开始接触LESS.组件化编程后,慢慢意识到需要一个提高工作效率的构建工具,就此接触到了Gulp. Gulp的好处在这里就不细说啦,只有四个API接口学起来简直爽歪歪,减少了大量的I/O操作,用起来很畅 ...
- ASP.Net定时任务执行
原料: System.Timers.Timer():通过.NET Thread Pool实现的,轻量,计时精确,对应用程序.消息没有特别的要求:缺点是不支持直接的拖放,需要手工编码. Timer的 ...
- MVVM模式应用 之在ViewModel中使用NavigationService
在ViewModel.cs页面中是不能使用NavigationService,那该怎么实现跳转呢? 其实在ViewModel中实现页面的跳转也很简单,下面的代码: using Microsoft.Ph ...
- 让QMainWindow也表现出QDialog的exec函数的特征
前几天在做毕业设计项目的时候,使用的PyQt4,想实现这么样一个功能: 场景描述:主窗口a(QMainWindow类型)和主窗口b(QMainWindow),b是通过a窗口中某一个按钮弹出来的. 功能 ...
- HTML5储存
1.sessionStorage 特点:关闭浏览器(或标签页)后数据就不存在了.但刷新页面或使用“前进”.“后退按钮”后sessionStorage仍然存在: sessionStorage每个窗口的值 ...
- Python【第十篇】协程、异步IO
大纲 Gevent协程 阻塞IO和非阻塞IO.同步IO和异步IO的区别 事件驱动.IO多路复用(select/poll/epoll) 1.协程 1.1协程的概念 协程,又称微线程,纤程.英文名Coro ...
- [译]36 Days of Web Testing(三)
Day 14: Automate the tedious Why ? 有些时候,web测试还是蛮单调乏味的,在开始测试前,你可能要必须跳转到一个特定的表单页面,或则为了得到一个特定的页面(或配置),你 ...