Menggunakan sumber asing adalah terlalu perlahan, menukarnya kepada sumber domestik akan menjadi lebih cepat. Disini saya akan kongsikan kepada anda kaedah pengubahsuaian Kawan-kawan yang memerlukan boleh merujuknya
1.sudo gedit /etc/apt/sources.list
Edit senarai sumber anda, padam semua kandungan asal atau buat sandaran
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (sandarkan senarai sumber semasa)
Tambah sumber dalam senarai di bawah yang paling sesuai untuk anda (berhati-hati untuk tidak menambah semuanya), cuma pilih yang paling sesuai untuk anda, salin ke senarai anda, dan kemudian simpan senarai.
2.sudo apt-get kemas kini kemas kini maklumat senarai sumber
Anda boleh menyemak mesej ralat semasa menjalankan "sudo apt-get update", padamkan sumber yang tidak boleh disambungkan dan kemudian jalankan "sudo apt-get update" sekali lagi.
3.sudo apt-get upgrade atau anda boleh menggunakan pengurus kemas kini ubuntu sendiri untuk menaik taraf
Senarai sumber Ubuntu 12.04:
163 sumber (diutamakan):
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
sohu sumber:
deb http://mirrors.sohu.com/ubuntu/ terhad utama tepat
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
ubuntu.cn99.com sumber (disyorkan):
deb http://ubuntu.cn99.com/ubuntu/ berbilang alam semesta terhad utama yang tepat
deb http://ubuntu.cn99.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ precise-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ berbilang alam semesta terhad utama yang tepat
Sumber Rangkaian Pendidikan
Jika anda seorang pelajar kolej, anda boleh menggunakan rangkaian kampus/jaringan pendidikan iaitu menggunakan sumber rangkaian pendidikan terutamanya yang menyokong IPv6, maka kelajuan kemas kini dikira dalam megabait.
Universiti Sains dan Teknologi Elektronik China:
deb http://ubuntu.uestc.edu.cn/ubuntu/ berbilang alam semesta terhad utama yang tepat
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ aneka alam semesta terhad utama yang tepat
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
中国科技大学:
deb http://debian.ustc.edu.cn/ubuntu/ berbilang alam semesta terhad utama yang tepat
deb http://debian.ustc.edu.cn/ubuntu/ precise-backports restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ aneka alam semesta terhad utama yang tepat
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
北京交大:
deb http://mirror.bjtu.edu.cn/ubuntu/ alam semesta terhad multiverse utama yang tepat
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security utama berbilang alam semesta terhad
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates utama alam semesta terhad multiverse
deb-src http://mirror.bjtu.edu.cn/ubuntu/ alam semesta terhad multiverse utama yang tepat
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed utama multiverse alam semesta terhad
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security utama multiverse alam semesta terhad
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates utama multiverse terhad alam semesta
4、更新源(在终端里敲如下命令)
sudo apt-get kemas kini
安装Ubuntu18.04后,使用国外源太慢了,修改为国内源会快很多。
修改阿里源为Ubuntu 18.04默认的源
备份/etc/apt/sources.list
#备份
cp /etc/apt/sources.list /etc/apt/sources.list.bak
在/etc/apt/sources.list文件前面添加如下条目
#添加阿里源
deb http://mirrors.aliyun.com/ubuntu/ multiverse alam semesta terhad utama bionik
deb http://mirrors.aliyun.com/ubuntu/ bionic-security utama alam semesta terhad berbilang alam
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ cadangan bionik utama alam semesta terlarang
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionik utama alam semesta terhad multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security utama alam semesta terhad multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed utama alam semesta terhad multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
最后执行如下命令更新源
##更新
sudo apt-get kemas kini
sudo apt-get upgrade
另外其他几个国内源如下:
中科大源
##中科大源
deb https://mirrors.ustc.edu.cn/ubuntu/ multiverse alam semesta terhad utama bionik
deb-src https://mirrors.ustc.edu.cn/ubuntu/ multiverse alam semesta terhad utama bionik
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates utama alam semesta terhad berbilang alam
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security utama alam semesta terhad berbilang alam
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security utama alam semesta terhad multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ cadangan bionik utama alam semesta terhad berbilang alam
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed utama alam semesta terhad multiverse
163源
##163源
deb http://mirrors.163.com/ubuntu/ multiverse alam semesta terhad utama bionik
deb http://mirrors.163.com/ubuntu/ bionic-security utama alam semesta terhad berbilang alam
deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ multiverse alam semesta terhad utama bionik
deb-src http://mirrors.163.com/ubuntu/ bionic-security utama alam semesta terhad berbilang alam
deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ cadangan bionik utama alam semesta terhad berbilang alam
deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
清华源
##清华源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ multiverse alam semesta terhad utama bionik
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionik utama alam semesta terhad multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe universe
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security utama alam semesta terhad multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security utama alam semesta terhad berbilang alam
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ cadangan bionik utama alam semesta terlarang
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionik-cadang utama alam semesta terhad berbilang alam semesta
这篇文章就介绍到这了
Atas ialah kandungan terperinci Panduan lengkap sumber kemas kini Ubuntu 12.04 domestik. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!