【已解决】Ubuntu中执行sudo apt-get install出错:E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

【问题】

折腾:

【未解决】Ubuntu下安装svn

期间,在VMWare下的Ubuntu中,去安装subversion,结果出错:

crifan@ubuntu:pcre$ sudo apt-get install subversion
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dkms fakeroot g++-4.7 libdumbnet1 libstdc++6-4.7-dev zerofree
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libapr1 libaprutil1 libserf1 libsvn1
Suggested packages:
  subversion-tools db5.1-util
The following NEW packages will be installed:
  libapr1 libaprutil1 libserf1 libsvn1 subversion
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,615 kB of archives.
After this operation, 4,578 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://mirrors.163.com/ubuntu/ raring/main libapr1 i386 1.4.6-3ubuntu1
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com/ubuntu/ raring/main libaprutil1 i386 1.4.1-3
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com/ubuntu/ raring/main libserf1 i386 1.1.0-2
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com/ubuntu/ raring-security/main libsvn1 i386 1.7.5-1ubuntu3.1
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com/ubuntu/ raring-security/main subversion i386 1.7.5-1ubuntu3.1
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Failed to fetch http://mirrors.163.com/ubuntu/pool/main/a/apr/libapr1_1.4.6-3ubuntu1_i386.deb  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Failed to fetch http://mirrors.163.com/ubuntu/pool/main/a/apr-util/libaprutil1_1.4.1-3_i386.deb  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Failed to fetch http://mirrors.163.com/ubuntu/pool/main/s/serf/libserf1_1.1.0-2_i386.deb  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Failed to fetch http://mirrors.163.com/ubuntu/pool/main/s/subversion/libsvn1_1.7.5-1ubuntu3.1_i386.deb  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Failed to fetch http://mirrors.163.com/ubuntu/pool/main/s/subversion/subversion_1.7.5-1ubuntu3.1_i386.deb  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

即:

E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

【解决过程】

1.参考:

Ubuntu 非官方源设置完美解决 Failed to fetch .. Unable to find expected entry .. in Meta-index file (malformed Release file?)

说是,估计是之前用软件,图形界面方式,去添加源的时候,导致的问题。

2.所以去手动看看sources.list:

gedit /etc/apt/sources.list

当前内容如下:

#add by Crifan Li 2013-08-08, added 163 source
deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

# deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)]/ raring main restricted

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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirrors.163.com/ubuntu/ raring-updates main restricted
deb-src http://mirrors.163.com/ubuntu/ raring-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://mirrors.163.com/ubuntu/ raring universe
deb-src http://mirrors.163.com/ubuntu/ raring universe
deb http://mirrors.163.com/ubuntu/ raring-updates universe
deb-src http://mirrors.163.com/ubuntu/ raring-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://mirrors.163.com/ubuntu/ raring multiverse
deb-src http://mirrors.163.com/ubuntu/ raring multiverse
deb http://mirrors.163.com/ubuntu/ raring-updates multiverse
deb-src http://mirrors.163.com/ubuntu/ raring-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://mirrors.163.com/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ raring-backports main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ raring-security main restricted
deb-src http://mirrors.163.com/ubuntu/ raring-security main restricted
deb http://mirrors.163.com/ubuntu/ raring-security universe
deb-src http://mirrors.163.com/ubuntu/ raring-security universe
deb http://mirrors.163.com/ubuntu/ raring-security multiverse
deb-src http://mirrors.163.com/ubuntu/ raring-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 raring partner
# deb-src http://archive.canonical.com/ubuntu raring 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 raring main
deb-src http://extras.ubuntu.com/ubuntu raring main

很明显,有多个163,所以,需要手动注释掉,变成:

#add by Crifan Li 2013-08-08, added 163 source
deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

# deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)]/ raring main restricted

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

