64位1410升级出错

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

64位1410升级出错

#1

帖子 dfsr » 2014-11-07 21:24

每天都有那个红色的惊叹号:The update information is outdate.即使运行:sudo apt-get update,每次运行都出错:
Get:5 http://cn.archive.ubuntu.com utopic/main Sources [1,046 kB]
Get:6 http://cn.archive.ubuntu.com utopic/restricted Sources [5,115 B]
Err http://security.ubuntu.com utopic-security InRelease

Err http://security.ubuntu.com utopic-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://ppa.launchpad.net utopic InRelease

Err http://ppa.launchpad.net utopic InRelease

Err http://ppa.launchpad.net utopic Release.gpg
Could not resolve 'ppa.launchpad.net'
Err http://ppa.launchpad.net utopic Release.gpg
Could not resolve 'ppa.launchpad.net'
Err http://dl.google.com stable InRelease

Err http://dl.google.com stable Release.gpg
Could not resolve 'dl.google.com'

Err http://cn.archive.ubuntu.com utopic/universe Sources
Bad header line [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic/restricted amd64 Packages
Bad header line [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic/restricted i386 Packages
Bad header line [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic/universe i386 Packages
Bad header line [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic/multiverse i386 Packages
Bad header line [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic-updates/main Sources
Bad header line [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic-updates/restricted Sources
Bad header line [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic-updates/main amd64 Packages
Bad header line [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic-updates/restricted amd64 Packages
Bad header line [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic-updates/multiverse amd64 Packages
Bad header line [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic-updates/restricted i386 Packages
Bad header line [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic-updates/universe i386 Packages
Bad header line [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic-updates/multiverse i386 Packages
Bad header line [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic-updates/main Translation-en
Bad header line [IP: 202.118.1.64 80]
Get:24 http://cn.archive.ubuntu.com utopic-updates/multiverse Translation-en
Hit http://cn.archive.ubuntu.com utopic-updates/restricted Translation-en
Err http://cn.archive.ubuntu.com utopic-backports/multiverse Sources
404 Not Found [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic-backports/main amd64 Packages
404 Not Found [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic-backports/restricted amd64 Packages
404 Not Found [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic-backports/multiverse amd64 Packages
404 Not Found [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic-backports/multiverse i386 Packages
404 Not Found [IP: 202.118.1.64 80]
Get:25 http://cn.archive.ubuntu.com utopic-backports/multiverse Translation-en
Get:26 http://cn.archive.ubuntu.com utopic-backports/restricted Translation-en
Get:27 http://cn.archive.ubuntu.com utopic/main Translation-en [956 kB]
Get:28 http://cn.archive.ubuntu.com utopic/multiverse Translation-en [122 kB]
Err http://cn.archive.ubuntu.com utopic/restricted Translation-en
Bad header line [IP: 202.118.1.64 80]
Err http://cn.archive.ubuntu.com utopic/universe Translation-en
Bad header line [IP: 202.118.1.64 80]
Fetched 12.0 MB in 10min 28s (19.1 kB/s)
Reading package lists... Done
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... /InRelease

W: Failed to fetch http://dl.google.com/linux/chrome/deb/d ... /InRelease

W: Failed to fetch http://ppa.launchpad.net/rvm/smplayer/u ... /InRelease

W: Failed to fetch http://ppa.launchpad.net/ubuntu-x-swat/ ... /InRelease

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... ce/Sources Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 4/Packages Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 6/Packages Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 6/Packages Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 6/Packages Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... slation-en Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... slation-en Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... ce/Sources Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... ce/Sources Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 4/Packages Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 4/Packages Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 4/Packages Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 6/Packages Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 6/Packages Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 6/Packages Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... slation-en Bad header line [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 4/Packages 404 Not Found [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 4/Packages 404 Not Found [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 4/Packages 404 Not Found [IP: 202.118.1.64 80]

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found [IP: 202.118.1.64 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... elease.gpg Could not resolve 'security.ubuntu.com'

W: Failed to fetch http://ppa.launchpad.net/rvm/smplayer/u ... elease.gpg Could not resolve 'ppa.launchpad.net'

W: Failed to fetch http://ppa.launchpad.net/ubuntu-x-swat/ ... elease.gpg Could not resolve 'ppa.launchpad.net'

W: Failed to fetch http://dl.google.com/linux/chrome/deb/d ... elease.gpg Could not resolve 'dl.google.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.

我到sources.list如下(这个是安装时生成到,我只加了最下面两行):
# deb cdrom:[Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1)]/ utopic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ utopic main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ utopic-updates main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ utopic universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic universe
deb http://cn.archive.ubuntu.com/ubuntu/ utopic-updates universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cn.archive.ubuntu.com/ubuntu/ utopic multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu utopic-security main restricted
deb-src http://security.ubuntu.com/ubuntu utopic-security main restricted
deb http://security.ubuntu.com/ubuntu utopic-security universe
deb-src http://security.ubuntu.com/ubuntu utopic-security universe
deb http://security.ubuntu.com/ubuntu utopic-security multiverse
deb-src http://security.ubuntu.com/ubuntu utopic-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu utopic partner
# deb-src http://archive.canonical.com/ubuntu utopic partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu utopic main
deb-src http://extras.ubuntu.com/ubuntu utopic main

##aliyun
deb http://mirrors.aliyun.com/ubuntu/ utopic main
deb-src http://mirrors.aliyun.com/ubuntu/ utopic main
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 64位1410升级出错

#2

帖子 poloshiao » 2014-11-07 22:40

我到sources.list如下(这个是安装时生成到,我只加了最下面两行):
##aliyun
deb http://mirrors.aliyun.com/ubuntu/ utopic main
deb-src http://mirrors.aliyun.com/ubuntu/ utopic main
deb http://cn.archive.ubuntu.com/ubuntu/ utopic main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic main restricted
1. 兩個 main 套件庫 重複了
必須移除其中一個

其它問題 可能跟你的 dns 有關
把下面指令 複製 貼進終端機 執行
2. sudo ls -al /etc/resolv.conf
3. sudo cat /run/resolvconf/resolv.conf
把結果直接複製 貼上來
dfsr
帖子: 234
注册时间: 2007-10-20 22:48

Re: 64位1410升级出错

#3

帖子 dfsr » 2014-11-08 8:57

poloshiao 写了:
我到sources.list如下(这个是安装时生成到,我只加了最下面两行):
##aliyun
deb http://mirrors.aliyun.com/ubuntu/ utopic main
deb-src http://mirrors.aliyun.com/ubuntu/ utopic main
deb http://cn.archive.ubuntu.com/ubuntu/ utopic main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ utopic main restricted
1. 兩個 main 套件庫 重複了
必須移除其中一個

其它問題 可能跟你的 dns 有關
把下面指令 複製 貼進終端機 執行
2. sudo ls -al /etc/resolv.conf
3. sudo cat /run/resolvconf/resolv.conf
把結果直接複製 貼上來
您好,命令好像被拒绝了:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 64位1410升级出错

#4

帖子 poloshiao » 2014-11-08 9:10

命令好像被拒绝了:
把被拒絕的指令 回應文字 全部複製 貼上來
可能情況很多 無從憑空想像
dfsr
帖子: 234
注册时间: 2007-10-20 22:48

Re: 64位1410升级出错

#5

帖子 dfsr » 2014-11-08 16:54

poloshiao 写了:
命令好像被拒绝了:
把被拒絕的指令 回應文字 全部複製 貼上來
可能情況很多 無從憑空想像
就这些提示,试了几遍都这样:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1

另外把重复的删掉问题依然。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 64位1410升级出错

#6

帖子 poloshiao » 2014-11-08 18:13

2. sudo ls -al /etc/resolv.conf
把結果直接複製 貼上來
dfsr
帖子: 234
注册时间: 2007-10-20 22:48

Re: 64位1410升级出错

#7

帖子 dfsr » 2014-11-09 13:26

poloshiao 写了:
2. sudo ls -al /etc/resolv.conf
把結果直接複製 貼上來
结果如下:
lrwxrwxrwx 1 root root 29 10月 24 15:37 /etc/resolv.conf -> ../run/resolvconf/resolv.conf

感谢您的耐心!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 64位1410升级出错

#8

帖子 poloshiao » 2014-11-09 13:33

1. 安裝 gksu 套件

2. gksudo gedit /run/resolvconf/resolv.conf
加上這兩行在 nameserver 127.0.1.1 下方
nameserver 8.8.8.8
nameserver 8.8.4.4

3. ping -c 3 forum.ubuntu.org.cn
看看 有沒有 回應

4. 如果有 回應
sudo apt-get update
sudo apt-get upgrade

5. 如果有效 請再貼文
dfsr
帖子: 234
注册时间: 2007-10-20 22:48

Re: 64位1410升级出错

#9

帖子 dfsr » 2014-11-09 16:51

poloshiao 写了:1. 安裝 gksu 套件

2. gksudo gedit /run/resolvconf/resolv.conf
加上這兩行在 nameserver 127.0.1.1 下方
nameserver 8.8.8.8
nameserver 8.8.4.4

3. ping -c 3 forum.ubuntu.org.cn
看看 有沒有 回應

4. 如果有 回應
sudo apt-get update
sudo apt-get upgrade

5. 如果有效 請再貼文
非常感谢,加上那两行nameserver那个红色惊叹号就消失了,到现在2个小时了。如果明天不出现应该就没有问题了,非常感谢!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 64位1410升级出错

#10

帖子 poloshiao » 2014-11-09 18:23

如果明天不出现应该就没有问题了,非常感谢!
/run/resolvconf/resolv.conf
1. 重開機
這個檔案 會重新更新
你前面加的兩行 就不見了
/etc/resolvconf/resolv.conf.d/head
2. 那兩行 需要加在這個檔案 才會永遠有效 不會消失

3. 每次開機
network-manager 從
/etc/resolvconf/resolv.conf.d/head
讀取資料
去更新
/run/resolvconf/resolv.conf
然後
/etc/resolv.conf
軟連結到
/run/resolvconf/resolv.conf

4. 上網時 到 /etc/resolv.conf 讀取 nameserver
dfsr
帖子: 234
注册时间: 2007-10-20 22:48

Re: 64位1410升级出错

#11

帖子 dfsr » 2014-11-11 16:28

poloshiao 写了:
如果明天不出现应该就没有问题了,非常感谢!
/run/resolvconf/resolv.conf
1. 重開機
這個檔案 會重新更新
你前面加的兩行 就不見了
/etc/resolvconf/resolv.conf.d/head
2. 那兩行 需要加在這個檔案 才會永遠有效 不會消失

3. 每次開機
network-manager 從
/etc/resolvconf/resolv.conf.d/head
讀取資料
去更新
/run/resolvconf/resolv.conf
然後
/etc/resolv.conf
軟連結到
/run/resolvconf/resolv.conf

4. 上網時 到 /etc/resolv.conf 讀取 nameserver
多谢解答!
回复