糟了!你大概是把原来的源列表给冲掉了。现在开始,我让你执行一条命令你执行一条,不要再打任何多余的命令!!!马上把每条命令的结果贴上来!!我们尝试来找回你原来的源列表文件,再错了就更麻烦了!!aq9807xin 写了:没有啊
第一条命令:
代码: 全选
ls -l /etc/apt/sources*
糟了!你大概是把原来的源列表给冲掉了。现在开始,我让你执行一条命令你执行一条,不要再打任何多余的命令!!!马上把每条命令的结果贴上来!!我们尝试来找回你原来的源列表文件,再错了就更麻烦了!!aq9807xin 写了:没有啊
代码: 全选
ls -l /etc/apt/sources*
严格照我前面说的做,我们来尝试把原来的内容找回来--别紧张,只要不再乱试,就算那个文件中的内容丢了,我也有一台12.04的机器,可以帮你把基本的源列表找回来。aq9807xin 写了:可是我打开source.list文件,里面确实什么也没有
怎么回事?你这个文件最后的修改日期是Aug 21--8月21日!!,不过文件有3366字节,说明里面的内容应该还在,这是个好消息aq9807xin 写了:jjy@jjy:~$ ls -l /etc/apt/sources*
-rw-r--r-- 1 root root 3366 Aug 21 00:15 /etc/apt/sources.list
/etc/apt/sources.list.d:
total 0
jjy@jjy:~$
代码: 全选
cd /etc/apt
cat ./sources.list
ok,已经看到你的源列表文件中的内容了,里面的东西都是你原来的,还没有正确编辑过。--虚惊一场!taohunter 写了:我好象已经知道你犯的错误是怎么回事了,在打开/etc/apt/sources.list文件时,你少打了一个¨s¨!!!
代码: 全选
cat /etc/apt/sources.list
ok,现在update至少已经包含了utopic的内容了。那些错误的东西是你以前自己改的,和咱们要做的事无关,所以先不去管他。继续做apt-get install那一步。。。aq9807xin 写了:jjy@jjy:~$ sudo gedit /etc/apt/sources.list
[sudo] password for jjy:
jjy@jjy:~$ sudo gedit /etc/apt/sources.list
jjy@jjy:~$ sudo apt-get update
Hit http://cn.archive.ubuntu.com precise Release.gpg
Get:1 http://archive.ubuntu.com utopic Release.gpg [933 B]
Get:2 http://archive.ubuntu.com utopic-updates Release.gpg [933 B]
Get:3 http://archive.ubuntu.com utopic-security Release.gpg [933 B]
Get:4 http://archive.ubuntu.com utopic Release [112 kB]
Hit http://cn.archive.ubuntu.com precise-updates Release.gpg
Get:5 http://security.ubuntu.com precise-security Release.gpg [198 B]
Hit http://cn.archive.ubuntu.com precise-backports Release.gpg
Get:6 http://security.ubuntu.com precise-security Release [50.7 kB]
Hit http://cn.archive.ubuntu.com precise Release
Get:7 http://archive.ubuntu.com utopic-updates Release [58.5 kB]
Hit http://cn.archive.ubuntu.com precise-updates Release
Hit http://extras.ubuntu.com precise Release.gpg
Hit http://cn.archive.ubuntu.com precise-backports Release
Hit http://extras.ubuntu.com precise Release
Hit http://extras.ubuntu.com precise/main Sources
Hit http://cn.archive.ubuntu.com precise/main Sources
Hit http://extras.ubuntu.com precise/main amd64 Packages
Hit http://extras.ubuntu.com precise/main i386 Packages
Ign http://extras.ubuntu.com precise/main TranslationIndex
Get:8 http://archive.ubuntu.com utopic-security Release [58.5 kB]
Get:9 http://cn.archive.ubuntu.com precise/restricted Sources [5,470 B]
Get:10 http://archive.ubuntu.com utopic/main amd64 Packages [1,331 kB]
Hit http://cn.archive.ubuntu.com precise/universe Sources
Hit http://cn.archive.ubuntu.com precise/multiverse Sources
Hit http://cn.archive.ubuntu.com precise/main amd64 Packages
Get:11 http://security.ubuntu.com precise-security/main Sources [105 kB]
Get:12 http://cn.archive.ubuntu.com precise/restricted amd64 Packages [8,452 B]
Get:13 http://security.ubuntu.com precise-security/restricted Sources [2,494 B]
Get:14 http://security.ubuntu.com precise-security/universe Sources [32.7 kB]
Get:15 http://security.ubuntu.com precise-security/multiverse Sources [1,786 B]
Get:16 http://security.ubuntu.com precise-security/main amd64 Packages [416 kB]
Hit http://cn.archive.ubuntu.com precise/universe amd64 Packages
Ign http://extras.ubuntu.com precise/main Translation-en_US
Ign http://extras.ubuntu.com precise/main Translation-en
Hit http://cn.archive.ubuntu.com precise/multiverse amd64 Packages
Get:17 http://security.ubuntu.com precise-security/restricted amd64 Packages [4,627 B]
Get:18 http://security.ubuntu.com precise-security/universe amd64 Packages [96.7 kB]
Get:19 http://cn.archive.ubuntu.com precise/main i386 Packages [1,274 kB]
Get:20 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2,451 B]
Get:21 http://security.ubuntu.com precise-security/main i386 Packages [444 kB]
Get:22 http://security.ubuntu.com precise-security/restricted i386 Packages [4,620 B]
Get:23 http://security.ubuntu.com precise-security/universe i386 Packages [102 kB]
Get:24 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,644 B]
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Get:25 http://archive.ubuntu.com utopic/restricted amd64 Packages [13.4 kB]
Get:26 http://archive.ubuntu.com utopic/main i386 Packages [1,327 kB]
Hit http://cn.archive.ubuntu.com precise/restricted i386 Packages
Hit http://cn.archive.ubuntu.com precise/universe i386 Packages
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://cn.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://cn.archive.ubuntu.com precise/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://cn.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://cn.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe Translation-en
Get:27 http://security.ubuntu.com precise-security/main Translation-en [164 kB]
Hit http://cn.archive.ubuntu.com precise/universe TranslationIndex
Hit http://cn.archive.ubuntu.com precise-updates/main Sources
Hit http://cn.archive.ubuntu.com precise-updates/main amd64 Packages
Get:28 http://cn.archive.ubuntu.com precise-updates/main i386 Packages [856 kB]
100% [28 Packages bzip2 0 B] [Waiting for headers] [Waiting for headers]
bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
Get:29 http://archive.ubuntu.com utopic/restricted i386 Packages [13.7 kB]
Get:30 http://archive.ubuntu.com utopic/main TranslationIndex [3,632 B]
Get:31 http://archive.ubuntu.com utopic/restricted TranslationIndex [2,797 B]
Get:32 http://archive.ubuntu.com utopic-updates/main amd64 Packages [14 B]
Get:33 http://archive.ubuntu.com utopic-updates/restricted amd64 Packages [14 B]
Get:34 http://cn.archive.ubuntu.com precise-updates/multiverse i386 Packages [856 kB]
100% [34 Packages bzip2 0 B] [Waiting for headers] [Waiting for headers]
bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
Get:35 http://archive.ubuntu.com utopic-updates/main i386 Packages [14 B]
Get:36 http://archive.ubuntu.com utopic-updates/restricted i386 Packages [14 B]
Hit http://cn.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://cn.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Get:37 http://archive.ubuntu.com utopic-updates/main TranslationIndex [70 B]
Hit http://cn.archive.ubuntu.com precise-updates/restricted TranslationIndex
Get:38 http://archive.ubuntu.com utopic-updates/restricted TranslationIndex [70 B]
Hit http://cn.archive.ubuntu.com precise-updates/universe TranslationIndex
Get:39 http://archive.ubuntu.com utopic-security/main amd64 Packages [14 B]
Get:40 http://archive.ubuntu.com utopic-security/restricted amd64 Packages [14 B]
Get:41 http://archive.ubuntu.com utopic-security/main i386 Packages [14 B]
Get:42 http://archive.ubuntu.com utopic-security/restricted i386 Packages [14 B]
Get:43 http://archive.ubuntu.com utopic-security/main TranslationIndex [70 B]
Get:44 http://cn.archive.ubuntu.com precise-backports/universe Sources [477 kB]
Get:45 http://cn.archive.ubuntu.com precise-backports/multiverse Sources [477 kB]
Get:46 http://cn.archive.ubuntu.com precise-backports/main amd64 Packages [856 kB]
100% [46 Packages bzip2 0 B] [Waiting for headers] [Waiting for headers]
bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
Get:47 http://cn.archive.ubuntu.com precise-backports/restricted amd64 Packages [856 kB]
Get:48 http://archive.ubuntu.com utopic-security/restricted TranslationIndex [70 B]
100% [47 Packages bzip2 0 B] [Waiting for headers] 429 kB/s 0s
bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
Get:49 http://archive.ubuntu.com utopic/main Translation-en [767 kB]
Get:50 http://cn.archive.ubuntu.com precise-backports/universe amd64 Packages [856 kB]
93% [50 Packages bzip2 0 B] [Waiting for headers] [49 Translation-en 6,834 B/76
bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
Get:51 http://cn.archive.ubuntu.com precise-backports/multiverse amd64 Packages [856 kB]
94% [51 Packages bzip2 0 B] [Waiting for headers] [49 Translation-en 25.4 kB/76
bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
Get:52 http://cn.archive.ubuntu.com precise-backports/main i386 Packages [856 kB]
95% [52 Packages bzip2 0 B] [Waiting for headers] [49 Translation-en 92.5 kB/76
bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
Get:53 http://cn.archive.ubuntu.com precise-backports/restricted i386 Packages [856 kB]
96% [53 Packages bzip2 0 B] [Waiting for headers] [49 Translation-en 142 kB/767
bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
Get:54 http://cn.archive.ubuntu.com precise-backports/universe i386 Packages [856 kB]
96% [54 Packages bzip2 0 B] [Waiting for headers] [49 Translation-en 154 kB/767
bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
Get:55 http://cn.archive.ubuntu.com precise-backports/multiverse i386 Packages [856 kB]
96% [55 Packages bzip2 0 B] [Waiting for headers] [49 Translation-en 208 kB/767
bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
Hit http://cn.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://cn.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://cn.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://cn.archive.ubuntu.com precise-backports/universe TranslationIndex
Get:56 http://cn.archive.ubuntu.com precise/main Translation-en [726 kB]
Get:57 http://cn.archive.ubuntu.com precise/multiverse Translation-en [93.4 kB]
Get:58 http://cn.archive.ubuntu.com precise/restricted Translation-en [2,395 B]
Get:59 http://cn.archive.ubuntu.com precise/universe Translation-en [3,341 kB]
Get:60 http://archive.ubuntu.com utopic/restricted Translation-en [3,548 B]
Get:61 http://archive.ubuntu.com utopic-updates/main Translation-en [14 B]
Get:62 http://archive.ubuntu.com utopic-updates/restricted Translation-en [14 B]
Get:63 http://archive.ubuntu.com utopic-security/main Translation-en [14 B]
Get:64 http://archive.ubuntu.com utopic-security/restricted Translation-en [14 B]
Get:65 http://cn.archive.ubuntu.com precise-updates/restricted i386 Packages [1,109 kB]
Get:66 http://cn.archive.ubuntu.com precise-updates/main Translation-en [362 kB]
Get:67 http://cn.archive.ubuntu.com precise-updates/multiverse Translation-en [9,010 B]
Get:68 http://cn.archive.ubuntu.com precise-updates/restricted Translation-en [3,027 B]
Get:69 http://cn.archive.ubuntu.com precise-updates/universe Translation-en [144 kB]
Get:70 http://cn.archive.ubuntu.com precise-backports/main Translation-en [5,882 B]
Get:71 http://cn.archive.ubuntu.com precise-backports/multiverse Translation-en [4,610 B]
Get:72 http://cn.archive.ubuntu.com precise-backports/restricted Translation-en [14 B]
Get:73 http://cn.archive.ubuntu.com precise-backports/universe Translation-en [33.8 kB]
Err http://cn.archive.ubuntu.com precise-updates/restricted Sources
404 Not Found
Err http://cn.archive.ubuntu.com precise-updates/universe Sources
404 Not Found
Err http://cn.archive.ubuntu.com precise-updates/multiverse Sources
404 Not Found
Err http://cn.archive.ubuntu.com precise-updates/restricted amd64 Packages
404 Not Found
Err http://cn.archive.ubuntu.com precise-updates/universe amd64 Packages
404 Not Found
Err http://cn.archive.ubuntu.com precise-updates/multiverse amd64 Packages
404 Not Found
Err http://cn.archive.ubuntu.com precise-updates/universe i386 Packages
404 Not Found
Err http://cn.archive.ubuntu.com precise-updates/multiverse i386 Packages
404 Not Found
Err http://cn.archive.ubuntu.com precise-backports/main Sources
404 Not Found
Err http://cn.archive.ubuntu.com precise-backports/restricted Sources
404 Not Found
Err http://cn.archive.ubuntu.com precise-backports/restricted amd64 Packages
404 Not Found
Err http://cn.archive.ubuntu.com precise-backports/universe amd64 Packages
404 Not Found
Err http://cn.archive.ubuntu.com precise-backports/multiverse amd64 Packages
404 Not Found
Err http://cn.archive.ubuntu.com precise-backports/main i386 Packages
404 Not Found
Err http://cn.archive.ubuntu.com precise-backports/restricted i386 Packages
404 Not Found
Err http://cn.archive.ubuntu.com precise-backports/universe i386 Packages
404 Not Found
Err http://cn.archive.ubuntu.com precise-backports/multiverse i386 Packages
404 Not Found
Fetched 11.6 MB in 4min 4s (47.5 kB/s)
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 4/Packages 404 Not Found
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 4/Packages 404 Not Found
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 4/Packages 404 Not Found
W: Failed to fetch gzip:/var/lib/apt/lists/partial/cn.archive.ubuntu.com_ubuntu_dists_precise-updates_main_binary-i386_Packages Hash Sum mismatch
W: Failed to fetch gzip:/var/lib/apt/lists/partial/cn.archive.ubuntu.com_ubuntu_dists_precise-updates_restricted_binary-i386_Packages Hash Sum mismatch
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_precise-security_main_source_Sources Hash Sum mismatch
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/cn.archive.ubuntu.com_ubuntu_dists_precise-backports_universe_source_Sources Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/cn.archive.ubuntu.com_ubuntu_dists_precise-backports_multiverse_source_Sources Hash Sum mismatch
W: Failed to fetch gzip:/var/lib/apt/lists/partial/cn.archive.ubuntu.com_ubuntu_dists_precise-backports_main_binary-amd64_Packages Hash Sum mismatch
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 4/Packages 404 Not Found
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 4/Packages 404 Not Found
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 4/Packages 404 Not Found
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
jjy@jjy:~$
Good job!!! 也就是说现在上网一切正常了对吗?那个sources.list有没有给最后三行加上¨#¨号?一定要加哦!!否则以后你一运行sudo at-get upgrade系统就乱了。。。aq9807xin 写了:大虾,能上网了。。。。
按照您说做的。。。。又重新启动了一次。。。