ubuntu安装yum update 出错出错,什么原因

Ubuntu安装更新软件很慢怎么办 Ubuntu加快软件安装更新速度方法_西西软件资讯
西西软件下载最安全的下载网站、值得信赖的软件下载站!
→ Ubuntu安装更新软件很慢怎么办 Ubuntu加快软件安装更新速度方法
1.0.0.1 官方安装版
类型:网络电视大小:1.5M语言:中文 评分:6.6
Ubuntu是一款非常以桌面应用为主的操作系统,很多朋友在使用Ubuntu系统的时候,发现自己的网速很好的情况下安装或更新软件还是很慢,这是什么原因呢,Ubuntu安装更新软件很慢怎么办,下面小编就给大家介绍Ubuntu加快软件安装更新速度方法。Ubuntu官方中文版:一种情况就是你的网络本身速度就比较慢导致的;另一种情况,就是你的系统选择的源,由于你选择的源可能在国外或者即使在国内也因为各种情况导致与你的连接速度会比较慢。1、打开 系统设置。选择 软件和更新2、打开软件和更新窗口。3、这里面的每个选项,我们会在后续的分享中慢慢跟大家道来。今天我们主机介绍软件源的修改。我们点击Ubuntu软件选项卡下的其他站点。4、这里有好多国外的源及我们国内的源,我也试了不少,我目前使用的是aliyun的源,感觉速度还不错,其他国内的速度也都不可以,大家也可以试试。不要怕麻烦,就是要折腾。5、我们选择,然后点击 选择服务器。6、同样需要我们密码认证。7、修改成功。8、然后点击 关闭。此时需要重新载入软件源,我们点击 重新载入 即可。9、系统正在更新缓存(源)10、等待系统更新完毕。源更新成功后,会自动关闭窗口。此时,我们安装软件或更新软件(系统)就是用的我们选择的源啦。这就是Ubuntu加快软件安装更新速度方法了,希望对大家有用。
08-0902-1002-0202-0202-0101-2711-0605-2505-1304-18
阅读本文后您有什么感想? 已有23人给出评价!
名称大小下载42266人阅读
GNC/LINUX(14)
当运行apt-get update后出现如下错误时:
E: Some index files failed to download, they have been ignored, or old ones used instead.
可以将目录下/var/lib/apt/lists/partial/所有的文件清掉,再次运行apt-get update即可!自带源在大陆不好。
出现以下错误:
/etc/apt$ sudo apt-get update
precise-security InRelease
precise-security Release.gpg
Temporary failure resolving ''
Err http://cn. precise InRelease
Err http://cn. precise-updates InRelease
Err http://cn. precise-backports InRelease
Err http://cn. precise Release.gpg
Temporary failure resolving 'cn.'
Err http://cn. precise-updates Release.gpg
Temporary failure resolving 'cn.'
Err http://cn. precise-backports Release.gpg
Temporary failure resolving 'cn.'
Reading package lists... Done
W: Failed to fetch http://cn./ubuntu/dists/precise/InRelease
W: Failed to fetch http://cn./ubuntu/dists/precise-updates/InRelease
W: Failed to fetch http://cn./ubuntu/dists/precise-backports/InRelease
W: Failed to fetch /ubuntu/dists/precise-security/InRelease
W: Failed to fetch /ubuntu/dists/precise-security/Release.gpg
Temporary failure resolving ''
W: Failed to fetch http://cn./ubuntu/dists/precise/Release.gpg
Temporary failure resolving 'cn.'
W: Failed to fetch http://cn./ubuntu/dists/precise-updates/Release.gpg
Temporary failure resolving 'cn.'
W: Failed to fetch http://cn./ubuntu/dists/precise-backports/Release.gpg
Temporary failure resolving 'cn.'
W: Some index files failed to download. They have been ignored, or old ones used instead.
xinju@xinjuOffice:/etc/apt$ cd ../network
deb /ubuntu/ raring main restricted universe multiverse
deb /ubuntu/ raring-security main restricted universe multiverse
deb /ubuntu/ raring-updates main restricted universe multiverse
deb /ubuntu/ raring-proposed main restricted universe multiverse
deb /ubuntu/ raring-backports main restricted universe multiverse
deb-src /ubuntu/ raring main restricted universe multiverse
deb-src /ubuntu/ raring-security main restricted universe multiverse
deb-src /ubuntu/ raring-updates main restricted universe multiverse
deb-src /ubuntu/ raring-proposed main restricted universe multiverse
deb-src /ubuntu/ raring-backports main restricted universe multiverse
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
iface lo inet loopback
# The primary network interfacea
iface eth0 inet static
address 192.168.2.170
netmask 255.255.255.0
broadcast 192.168.2.255
gateway 192.168.2.1
dns-nameservers 192.168.2.1
1,重启生效:
sudo&vi&/etc/resolvconf/resolv.conf.d/base(这个文件默认是空的)
在里面插入:
nameserver&8.8.8.8
nameserver&8.8.4.4
如果有多个DNS就一行一个
修改好保存,然后执行
sudo&resolvconf&-u
再看/etc/resolv.conf,最下面就多了2行:
cat&/etc/resolv.conf
#&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&8.8.8.8
nameserver&8.8.4.4
可以看到我们的设置已经加上了,然后再ping一个域名,当时就可以解析了,无需重启。
2,重启失效:
配置文件地址 /etc/resolv.conf
使用编辑器打开
改为如下内容:
search localdomain
nameserver 202.96.128.86 希望修改成的DNS
nameserver 202.96.128.166 备用DNS
重启网络:sudo /etc/init.d/networking restart。即可
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:144697次
积分:1621
积分:1621
排名:第16546名
原创:36篇
转载:49篇
评论:13条
(1)(1)(3)(1)(1)(1)(3)(1)(3)(3)(1)(4)(1)(1)(3)(11)(2)(2)(5)(4)(3)(2)(1)(12)(1)(5)(2)(1)(1)(4)(2)ubuntu14.04更新源出错解决
&&& 安装ubuntu14.04之后做的第一件事就是更新源,于是从网上找到来网易的源,结果更新后出现如下错误:W: 无法下载 /ubuntu/dists/trusty-security/main/binary-i386/Packages& Hash 校验和不符W: 无法下载 /ubuntu/dists/trusty-security/universe/binary-i386/Packages& Hash 校验和不符W: 无法下载 /ubuntu/dists/trusty-security/main/i18n/Translation-en& Hash 校验和不符W: 无法下载 /ubuntu/dists/trusty-updates/main/source/Sources& Hash 校验和不符W: 无法下载 /ubuntu/dists/trusty-updates/universe/source/Sources& Hash 校验和不符W: 无法下载 /ubuntu/dists/trusty-updates/main/binary-i386/Packages& Hash 校验和不符W: 无法下载 /ubuntu/dists/trusty-updates/universe/binary-i386/Packages& Hash 校验和不符W: 无法下载 /ubuntu/dists/trusty-updates/universe/i18n/Translation-en& Hash 校验和不符W: 无法下载 /ubuntu/dists/trusty-proposed/main/binary-i386/Packages& Hash 校验和不符E: Some index files failed to download. They have been ignored, or old ones used instead.&&& 于是换其他源,什么搜狐的源,教育网的源,换了一通,并没有什么卵用,后来在ubuntu软件中心的编辑菜单下拉软件源中使用自动搜索服务器功能,搜索到这么一个服务器然后使用sudo apt-get update,竟然神奇的成功了好吧,瞬时不明觉历阿,不管怎样,问题解决来,还是很开心!
最新教程周点击榜
微信扫一扫解决Ubuntu更新源Hash Sum mismatch错误
像Ubuntu这种成天没事就更新源的,缓存服务器经常存取未更新的source文件,造成更新源时提示类似:
Hit&&precise-proposed/restricted Translation-en
Hit&&precise-proposed/universe Translation-en
Fetched 16.8 MB in 2min 21s (119 kB/s)
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_main_source_Sources&&Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_main_binary-amd64_Packages&Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_main_binary-i386_Packages&Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_restricted_source_Sources&&Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise-updates_main_binary-i386_Packages&&Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise-proposed_universe_binary-amd64_Packages&&Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
首先&rm -fR /var/lib/apt/lists/* &删除之前的缓存
这种尴尬的局面,可以通过使用goagent代理来解决。
1. 开启goagent代理
安装及配置教程/p/goagent/
注册开通,其实在Windows下完成就好了,相对比较简单些,配置好了后,复制到Linux下即可,注意给文件夹增加执行权限。
简单的方法是 chmod 777 goagent-* -R
Ubuntu下 特别需要注意要配置下运行环境:
sudo apt-get install python
sudo apt-get install python-dev
sudo apt-get install python-appindicator
sudo apt-get install python-vte
2. 运行Goagent
执行命令 如: goagent-goagent-291bebf/local/proxy.py
注: python脚本只要直接输入脚本名就可以运行了
3. 运行界面,出现如下显示,就表示启动成功了,不要关闭这个命令窗:
执行命令: sudo apt-get -o Acquire::http::proxy=&http://127.0.0.1:8087/& update
运行效果,执行成功:
很多东西不再解释。。。Have Fun!
【声明】:黑吧安全网()登载此文出于传递更多信息之目的,并不代表本站赞同其观点和对其真实性负责,仅适于网络安全技术爱好者学习研究使用,学习中请遵循国家相关法律法规。如有问题请联系我们,联系邮箱,我们会在最短的时间内进行处理。
上一篇:【】【】ubuntuapt-getupdate失败解决方案
找了好多资料,最终都没有搞定,自己研究吧(当然也要查资料)
失败的主要原因是不能访问到repository,至于为什么访问不到,可能是被强了,也可能是真的老了
1,关闭所以源 (怎么着software sources 自己搜索吧)
2,删除/var/lib/apt/lists 所有文件
3,添加阿里云镜像https://launchpad.net/ubuntu/+mirror/-archive(要选择适合自己的版本的ubuntu,没有适合的自己看着办,just have a try),
sudo add-apt-repository &deb-src /ubuntu/ precise main &
sudo add-apt-repository &deb /ubuntu/ precise main &
4,sudo apt-get update
这一就成功了,希望对你有所帮助
(window.slotbydup=window.slotbydup || []).push({
id: '2467140',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467141',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467142',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467143',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467148',
container: s,
size: '1000,90',
display: 'inlay-fix'}

我要回帖

更多关于 pod update 出错 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信