执行apt-get update返回Failed to fetch ".../trusty/Release"

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
KylinMountain
帖子: 8
注册时间: 2015-09-01 14:32
系统: Ubuntu 14.04.2

执行apt-get update返回Failed to fetch ".../trusty/Release"

#1

帖子 KylinMountain » 2015-09-01 14:39

[急,折腾一天了。。。。。,在线等]
整个错误返回如下:
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成功。
所以请问,这是怎么回事,要怎么解决?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"

#2

帖子 poloshiao » 2015-09-01 15:06

等網路情況好一點 例如清晨時間 再試試

如果還是相同的錯誤訊息
sudo cat /etc/apt/sources.list
把結果複製 貼上來
KylinMountain
帖子: 8
注册时间: 2015-09-01 14:32
系统: Ubuntu 14.04.2

Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"

#3

帖子 KylinMountain » 2015-09-01 16:00

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
我也有添加aliyun的source,但结果都是一样。我搞不清楚,为什么区fetch binary-9386.
看起来应该是i386才对啊。
头像
astolia
论坛版主
帖子: 6703
注册时间: 2008-09-18 13:11

Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"

#4

帖子 astolia » 2015-09-01 17:38

可能是apt的配置弄坏了,考虑到i和9在键盘上的相近,也许是之前误输入了?
用 apt-config dump | grep Architecture 看输出中是不是弄成了9386
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"

#5

帖子 poloshiao » 2015-09-01 17:41

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
1. 你這個是正常情況應該如此
現在要發現的是 有沒有 不正常情況
因为本机现在无法进入图形界面
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 貼上來
KylinMountain
帖子: 8
注册时间: 2015-09-01 14:32
系统: Ubuntu 14.04.2

Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"

#6

帖子 KylinMountain » 2015-09-01 18:39

astolia 写了:可能是apt的配置弄坏了,考虑到i和9在键盘上的相近,也许是之前误输入了?
用 apt-config dump | grep Architecture 看输出中是不是弄成了9386
是的,我看到dump出的结果

代码: 全选

APT::Architecture "amd64";
APT::Architectures "";
APT:Architectures:: "amd64";
APT:Architectures:: "i386";
APT:Architectures:: "9386";
所以要怎么修改呢?
KylinMountain
帖子: 8
注册时间: 2015-09-01 14:32
系统: Ubuntu 14.04.2

Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"

#7

帖子 KylinMountain » 2015-09-01 18:43

poloshiao 写了:
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
1. 你這個是正常情況應該如此
現在要發現的是 有沒有 不正常情況
因为本机现在无法进入图形界面
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 貼上來
Hi poloshiao,
因为无法执行update,所以安装sudo apt-get install pastebinit 也是无法安装的。
我贴的source.list就是我按照机器中的source.list手写上来的,这个放心。
不过现在换成aliyun了。
我觉得应该不是source.list的问题,而是那个为何get 9386的问题。
KylinMountain
帖子: 8
注册时间: 2015-09-01 14:32
系统: Ubuntu 14.04.2

Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"

#8

帖子 KylinMountain » 2015-09-01 18:48

poloshiao 写了:
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
1. 你這個是正常情況應該如此
現在要發現的是 有沒有 不正常情況
因为本机现在无法进入图形界面
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 貼上來
Hi poloshiao,
因为无法执行update,所以安装sudo apt-get install pastebinit 也是无法安装的。
我贴的source.list就是我按照机器中的source.list手写上来的,这个放心。
不过现在换成aliyun了。
我觉得应该不是source.list的问题,而是那个为何get 9386的问题。
KylinMountain
帖子: 8
注册时间: 2015-09-01 14:32
系统: Ubuntu 14.04.2

Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"

#9

帖子 KylinMountain » 2015-09-01 18:51

poloshiao 写了:
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
1. 你這個是正常情況應該如此
現在要發現的是 有沒有 不正常情況
因为本机现在无法进入图形界面
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 貼上來
Hi poloshiao,
因为无法执行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"

#10

帖子 astolia » 2015-09-01 20:27

apt的配置文件是/etc/apt/apt.conf和/etc/apt/apt.conf.d下面的。你去检查一下哪个文件里写入了错误的配置

代码: 全选

grep -l '9386' /etc/apt/apt.conf /etc/apt/apt.conf.d/*
然后去那个文件里把相关行删掉
KylinMountain
帖子: 8
注册时间: 2015-09-01 14:32
系统: Ubuntu 14.04.2

Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"

#11

帖子 KylinMountain » 2015-09-01 20:32

astolia 写了:apt的配置文件是/etc/apt/apt.conf和/etc/apt/apt.conf.d下面的。你去检查一下哪个文件里写入了错误的配置

代码: 全选

grep -l '9386' /etc/apt/apt.conf /etc/apt/apt.conf.d/*
然后去那个文件里把相关行删掉
Yes,已经删掉了。不过不是用你的方法,,,,我把dump出来的配置文件,将那行删掉后,然后又用如下的方法给set回去了

代码: 全选

apt-config -c="filepath"
把那个dump出的文件给set回去了。。。
等修复好了,我在用你的方法再将他设置回去。

太赞了,谢谢大侠。
KylinMountain
帖子: 8
注册时间: 2015-09-01 14:32
系统: Ubuntu 14.04.2

Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"

#12

帖子 KylinMountain » 2015-09-01 20:34

问题已经解决,真心感谢楼上两位的热心解答。
nangui.hu
帖子: 11
注册时间: 2015-11-17 10:41
系统: ubuntu14.04

Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"

#13

帖子 nangui.hu » 2015-11-17 11:02

Hi, Poloshiao
我也是一个Ubuntu的新手,今天第一次安装Ubuntu14.04lLTS,我同样也遇到sudo apt-get update 返回Failed to fetch ".../trusty/Release的问题,对于你们上面的解答不太看得懂,还请赐教,谢谢了!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"

#14

帖子 poloshiao » 2015-11-17 12:41

我同样也遇到sudo apt-get update 返回Failed to fetch ".../trusty/Release的问题
請把
sudo apt-get update
後出現的文字回應
全部複製貼上來
nangui.hu
帖子: 11
注册时间: 2015-11-17 10:41
系统: ubuntu14.04

Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"

#15

帖子 nangui.hu » 2015-11-17 13:07

poloshiao 写了:
我同样也遇到sudo apt-get update 返回Failed to fetch ".../trusty/Release的问题
請把
sudo apt-get update
後出現的文字回應
全部複製貼上來
Err http://extras.ubuntu.com trusty InRelease

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.
以上就是出现的错误
回复