ubuntu設定と中国ソースの追加

7151 ワード

環境:ubuntu 12.04 ENGLISH
まずmv/etc/apt/sourcesをバックアップします.list~  sources.list~.bak
vi sources.List~挿入:
次の転載する:
次のリストの対応するアイテムに{Version}を置き換えてください.
  • Ubuntu 12.10(テスト版システム、10月発売)-quantal
  • Ubuntu 12.04 - precise
  • Ubuntu 11.10 - oneiric 
  • Ubuntu 11.04 - natty 
  • Ubuntu 10.10 - maverick 
  • Ubuntu 10.04 - lucid

  • ソフトウェアソースコードを取得する必要がない場合は、「deb-src」で始まるソースを削除して、速度を速めることができます.
    網易163更新サーバー(広東広州電信/聯通千兆二線アクセス):
  • deb http://mirrors.163.com/ubuntu/{Version} main restricted universe multiverse
  • deb http://mirrors.163.com/ubuntu/{Version}-security main restricted universe multiverse
  • deb http://mirrors.163.com/ubuntu/{Version}-updates main restricted universe multiverse
  • deb http://mirrors.163.com/ubuntu/{Version}-proposed main restricted universe multiverse
  • deb http://mirrors.163.com/ubuntu/{Version}-backports main restricted universe multiverse
  • deb-src http://mirrors.163.com/ubuntu/{Version} main restricted universe multiverse
  • deb-src http://mirrors.163.com/ubuntu/{Version}-security main restricted universe multiverse
  • deb-src http://mirrors.163.com/ubuntu/{Version}-updates main restricted universe multiverse
  • deb-src http://mirrors.163.com/ubuntu/{Version}-proposed main restricted universe multiverse
  • deb-src http://mirrors.163.com/ubuntu/{Version}-backports main restricted universe multiverse

  • 捜狐更新サーバー(山東聯通ギガビットアクセス、公式中国大陸地区ミラーリングはここまで)の推奨使用::
  • deb http://mirrors.sohu.com/ubuntu/{Version} main restricted universe multiverse
  • deb http://mirrors.sohu.com/ubuntu/{Version}-security main restricted universe multiverse
  • deb http://mirrors.sohu.com/ubuntu/{Version}-updates main restricted universe multiverse
  • deb http://mirrors.sohu.com/ubuntu/{Version}-proposed main restricted universe multiverse
  • deb http://mirrors.sohu.com/ubuntu/{Version}-backports main restricted universe multiverse
  • deb-src http://mirrors.sohu.com/ubuntu/{Version} main restricted universe multiverse
  • deb-src http://mirrors.sohu.com/ubuntu/{Version}-security main restricted universe multiverse
  • deb-src http://mirrors.sohu.com/ubuntu/{Version}-updates main restricted universe multiverse
  • deb-src http://mirrors.sohu.com/ubuntu/{Version}-proposed main restricted universe multiverse
  • deb-src http://mirrors.sohu.com/ubuntu/{Version}-backports main restricted universe multiverse

  •  
    Ubuntuが公式に提供する他のソフトウェア(サードパーティのクローズドソースソフトウェアなど)(追加を推奨):
  • deb http://archive.canonical.com/ubuntu/{Version} partner
  • deb http://extras.ubuntu.com/ubuntu/{Version} main

  • IPv 6-Onlyアドレス
  • deb http://mirrors6.ustc.edu.cn/ubuntu/{Version} main multiverse restricted universe
  • deb http://mirrors6.ustc.edu.cn/ubuntu/{Version}-backports main multiverse restricted universe
  • deb http://mirrors6.ustc.edu.cn/ubuntu/{Version}-proposed main multiverse restricted universe
  • deb http://mirrors6.ustc.edu.cn/ubuntu/{Version}-security main multiverse restricted universe
  • deb http://mirrors6.ustc.edu.cn/ubuntu/{Version}-updates main multiverse restricted universe
  • deb-src http://mirrors6.ustc.edu.cn/ubuntu/{Version} main multiverse restricted universe
  • deb-src http://mirrors6.ustc.edu.cn/ubuntu/{Version}-backports main multiverse restricted universe
  • deb-src http://mirrors6.ustc.edu.cn/ubuntu/{Version}-proposed main multiverse restricted universe
  • deb-src http://mirrors6.ustc.edu.cn/ubuntu/{Version}-security main multiverse restricted universe
  • deb-src http://mirrors6.ustc.edu.cn/ubuntu/{Version}-updates main multiverse restricted universe

  •  
    最後:
    sudo apt-get update
     
    基本OK!
     
     
    ----------------------------------------------------------------------------------次のソースで問題を解決します.
    deb http://mirrors.163.com/ubuntu/ precise main restricted
    
     deb-src http://mirrors.163.com/ubuntu/ precise main restricted
    
     deb http://mirrors.163.com/ubuntu/ precise-updates main restricted
    
     deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted
    
     deb http://mirrors.163.com/ubuntu/ precise universe
    
     deb-src http://mirrors.163.com/ubuntu/ precise universe
    
     deb http://mirrors.163.com/ubuntu/ precise-updates universe
    
     deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
    
     deb http://mirrors.163.com/ubuntu/ precise multiverse
    
     deb-src http://mirrors.163.com/ubuntu/ precise multiverse
    
     deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
    
     deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
    
     deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
    
     deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
    
     deb http://mirrors.163.com/ubuntu/ precise-security main restricted
    
     deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted
    
     deb http://mirrors.163.com/ubuntu/ precise-security universe
    
     deb-src http://mirrors.163.com/ubuntu/ precise-security universe
    
     deb http://mirrors.163.com/ubuntu/ precise-security multiverse
    
     deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse
    
     deb http://extras.ubuntu.com/ubuntu precise main
    
     deb-src http://extras.ubuntu.com/ubuntu precise main

    -
    -
    -

    deb http://mirrors.sohu.com/ubuntu/ precise main restricted
    
     deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted
    
     deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
    
     deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
    
     deb http://mirrors.sohu.com/ubuntu/ precise universe
    
     deb-src http://mirrors.sohu.com/ubuntu/ precise universe
    
     deb http://mirrors.sohu.com/ubuntu/ precise-updates universe
    
     deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe
    
     deb http://mirrors.sohu.com/ubuntu/ precise multiverse
    
     deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse
    
     deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
    
     deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
    
     deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
    
     deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
    
     deb http://mirrors.sohu.com/ubuntu/ precise-security main restricted
    
     deb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricted
    
     deb http://mirrors.sohu.com/ubuntu/ precise-security universe
    
     deb-src http://mirrors.sohu.com/ubuntu/ precise-security universe
    
     deb http://mirrors.sohu.com/ubuntu/ precise-security multiverse
    
     deb-src http://mirrors.sohu.com/ubuntu/ precise-security multiverse
    
     deb http://extras.ubuntu.com/ubuntu precise main
    
     deb-src http://extras.ubuntu.com/ubuntu precise main