新人求助:apt-get update问题

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

新人求助:apt-get update问题

#1

帖子 5130386 » 2012-03-20 18:51

我用的是10.04,用的是163的源。但apt-get update一直出现以下内容,请问该如何解决?
错误 http://dl.google.com stable Release.gpg
无法连接上 127.0.0.1:1984 (127.0.0.1)。 - connect (111: 拒绝连接)
错误 http://dl.google.com/linux/chrome/deb/ stable/main Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com lucid Release.gpg
无法连接上 127.0.0.1:1984 (127.0.0.1)。 - connect (111: 拒绝连接)
错误 http://mirrors.163.com/ubuntu/ lucid/main Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid/restricted Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid/universe Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid/multiverse Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com lucid-security Release.gpg
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-security/main Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-security/restricted Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-security/universe Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-security/multiverse Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com lucid-updates Release.gpg
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-updates/main Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-updates/restricted Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-updates/universe Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-updates/multiverse Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com lucid-proposed Release.gpg
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-proposed/main Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-proposed/restricted Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-proposed/universe Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-proposed/multiverse Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com lucid-backports Release.gpg
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-backports/main Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-backports/restricted Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-backports/universe Translation-zh_CN
不能连接到 127.0.0.1:1984:
错误 http://mirrors.163.com/ubuntu/ lucid-backports/multiverse Translation-zh_CN
不能连接到 127.0.0.1:1984:

然后我想要安装awesome,apt-cache search awesome出来能找到软件包,但apt-get install awesome时,我都已经确认安装了,但之后又出现以上错误信息。求助。。。。。
Computer Science != Software Engineering. But both of them are profound.
头像
自由建客
帖子: 13468
注册时间: 2008-07-30 23:21
系统: Debian stable AMD64

Re: 新人求助:apt-get update问题

#2

帖子 自由建客 » 2012-03-20 21:13

cat /etc/resolv.conf
头像
5130386
帖子: 59
注册时间: 2009-03-10 8:46

Re: 新人求助:apt-get update问题

#3

帖子 5130386 » 2012-03-21 9:46

自由建客 写了:cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
Computer Science != Software Engineering. But both of them are profound.
头像
zhaoqingyu51
帖子: 120
注册时间: 2011-10-02 21:06

Re: 新人求助:apt-get update问题

#4

帖子 zhaoqingyu51 » 2012-03-21 9:51

说明连不上那个源,换吧,或者删掉,/etc/apt/sources.lst中把连不上的注释掉。
头像
5130386
帖子: 59
注册时间: 2009-03-10 8:46

Re: 新人求助:apt-get update问题

#5

帖子 5130386 » 2012-03-21 10:21

zhaoqingyu51 写了:说明连不上那个源,换吧,或者删掉,/etc/apt/sources.lst中把连不上的注释掉。
嗯,我之前已经试过了163、上海交大、搜狐、欧洲官方源等各种源列表,都出现类似这样的错误信息。这是不是说明跟我本身的网络有关呢?我目前是在学校内,感觉学校的网络的确是各种限制。
Computer Science != Software Engineering. But both of them are profound.
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 新人求助:apt-get update问题

#6

帖子 eexpress » 2012-03-21 10:26

不能连接到 127.0.0.1:1984
这明显不对嘛。
8.8.8.8 也不应该转到这。你的网关设置不对吧。或者路由器。
● 鸣学
头像
5130386
帖子: 59
注册时间: 2009-03-10 8:46

Re: 新人求助:apt-get update问题

#7

帖子 5130386 » 2012-03-21 10:36

eexpress 写了:不能连接到 127.0.0.1:1984
这明显不对嘛。
8.8.8.8 也不应该转到这。你的网关设置不对吧。或者路由器。
:em20 我是直接连接到学校的无线网络的,网关路由我做不了主....
Computer Science != Software Engineering. But both of them are profound.
chenghaibo
帖子: 98
注册时间: 2010-10-06 18:10

Re: 新人求助:apt-get update问题

#8

帖子 chenghaibo » 2012-03-21 10:59

是不是设了代理,去掉试试
头像
5130386
帖子: 59
注册时间: 2009-03-10 8:46

Re: 新人求助:apt-get update问题

#9

帖子 5130386 » 2012-03-21 11:40

chenghaibo 写了:是不是设了代理,去掉试试
嗯,我echo了下http_proxy,的确是127.0.0.1:1984,但如何查看这个环境变量是在哪个文件内呢?谢谢!
Computer Science != Software Engineering. But both of them are profound.
chenghaibo
帖子: 98
注册时间: 2010-10-06 18:10

Re: 新人求助:apt-get update问题

#10

帖子 chenghaibo » 2012-03-21 22:14

试试系统 首选项 网络代理
头像
5130386
帖子: 59
注册时间: 2009-03-10 8:46

Re: 新人求助:apt-get update问题

#11

帖子 5130386 » 2012-03-22 14:22

之前我在/etc/environment里的确发现了http_proxy=http://127.0.0.1:1984,后来我把它删除了,而且echo $http_proxy之后的确已经没有了。但sudo apt-get update还是出现一楼的情况。。。。
:em20
Computer Science != Software Engineering. But both of them are profound.
so5320
帖子: 49
注册时间: 2011-08-30 23:45

Re: 新人求助:apt-get update问题

#12

帖子 so5320 » 2012-03-25 17:33

的确是代理的问题
chenghaibo
帖子: 98
注册时间: 2010-10-06 18:10

Re: 新人求助:apt-get update问题

#13

帖子 chenghaibo » 2012-03-28 23:00

试试系统->首选项->网络代理,去掉代理,应用到整个系统。
或者修改/etc/apt/apt.conf,这里会有设置apt的代理。
回复