当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 28 篇帖子 ]  前往页数 1, 2  下一页
作者 内容
1 楼 
 文章标题 : 执行apt-get update返回Failed to fetch ".../trusty/Release"
帖子发表于 : 2015-09-01 14:39 

注册: 2015-09-01 14:32
帖子: 8
系统: Ubuntu 14.04.2
送出感谢: 2
接收感谢: 0 次
[急,折腾一天了。。。。。,在线等]
整个错误返回如下:
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成功。
所以请问,这是怎么回事,要怎么解决?


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
帖子发表于 : 2015-09-01 15:06 

注册: 2009-08-04 16:33
帖子: 16882
送出感谢: 21
接收感谢: 1825
等網路情況好一點 例如清晨時間 再試試

如果還是相同的錯誤訊息
sudo cat /etc/apt/sources.list
把結果複製 貼上來


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
帖子发表于 : 2015-09-01 16:00 

注册: 2015-09-01 14:32
帖子: 8
系统: Ubuntu 14.04.2
送出感谢: 2
接收感谢: 0 次
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才对啊。


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
帖子发表于 : 2015-09-01 17:38 
头像

注册: 2008-09-18 13:11
帖子: 2781
送出感谢: 1
接收感谢: 453
可能是apt的配置弄坏了,考虑到i和9在键盘上的相近,也许是之前误输入了?
用 apt-config dump | grep Architecture 看输出中是不是弄成了9386


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
帖子发表于 : 2015-09-01 17:41 

注册: 2009-08-04 16:33
帖子: 16882
送出感谢: 21
接收感谢: 1825
引用:
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 貼上來



_________________
评价: 3.7% KylinMountain
 
页首
 用户资料  
 
6 楼 
 文章标题 : Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
帖子发表于 : 2015-09-01 18:39 

注册: 2015-09-01 14:32
帖子: 8
系统: Ubuntu 14.04.2
送出感谢: 2
接收感谢: 0 次
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";


所以要怎么修改呢?


页首
 用户资料  
 
7 楼 
 文章标题 : Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
帖子发表于 : 2015-09-01 18:43 

注册: 2015-09-01 14:32
帖子: 8
系统: Ubuntu 14.04.2
送出感谢: 2
接收感谢: 0 次
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的问题。


页首
 用户资料  
 
8 楼 
 文章标题 : Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
帖子发表于 : 2015-09-01 18:48 

注册: 2015-09-01 14:32
帖子: 8
系统: Ubuntu 14.04.2
送出感谢: 2
接收感谢: 0 次
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的问题。


页首
 用户资料  
 
9 楼 
 文章标题 : Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
帖子发表于 : 2015-09-01 18:51 

注册: 2015-09-01 14:32
帖子: 8
系统: Ubuntu 14.04.2
送出感谢: 2
接收感谢: 0 次
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的问题。


页首
 用户资料  
 
10 楼 
 文章标题 : Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
帖子发表于 : 2015-09-01 20:27 
头像

注册: 2008-09-18 13:11
帖子: 2781
送出感谢: 1
接收感谢: 453
apt的配置文件是/etc/apt/apt.conf和/etc/apt/apt.conf.d下面的。你去检查一下哪个文件里写入了错误的配置
代码:
grep -l '9386' /etc/apt/apt.conf /etc/apt/apt.conf.d/*

然后去那个文件里把相关行删掉



_________________
评价: 3.7% KylinMountain
 
页首
 用户资料  
 
11 楼 
 文章标题 : Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
帖子发表于 : 2015-09-01 20:32 

注册: 2015-09-01 14:32
帖子: 8
系统: Ubuntu 14.04.2
送出感谢: 2
接收感谢: 0 次
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回去了。。。
等修复好了,我在用你的方法再将他设置回去。

太赞了,谢谢大侠。


页首
 用户资料  
 
12 楼 
 文章标题 : Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
帖子发表于 : 2015-09-01 20:34 

注册: 2015-09-01 14:32
帖子: 8
系统: Ubuntu 14.04.2
送出感谢: 2
接收感谢: 0 次
问题已经解决,真心感谢楼上两位的热心解答。


页首
 用户资料  
 
13 楼 
 文章标题 : Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
帖子发表于 : 2015-11-17 11:02 

注册: 2015-11-17 10:41
帖子: 11
系统: ubuntu14.04
送出感谢: 0 次
接收感谢: 0 次
Hi, Poloshiao
我也是一个Ubuntu的新手,今天第一次安装Ubuntu14.04lLTS,我同样也遇到sudo apt-get update 返回Failed to fetch ".../trusty/Release的问题,对于你们上面的解答不太看得懂,还请赐教,谢谢了!


页首
 用户资料  
 
14 楼 
 文章标题 : Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
帖子发表于 : 2015-11-17 12:41 

注册: 2009-08-04 16:33
帖子: 16882
送出感谢: 21
接收感谢: 1825
引用:
我同样也遇到sudo apt-get update 返回Failed to fetch ".../trusty/Release的问题

請把
sudo apt-get update
後出現的文字回應
全部複製貼上來


页首
 用户资料  
 
15 楼 
 文章标题 : Re: 执行apt-get update返回Failed to fetch ".../trusty/Release"
帖子发表于 : 2015-11-17 13:07 

注册: 2015-11-17 10:41
帖子: 11
系统: ubuntu14.04
送出感谢: 0 次
接收感谢: 0 次
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.
以上就是出现的错误


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 28 篇帖子 ]  前往页数 1, 2  下一页

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 0 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译