## Major bug fix updates produced after the final release of the
## distribution.
#deb http://mirrors.163.com/ubuntu/ raring-updates main restricted
#deb-src http://mirrors.163.com/ubuntu/ raring-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://mirrors.163.com/ubuntu/ raring universe
#deb-src http://mirrors.163.com/ubuntu/ raring universe
#deb http://mirrors.163.com/ubuntu/ raring-updates universe
#deb-src http://mirrors.163.com/ubuntu/ raring-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://mirrors.163.com/ubuntu/ raring multiverse
#deb-src http://mirrors.163.com/ubuntu/ raring multiverse
#deb http://mirrors.163.com/ubuntu/ raring-updates multiverse
#deb-src http://mirrors.163.com/ubuntu/ raring-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://mirrors.163.com/ubuntu/ raring-backports main restricted universe multiverse
#deb-src http://mirrors.163.com/ubuntu/ raring-backports main restricted universe multiverse

#deb http://mirrors.163.com/ubuntu/ raring-security main restricted
#deb-src http://mirrors.163.com/ubuntu/ raring-security main restricted
#deb http://mirrors.163.com/ubuntu/ raring-security universe
#deb-src http://mirrors.163.com/ubuntu/ raring-security universe
#deb http://mirrors.163.com/ubuntu/ raring-security multiverse
#deb-src http://mirrors.163.com/ubuntu/ raring-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 raring partner
# deb-src http://archive.canonical.com/ubuntu raring 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 raring main
deb-src http://extras.ubuntu.com/ubuntu raring main

3.修改完毕后,再去update一下,结果还是出错:

crifan@ubuntu:pcre$ sudo apt-get update
Err http://extras.ubuntu.com raring Release.gpg
  Something wicked happened resolving 'extras.ubuntu.com:http' (-11 - System error)
Err http://mirrors.163.com precise Release.gpg
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security Release.gpg
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates Release.gpg
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed Release.gpg
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports Release.gpg
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Ign http://mirrors.163.com precise Release
Ign http://extras.ubuntu.com raring Release
Ign http://extras.ubuntu.com raring/main Sources/DiffIndex
Ign http://mirrors.163.com precise-security Release
Ign http://extras.ubuntu.com raring/main i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-updates Release
Ign http://mirrors.163.com precise-proposed Release
Ign http://mirrors.163.com precise-backports Release
Ign http://mirrors.163.com precise/main Sources/DiffIndex
Ign http://mirrors.163.com precise/restricted Sources/DiffIndex
Ign http://mirrors.163.com precise/universe Sources/DiffIndex
Ign http://mirrors.163.com precise/multiverse Sources/DiffIndex
Ign http://mirrors.163.com precise/main i386 Packages/DiffIndex
Ign http://mirrors.163.com precise/restricted i386 Packages/DiffIndex
Ign http://mirrors.163.com precise/universe i386 Packages/DiffIndex
Ign http://mirrors.163.com precise/multiverse i386 Packages/DiffIndex
Err http://extras.ubuntu.com raring/main Translation-en_US
  Something wicked happened resolving 'extras.ubuntu.com:http' (-11 - System error)
Err http://extras.ubuntu.com raring/main Translation-en
  Something wicked happened resolving 'extras.ubuntu.com:http' (-11 - System error)
Ign http://mirrors.163.com precise-security/main Sources/DiffIndex
Err http://extras.ubuntu.com raring/main Sources
  Something wicked happened resolving 'extras.ubuntu.com:http' (-11 - System error)
Ign http://mirrors.163.com precise-security/restricted Sources/DiffIndex
Ign http://mirrors.163.com precise-security/universe Sources/DiffIndex
Err http://extras.ubuntu.com raring/main i386 Packages
  Something wicked happened resolving 'extras.ubuntu.com:http' (-11 - System error)
