不知道该怎么称呼你怎么连接

2011年1月 Linux/Unix社区大版内专家分月排行榜第二2010年12月 Linux/Unix社区大版内专家分月排行榜第二2010年11月 Linux/Unix社区大版内专家分月排行榜第二
2011年11月 Linux/Unix社区大版内专家分月排行榜第三2011年10月 Linux/Unix社区大版内专家分月排行榜第三2011年6月 Linux/Unix社区大版内专家分月排行榜第三2011年5月 Linux/Unix社区大版内专家分月排行榜第三2011年4月 Linux/Unix社区大版内专家分月排行榜第三2011年3月 Linux/Unix社区大版内专家分月排行榜第三2011年2月 Linux/Unix社区大版内专家分月排行榜第三2010年5月 Linux/Unix社区大版内专家分月排行榜第三
2012年11月 挨踢职涯大版内专家分月排行榜第二2011年9月 Linux/Unix社区大版内专家分月排行榜第二
2012年1月 Linux/Unix社区大版内专家分月排行榜第三2011年8月 C/C++大版内专家分月排行榜第三2011年8月 Linux/Unix社区大版内专家分月排行榜第三2010年4月 C/C++大版内专家分月排行榜第三
本帖子已过去太久远了,不再提供回复功能。Ubuntu 解决:当执行`sudo apt-get update`命令时 出现的
“apt-get 404 Not Found Package Repository Errors” 问题 - 博客频道 - CSDN.NET
胖爷,4年后见! --- 日
分类:Ubuntu-errLinuxUbuntu
当你执行sudo apt-get update命令的时候,如果你遇到下面的问题:
W: The repository 'http://ppa.launchpad.net/ackondro/tibesti/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/ackondro/tibesti/ubuntu/dists/xenial/main/binary-amd64/Packages
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
W: The repository 'http://ppa.launchpad.net/ackondro/tibesti/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/ackondro/tibesti/ubuntu/dists/xenial/main/binary-amd64/Packages
E: Some index files failed to download. They have been ignored, or old ones used instead.
首先,我们将现在出问题的 /etc/apt/sources.list 文件备份一份。(只是一个好习惯而已)
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
注: /etc/apt/sources.list 文件 里面存放的是
Linux系统需要的软件源的网站。
接着,我们重新编写一个 /etc/apt/sources.list 文件:
sudo gedit /etc/apt/sources.list
将下面的模板内容,复制粘贴到 /etc/apt/sources.list 文件里面后,保存就可以了:(我们使用的Ubuntu 是16.04)
deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
如要用于其他版本,把 xenial 换成版本代号就好:
xenial()
trusty()
precise()
现在,再执行:
sudo apt-get update
现在就没有“apt-get 404 Not Found Package Repository Errors” 问题了。
这个问题,解决方法简单,但是对于初学者来说,却是一个触手的问题。
出现这个问题的原因是: 之前 /etc/apt/sources.list 路径里面的软件源更新网站有的已经过时了,需要更新新的网站。
Unable to connect to cn.:http: [112.124.140.210 80]
如果你出现这样的错误,说明你的网断了,查看网络连接情况。
参考网站:
How to fix Ubuntu/Debian apt-get 404 Not Found Package Repository Errors (Saucy, Raring, Quantal, Oneiric, Natty…)
Ubuntu apt-get unable to fetch packages
排名:第169名
更多精彩内容,请浏览网站:
、OpenCV、OpenNI、Numpy、Python、、PCL、ARM、Linux、嵌入式、机器学习、智能科学与技术、自动化、Qt、Arduino、、C/C++
运用Python成为顶级黑客
(5)(68)(8)(1)(7)(0)(6)(23)(1)(9)(42)(10)(41)(2)(3)(1)(3)(3)(1)(1)(45)(10)(22)(8)(47)(6)(56)(11)(20)(3)(2)(3)(4)(8)(34)(4)(4)(4)(2)(1)(3)(3)(5)(6)(1)(6)(3)(2)(8)(10)(38)(4)(4)(1)(9)(4)(5)(12)(1)(3)(1)(2)(6)(9)(1)(1)(2)(1)(1)(2)(6)(14)(1)(1)</how-to-fix-apt-get-update-error-on-ubuntu.html
如果是依赖没找到,可以用 sudo apt-get install -f 先补齐依赖看行不行。
1、先使用:
$ sudo rm -rf /var/lib/apt/lists/*
$ sudo apt-get update
如果不行,再使用:
$ sudo rm -R /var/lib/apt/lists/partial/*
$ sudo apt-get update
如果还不行,则
Then check out the "End of Life" date of your Ubuntu release by referring to
如果你的ubuntu版本已经 end of life了,则表示不再被支持,即软件库、更新库就不可用了
但是你可以使用 old-releases:
Every Ubuntu release has its end-of-life (EOL) regular Ubuntu releases are supported for 18 months, while LTS (Long Term Support) versions are supported up to 3 years (server edition) and 5 years (desktop edition). Once a Ubuntu release has reached EOL, its repositories will no longer be accessible, and you won't get any maintenance updates and security patches from Canonical. As of this writing, Ubuntu 13.04 (Raring Ringtail) has already reached EOL.
If the Ubuntu system you are using is EOL-ed, you will get the following 404 errors from apt-get or aptitude as its repositories have been deprecated.
W: Failed to fetch http://us./ubuntu/dists/raring-backports/multiverse/binary-i386/Packages
Not Found [IP: 91.189.91.13 80]
W: Failed to fetch /ubuntu/dists/raring/main/binary-amd64/Packages
W: Failed to fetch /ubuntu/dists/raring-security/universe/binary-i386/Packages
Not Found [IP: 91.189.88.149 80]
E: Some index files failed to download. They have been ignored, or old ones used instead
W: Failed to fetch /ubuntu/dists/utopic-security/main/source/Sources
W: Failed to fetch /ubuntu/dists/utopic-security/restricted/source/Sources
W: Failed to fetch /ubuntu/dists/utopic-security/universe/source/Sources
W: Failed to fetch /ubuntu/dists/utopic-security/multiverse/source/Sources
W: Failed to fetch /ubuntu/dists/utopic-security/main/binary-amd64/Packages
For those users who are using old versions of Ubuntu, Canonical maintains old-, which is an archive of EOL-ed repositories. Thus, when Canonical's support for your Ubuntu installation ends, you need to switch to repositories at old- (unless you want to upgrade it before EOL).
Here is a quick way to fix "404 Not Found" errors on old Ubuntu by switching to old-releases repositories.
First, replace main/security repositories with old-releases versions as follows.
$ sudo sed -i -r 's/([a-z]{2}\.)?/old-/g' /etc/apt/sources.list
$ sudo sed -i -r 's//old-/g' /etc/apt/sources.list
Then open /etc/apt/sources.list with a text editor, and look for . This repository is also no longer supported for 13.04. So you need to comment out
by prepending '#' sign.
#deb http:///ubuntu raring main
#deb-src http:///ubuntu raring main
Now you should be able to install or update packages on an old unsupported Ubuntu release.
阅读(...) 评论()ubuntu 更新源 或者 apt-get install 出错404 not found ,Failed to fetch
时间: 06:39:13
&&&& 阅读:1838
&&&& 评论:
&&&& 收藏:0
标签:&&&&&&&&&&&&&&&&&&&&&&&&&&&1.考虑是不是能上网
2.用apt-get update ,然后再试试apt-get install
如果apt-get update 也出现很多 404 not found 或者 failed to fetch ,就要考虑更换自己的源,百度搜 /etc/apt/sources.list
3.如果还不行,估计是Ubuntu版本太老了,没有维护的了。
比如我用11.04,sudo apt-get install open-vm-dkms 不行,sudo apt-get &update &不行,就死活不行,猜测是版本太老了。?。
也可以参考该文
/articles/EjMJNz
转载如下:
关于ubuntu的sources.list总结
文件/etc/apt/sources.list是一个普通可编辑的文本文件,保存了ubuntu软件更新的源服务器的地址。和sources.list功能一样的是/etc/apt/sources.list.d/*.list(*代表一个文件名,只能由字母、数字、下划线、英文句号组成)。sources.list.d目录下的*.list文件为在单独文件中写入源的地址提供了一种方式,通常用来安装第三方的软件。
如上是ubuntu官方sources.list文件内容,具体地含义如下:
每一行的开头是deb或者deb-src,分别表示直接通过.deb文件进行安装和通过源文件的方式进行安装。
deb或者deb-src字段之后,是一段URL,之后是五个用空格隔开的字符串,分别对应相应的目录结构。在浏览器中输入/ubuntu/,并进入dists目录,可以发现有5个目录和前述sources.list文件中的第三列字段相对应。任选其中一个目录进入,可以看到和sources.list后四列相对应的目录结构。
更多内容可以使用man source.list获得。
二、源的选择
ubuntu官方有自身的软件源,直接从官方的软件源获取数据的速度比较慢。而通过国内的一些的源的镜像进行更新一般能够获得比官方源更快的速度,不过不同国内的源的下载速度也会不一样。&&给出了较为详细的ubuntu软件源列表,个人现在觉得选取ubuntu软件源的方法是首先选择位于相同地区的源,然后进行ping操作,时延不是太高即可。对比aliyun、sohu、ubuntu官方ping的数据,可以发现aliyun的源在时延上表现最好。
三、使用sudo apt-get install出现404 not found问题的原因和解决
最近在12.10上使用sudo apt-get install命令时,出现了404 not found的问题,此时ping 可以ping通,在/ubuntu/dists/ 目录下已经没有quantal相关目录。具体原因是ubuntu对12.10的维护时间不超过一年,超过了相应的时间之后,对应的源的文件都转移到了http://old-/ubuntu/dists/ &目录下。ubuntu发布的版本可以从&&看到,从中一方面可以看到ubuntu数字版本号和英文名称的对应关系,也可以看到以04结尾的版本LTS标识,标识长期维护,这些版本的源在中呆的时间就比较长。
解决方法:
1)使用gedit将sources.list文件打开
sudo gedit /etc/apt/sources.list
2)进入替换界面(Search-&Replace或者ctrl+H)进行替换操作
四、直接安装deb文件的方法
1)下载一个deb格式的软件kismet
curl&https://www.kismetwireless.net/code/dists/quantal/kismet/binary-i386/kismet-.i386.deb&&kismet-.i386.deb
2)安装kismet
dpkg -i&kismet-.i386.deb
3)根据提示安装相关包
sudo apt-get install libnl2
五、参考材料
标签:&&&&&&&&&&&&&&&&&&&&&&&&&&&原文:/aji2014/p/4220286.html
&&国之画&&&& &&&&&&
&& &&&&&&&&&&&&&&
鲁ICP备号-4
打开技术之扣,分享程序人生!

我要回帖

更多关于 不知道性别怎么称呼 的文章

 

随机推荐