执行apt-get update返回Failed to fetch ".../trusty/Release"
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 8
- 注册时间: 2015-09-01 14:32
- 系统: Ubuntu 14.04.2
执行apt-get update返回Failed to fetch ".../trusty/Release"
[急,折腾一天了。。。。。,在线等]
整个错误返回如下:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... ty/Release Unable to find expected entry "main/binary-9386/Packages" in Release file (wrong sources.list entry or malformed file)
还有其他的两个Failed,这两个是一archive.ubuntu,com/ubuntus....开头的网址
然后我到第一个网址指向的页面,查找了main/binary-9386。
结果是没有的,所以导致我无法update成功。
所以请问,这是怎么回事,要怎么解决?
整个错误返回如下:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... ty/Release Unable to find expected entry "main/binary-9386/Packages" in Release file (wrong sources.list entry or malformed file)
还有其他的两个Failed,这两个是一archive.ubuntu,com/ubuntus....开头的网址
然后我到第一个网址指向的页面,查找了main/binary-9386。
结果是没有的,所以导致我无法update成功。
所以请问,这是怎么回事,要怎么解决?
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
等網路情況好一點 例如清晨時間 再試試
如果還是相同的錯誤訊息
sudo cat /etc/apt/sources.list
把結果複製 貼上來
如果還是相同的錯誤訊息
sudo cat /etc/apt/sources.list
把結果複製 貼上來
-
- 帖子: 8
- 注册时间: 2015-09-01 14:32
- 系统: Ubuntu 14.04.2
Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
先感谢大侠的及时回复。poloshiao 写了:等網路情況好一點 例如清晨時間 再試試
如果還是相同的錯誤訊息
sudo cat /etc/apt/sources.list
把結果複製 貼上來
因为本机现在无法进入图形界面,所以我就直接说明目前的sources.list是什么吧,就是官方的source.list.
代码: 全选
deb http://archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted
看起来应该是i386才对啊。
- astolia
- 论坛版主
- 帖子: 6703
- 注册时间: 2008-09-18 13:11
Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
可能是apt的配置弄坏了,考虑到i和9在键盘上的相近,也许是之前误输入了?
用 apt-config dump | grep Architecture 看输出中是不是弄成了9386
用 apt-config dump | grep Architecture 看输出中是不是弄成了9386
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
1. 你這個是正常情況應該如此deb http://archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted
現在要發現的是 有沒有 不正常情況
2. tty1 ~ tty6 console 界面因为本机现在无法进入图形界面
2-1. sudo apt-get install pastebinit
2-2. sudo cat /etc/apt/sources.list | pastebinit
會回應 http://paste.ubuntu.com/xxxxxxx # xxxxxxx 是一組數字
2-3. 把 http://paste.ubuntu.com/xxxxxxx 貼上來
-
- 帖子: 8
- 注册时间: 2015-09-01 14:32
- 系统: Ubuntu 14.04.2
Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
是的,我看到dump出的结果astolia 写了:可能是apt的配置弄坏了,考虑到i和9在键盘上的相近,也许是之前误输入了?
用 apt-config dump | grep Architecture 看输出中是不是弄成了9386
代码: 全选
APT::Architecture "amd64";
APT::Architectures "";
APT:Architectures:: "amd64";
APT:Architectures:: "i386";
APT:Architectures:: "9386";
-
- 帖子: 8
- 注册时间: 2015-09-01 14:32
- 系统: Ubuntu 14.04.2
Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
Hi poloshiao,poloshiao 写了:1. 你這個是正常情況應該如此deb http://archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted
現在要發現的是 有沒有 不正常情況2. tty1 ~ tty6 console 界面因为本机现在无法进入图形界面
2-1. sudo apt-get install pastebinit
2-2. sudo cat /etc/apt/sources.list | pastebinit
會回應 http://paste.ubuntu.com/xxxxxxx # xxxxxxx 是一組數字
2-3. 把 http://paste.ubuntu.com/xxxxxxx 貼上來
因为无法执行update,所以安装sudo apt-get install pastebinit 也是无法安装的。
我贴的source.list就是我按照机器中的source.list手写上来的,这个放心。
不过现在换成aliyun了。
我觉得应该不是source.list的问题,而是那个为何get 9386的问题。
-
- 帖子: 8
- 注册时间: 2015-09-01 14:32
- 系统: Ubuntu 14.04.2
Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
Hi poloshiao,poloshiao 写了:1. 你這個是正常情況應該如此deb http://archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted
現在要發現的是 有沒有 不正常情況2. tty1 ~ tty6 console 界面因为本机现在无法进入图形界面
2-1. sudo apt-get install pastebinit
2-2. sudo cat /etc/apt/sources.list | pastebinit
會回應 http://paste.ubuntu.com/xxxxxxx # xxxxxxx 是一組數字
2-3. 把 http://paste.ubuntu.com/xxxxxxx 貼上來
因为无法执行update,所以安装sudo apt-get install pastebinit 也是无法安装的。
我贴的source.list就是我按照机器中的source.list手写上来的,这个放心。
不过现在换成aliyun了。
我觉得应该不是source.list的问题,而是那个为何get 9386的问题。
-
- 帖子: 8
- 注册时间: 2015-09-01 14:32
- 系统: Ubuntu 14.04.2
Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
Hi poloshiao,poloshiao 写了:1. 你這個是正常情況應該如此deb http://archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted
現在要發現的是 有沒有 不正常情況2. tty1 ~ tty6 console 界面因为本机现在无法进入图形界面
2-1. sudo apt-get install pastebinit
2-2. sudo cat /etc/apt/sources.list | pastebinit
會回應 http://paste.ubuntu.com/xxxxxxx # xxxxxxx 是一組數字
2-3. 把 http://paste.ubuntu.com/xxxxxxx 貼上來
因为无法执行update,所以安装sudo apt-get install pastebinit 也是无法安装的。
我贴的source.list就是我按照机器中的source.list手写上来的,这个放心。
不过现在换成aliyun了。
我觉得应该不是source.list的问题,而是那个为何get 9386的问题。
- astolia
- 论坛版主
- 帖子: 6703
- 注册时间: 2008-09-18 13:11
Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
apt的配置文件是/etc/apt/apt.conf和/etc/apt/apt.conf.d下面的。你去检查一下哪个文件里写入了错误的配置
然后去那个文件里把相关行删掉
代码: 全选
grep -l '9386' /etc/apt/apt.conf /etc/apt/apt.conf.d/*
-
- 帖子: 8
- 注册时间: 2015-09-01 14:32
- 系统: Ubuntu 14.04.2
Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
Yes,已经删掉了。不过不是用你的方法,,,,我把dump出来的配置文件,将那行删掉后,然后又用如下的方法给set回去了astolia 写了:apt的配置文件是/etc/apt/apt.conf和/etc/apt/apt.conf.d下面的。你去检查一下哪个文件里写入了错误的配置然后去那个文件里把相关行删掉代码: 全选
grep -l '9386' /etc/apt/apt.conf /etc/apt/apt.conf.d/*
代码: 全选
apt-config -c="filepath"
等修复好了,我在用你的方法再将他设置回去。
太赞了,谢谢大侠。
-
- 帖子: 8
- 注册时间: 2015-09-01 14:32
- 系统: Ubuntu 14.04.2
Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
问题已经解决,真心感谢楼上两位的热心解答。
-
- 帖子: 11
- 注册时间: 2015-11-17 10:41
- 系统: ubuntu14.04
Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
Hi, Poloshiao
我也是一个Ubuntu的新手,今天第一次安装Ubuntu14.04lLTS,我同样也遇到sudo apt-get update 返回Failed to fetch ".../trusty/Release的问题,对于你们上面的解答不太看得懂,还请赐教,谢谢了!
我也是一个Ubuntu的新手,今天第一次安装Ubuntu14.04lLTS,我同样也遇到sudo apt-get update 返回Failed to fetch ".../trusty/Release的问题,对于你们上面的解答不太看得懂,还请赐教,谢谢了!
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
請把我同样也遇到sudo apt-get update 返回Failed to fetch ".../trusty/Release的问题
sudo apt-get update
後出現的文字回應
全部複製貼上來
-
- 帖子: 11
- 注册时间: 2015-11-17 10:41
- 系统: ubuntu14.04
Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
Err http://extras.ubuntu.com trusty InReleasepoloshiao 写了:請把我同样也遇到sudo apt-get update 返回Failed to fetch ".../trusty/Release的问题
sudo apt-get update
後出現的文字回應
全部複製貼上來
Err http://extras.ubuntu.com trusty Release.gpg
Cannot initiate the connection to extras.ubuntu.com:80 (2001:67c:1360:8c01::23). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::23 80]
Err http://us.archive.ubuntu.com trusty InRelease
Err http://us.archive.ubuntu.com trusty-updates InRelease
Err http://us.archive.ubuntu.com trusty-backports InRelease
Err http://us.archive.ubuntu.com trusty Release.gpg
Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
Err http://us.archive.ubuntu.com trusty-updates Release.gpg
Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
Err http://us.archive.ubuntu.com trusty-backports Release.gpg
Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
Err http://security.ubuntu.com trusty-security InRelease
Err http://security.ubuntu.com trusty-security Release.gpg
Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8c01::19). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::19 80]
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... /InRelease
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... /InRelease
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... /InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... /InRelease
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/t ... elease.gpg Cannot initiate the connection to extras.ubuntu.com:80 (2001:67c:1360:8c01::23). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... elease.gpg Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... elease.gpg Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dis ... elease.gpg Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... elease.gpg Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8c01::19). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::19 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
以上就是出现的错误