Ign http://mirrors.163.com precise-security/multiverse Sources/DiffIndex
Ign http://mirrors.163.com precise-security/main i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-security/restricted i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-security/universe i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-security/multiverse i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-updates/main Sources/DiffIndex
Ign http://mirrors.163.com precise-updates/restricted Sources/DiffIndex
Ign http://mirrors.163.com precise-updates/universe Sources/DiffIndex
Ign http://mirrors.163.com precise-updates/multiverse Sources/DiffIndex
Ign http://mirrors.163.com precise-updates/main i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-updates/restricted i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-updates/universe i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-updates/multiverse i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-proposed/main Sources/DiffIndex
Ign http://mirrors.163.com precise-proposed/restricted Sources/DiffIndex
Ign http://mirrors.163.com precise-proposed/universe Sources/DiffIndex
Ign http://mirrors.163.com precise-proposed/multiverse Sources/DiffIndex
Ign http://mirrors.163.com precise-proposed/main i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-proposed/restricted i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-proposed/universe i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-proposed/multiverse i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-backports/main Sources/DiffIndex
Ign http://mirrors.163.com precise-backports/restricted Sources/DiffIndex
Ign http://mirrors.163.com precise-backports/universe Sources/DiffIndex
Ign http://mirrors.163.com precise-backports/multiverse Sources/DiffIndex
Ign http://mirrors.163.com precise-backports/main i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-backports/restricted i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-backports/universe i386 Packages/DiffIndex
Ign http://mirrors.163.com precise-backports/multiverse i386 Packages/DiffIndex
Err http://mirrors.163.com precise/main Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise/main Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise/multiverse Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise/multiverse Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise/restricted Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise/restricted Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise/universe Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise/universe Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/main Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/main Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/multiverse Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/multiverse Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/restricted Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/restricted Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/universe Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/universe Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/main Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/main Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/multiverse Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/multiverse Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/restricted Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/restricted Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/universe Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/universe Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/main Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/main Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/multiverse Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/multiverse Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/restricted Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/restricted Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/universe Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/universe Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/main Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/main Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/multiverse Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/multiverse Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/restricted Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/restricted Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/universe Translation-en_US
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/universe Translation-en
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise/main Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise/restricted Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise/universe Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise/multiverse Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise/main i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise/restricted i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise/universe i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise/multiverse i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/main Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/restricted Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/universe Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/multiverse Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/main i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/restricted i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/universe i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-security/multiverse i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/main Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/restricted Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/universe Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/multiverse Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/main i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/restricted i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/universe i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-updates/multiverse i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/main Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/restricted Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/universe Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/multiverse Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/main i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/restricted i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/universe i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-proposed/multiverse i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/main Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/restricted Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/universe Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/multiverse Sources
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/main i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/restricted i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/universe i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
Err http://mirrors.163.com precise-backports/multiverse i386 Packages
  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)
W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/Release.gpg  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/Release.gpg  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/Release.gpg  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/Release.gpg  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/Release.gpg  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/raring/Release.gpg  Something wicked happened resolving 'extras.ubuntu.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/main/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/main/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/multiverse/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/multiverse/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/restricted/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/restricted/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/universe/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/universe/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/raring/main/i18n/Translation-en_US  Something wicked happened resolving 'extras.ubuntu.com:http' (-11 - System error)

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/raring/main/i18n/Translation-en  Something wicked happened resolving 'extras.ubuntu.com:http' (-11 - System error)

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/raring/main/source/Sources  Something wicked happened resolving 'extras.ubuntu.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/main/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/main/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/multiverse/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/multiverse/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/restricted/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/restricted/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/universe/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/universe/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/raring/main/binary-i386/Packages  Something wicked happened resolving 'extras.ubuntu.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/main/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/main/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/multiverse/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/multiverse/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/restricted/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/restricted/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/universe/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/universe/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/main/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/main/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/multiverse/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/multiverse/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/restricted/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/restricted/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/universe/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/universe/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/main/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/main/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/multiverse/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/multiverse/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/restricted/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/restricted/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/universe/i18n/Translation-en_US  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/universe/i18n/Translation-en  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/main/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/restricted/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/universe/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/multiverse/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/main/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/restricted/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/universe/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise/multiverse/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/main/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/restricted/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/universe/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/multiverse/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/main/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/restricted/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/universe/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/multiverse/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/main/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/restricted/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/universe/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/multiverse/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/main/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/restricted/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/universe/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-updates/multiverse/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/main/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/restricted/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/universe/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/multiverse/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/main/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/restricted/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/universe/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-proposed/multiverse/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/main/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/restricted/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/universe/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/multiverse/source/Sources  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/main/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/restricted/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/universe/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-backports/multiverse/binary-i386/Packages  Something wicked happened resolving 'mirrors.163.com:http' (-11 - System error)

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

4.先去source一下,结果一堆的找不到命令:

crifan@ubuntu:pcre$ sudo souce /etc/apt/sources.list
sudo: souce: command not found
crifan@ubuntu:pcre$ sudo source /etc/apt/sources.list
sudo: source: command not found
crifan@ubuntu:pcre$ source /etc/apt/sources.list
No command 'deb' found, did you mean:
 Command 'dwb' from package 'dwb' (universe)
 Command 'xdeb' from package 'xdeb' (universe)
 Command 'derb' from package 'libicu-dev' (main)
 Command 'debi' from package 'devscripts' (main)
 Command 'debc' from package 'devscripts' (main)
 Command 'dab' from package 'bsdgames' (universe)
deb: command not found
No command 'deb' found, did you mean:
 Command 'debc' from package 'devscripts' (main)
 Command 'derb' from package 'libicu-dev' (main)
 Command 'dab' from package 'bsdgames' (universe)
 Command 'xdeb' from package 'xdeb' (universe)
 Command 'dwb' from package 'dwb' (universe)
 Command 'debi' from package 'devscripts' (main)
deb: command not found
No command 'deb' found, did you mean:
 Command 'debi' from package 'devscripts' (main)
 Command 'debc' from package 'devscripts' (main)
 Command 'derb' from package 'libicu-dev' (main)
 Command 'dab' from package 'bsdgames' (universe)
 Command 'dwb' from package 'dwb' (universe)
 Command 'xdeb' from package 'xdeb' (universe)
deb: command not found
No command 'deb' found, did you mean:
 Command 'dab' from package 'bsdgames' (universe)
 Command 'xdeb' from package 'xdeb' (universe)
 Command 'dwb' from package 'dwb' (universe)
 Command 'derb' from package 'libicu-dev' (main)
 Command 'debi' from package 'devscripts' (main)
 Command 'debc' from package 'devscripts' (main)
deb: command not found
No command 'deb' found, did you mean:
 Command 'derb' from package 'libicu-dev' (main)
 Command 'dwb' from package 'dwb' (universe)
 Command 'dab' from package 'bsdgames' (universe)
 Command 'xdeb' from package 'xdeb' (universe)
 Command 'debi' from package 'devscripts' (main)
 Command 'debc' from package 'devscripts' (main)
deb: command not found
deb-src: command not found
deb-src: command not found
deb-src: command not found
deb-src: command not found
deb-src: command not found
No command 'deb' found, did you mean:
 Command 'debi' from package 'devscripts' (main)
 Command 'debc' from package 'devscripts' (main)
 Command 'derb' from package 'libicu-dev' (main)
 Command 'xdeb' from package 'xdeb' (universe)
 Command 'dwb' from package 'dwb' (universe)
 Command 'dab' from package 'bsdgames' (universe)
deb: command not found
deb-src: command not found
crifan@ubuntu:pcre$ 

5.再去试试sudo apt-get update结果错误依旧。

6.算了,还是参考之前的:

【记录】给Ubuntu更换成163的源(sources.list)

去改为之前的值,结果发现之前没有记录完整的值。

7.所以把所有内容全部换为163:

#add by Crifan Li 2013-08-08, added 163 source
deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

# deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)]/ raring main restricted

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

## Major bug fix updates produced after the final release of the
## distribution.
#deb http://mirrors.163.com/ubuntu/ raring-updates main restricted
#deb-src http://mirrors.163.com/ubuntu/ raring-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://mirrors.163.com/ubuntu/ raring universe
#deb-src http://mirrors.163.com/ubuntu/ raring universe
#deb http://mirrors.163.com/ubuntu/ raring-updates universe
#deb-src http://mirrors.163.com/ubuntu/ raring-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://mirrors.163.com/ubuntu/ raring multiverse
#deb-src http://mirrors.163.com/ubuntu/ raring multiverse
#deb http://mirrors.163.com/ubuntu/ raring-updates multiverse
#deb-src http://mirrors.163.com/ubuntu/ raring-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://mirrors.163.com/ubuntu/ raring-backports main restricted universe multiverse
#deb-src http://mirrors.163.com/ubuntu/ raring-backports main restricted universe multiverse

#deb http://mirrors.163.com/ubuntu/ raring-security main restricted
#deb-src http://mirrors.163.com/ubuntu/ raring-security main restricted
#deb http://mirrors.163.com/ubuntu/ raring-security universe
#deb-src http://mirrors.163.com/ubuntu/ raring-security universe
#deb http://mirrors.163.com/ubuntu/ raring-security multiverse
#deb-src http://mirrors.163.com/ubuntu/ raring-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 raring partner
# deb-src http://archive.canonical.com/ubuntu raring 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 raring main
#deb-src http://extras.ubuntu.com/ubuntu raring main

再试试update:

结果错误依旧。

8.参考之前自己那个帖子,然后把旧的完全恢复过来:

crifan@ubuntu:pcre$ ls /etc/apt/
apt.conf.d     preferences.d  sources.list~        sources.list.d     trustdb.gpg  trusted.gpg.d
apt-file.conf  sources.list   sources.list_backup  sources.list.save  trusted.gpg
crifan@ubuntu:pcre$ sudo cp /etc/apt/sources.list_backup /etc/apt/sources.list

再打开看看原始内容:

#deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)]/ raring main restricted

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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-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://us.archive.ubuntu.com/ubuntu/ raring universe
deb-src http://us.archive.ubuntu.com/ubuntu/ raring universe
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-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://us.archive.ubuntu.com/ubuntu/ raring multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ raring multiverse
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-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://us.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu raring-security main restricted
deb-src http://security.ubuntu.com/ubuntu raring-security main restricted
deb http://security.ubuntu.com/ubuntu raring-security universe
deb-src http://security.ubuntu.com/ubuntu raring-security universe
deb http://security.ubuntu.com/ubuntu raring-security multiverse
deb-src http://security.ubuntu.com/ubuntu raring-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 raring partner
# deb-src http://archive.canonical.com/ubuntu raring 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 raring main
deb-src http://extras.ubuntu.com/ubuntu raring main

然后再把之前的163的内容:

http://mirrors.163.com/.help/ubuntu.html

添加到头部,变成:

#add by Crifan Li 2013-08-12, added 163 source
deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

#deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)]/ raring main restricted

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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-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://us.archive.ubuntu.com/ubuntu/ raring universe
deb-src http://us.archive.ubuntu.com/ubuntu/ raring universe
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-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://us.archive.ubuntu.com/ubuntu/ raring multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ raring multiverse
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-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://us.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu raring-security main restricted
deb-src http://security.ubuntu.com/ubuntu raring-security main restricted
deb http://security.ubuntu.com/ubuntu raring-security universe
deb-src http://security.ubuntu.com/ubuntu raring-security universe
deb http://security.ubuntu.com/ubuntu raring-security multiverse
deb-src http://security.ubuntu.com/ubuntu raring-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 raring partner
# deb-src http://archive.canonical.com/ubuntu raring 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 raring main
deb-src http://extras.ubuntu.com/ubuntu raring main

保存后,再去update试试,结果问题依旧。

9.最终,发现,你没的,此刻,是断网了:

ubuntu no network devices available

所以,当前是无法连接到服务器了。。。

10.所以,重启Ubuntu虚拟机。

最终发现,重启Ubuntu后,网络正常后,自然所有的都正常了。

包括sudo apt-get update等等。。。

 

【总结】

此处出现:

E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

的原因是:

由于某些原因(折腾vmware tools)而导致网络中断,所以出错。

解决办法:

重启Ubuntu,让网络正常,即可。



7 Thoughts on “【已解决】Ubuntu中执行sudo apt-get install出错:E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

  1. waster my time

  2. u a so funny~

  3. 我也是网络的问题
    需要设置网络的代理(公司上网需要设置代理)
    https://help.ubuntu.com/community/AptGet/Howto#Setting_up_apt-get_to_use_a_http-proxy

  4. 这是linux界的耻辱,GUN回家放羊去 2B

  5. 楼主!不要这么搞笑啊!

发表评论

电子邮件地址不会被公开。 必填项已用*标注

无觅相关文章插件,快速提升流量