The code is as follows: |
Copy code |
# University of Electronic Science and Technology Deb http://ubuntu.uestc.edu.cn/ubuntu/ quantal main restricted universe multiverse Deb http://ubuntu.uestc.edu.cn/ubuntu/ quantal-backports main restricted universe multiverse Deb http://ubuntu.uestc.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse Deb http://ubuntu.uestc.edu.cn/ubuntu/ quantal-security main restricted universe multiverse Deb http://ubuntu.uestc.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse Deb-src http://ubuntu.uestc.edu.cn/ubuntu/ quantal main restricted universe multiverse Deb-src http://ubuntu.uestc.edu.cn/ubuntu/ quantal-backports main restricted universe multiverse Deb-src http://ubuntu.uestc.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse Deb-src http://ubuntu.uestc.edu.cn/ubuntu/ quantal-security main restricted universe multiverse Deb-src http://ubuntu.uestc.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse # Sohu update server: Deb http://mirrors.sohu.com/ubuntu/ karmic main restricted universe multiverse Deb http://mirrors.sohu.com/ubuntu/ karmic-security main restricted universe multiverse Deb http://mirrors.sohu.com/ubuntu/ karmic-updates main restricted universe multiverse Deb http://mirrors.sohu.com/ubuntu/ karmic-proposed main restricted universe multiverse Deb http://mirrors.sohu.com/ubuntu/ karmic-backports main restricted universe multiverse Deb-src http://mirrors.sohu.com/ubuntu/ karmic main restricted universe multiverse The deb-src http://mirrors.sohu.com/ubuntu/ karmic-security main restricted universe multiverse Deb-src http://mirrors.sohu.com/ubuntu/ karmic-updates main restricted universe multiverse Deb-src http://mirrors.sohu.com/ubuntu/ karmic-proposed main restricted universe multiverse Deb-src Co., http://mirrors.sohu.com/ubuntu/. karmic-backports main restricted universe multiverse
# Bone brother builds and maintains this Ubuntu source (the source is located in a telecom data center with Mbit/s shared bandwidth in Hangzhou, Zhejiang ): Deb http://ubuntu.srt.cn/ubuntu/ karmic main restricted universe multiverse Deb http://ubuntu.srt.cn/ubuntu/ karmic-security main restricted universe multiverse Deb http://ubuntu.srt.cn/ubuntu/ karmic-updates main restricted universe multiverse Deb http://ubuntu.srt.cn/ubuntu/ karmic-proposed main restricted universe multiverse Deb http://ubuntu.srt.cn/ubuntu/ karmic-backports main restricted universe multiverse Deb-src http://ubuntu.srt.cn/ubuntu/ karmic main restricted universe multiverse The deb-src http://ubuntu.srt.cn/ubuntu/ karmic-security main restricted universe multiverse Deb-src http://ubuntu.srt.cn/ubuntu/ karmic-updates main restricted universe multiverse Deb-src http://ubuntu.srt.cn/ubuntu/ karmic-proposed main restricted universe multiverse Deb-src Co., http://ubuntu.srt.cn/ubuntu/. karmic-backports main restricted universe multiverse Deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn karmic main restricted universe multiverse # Archive.ubuntu.com ): Deb http://archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse Deb http://archive.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse Deb http://archive.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse Deb http://archive.ubuntu.com/ubuntu/ karmic-proposed main restricted universe multiverse Deb http://archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse Deb-src http://archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse The deb-src http://archive.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse Deb-src http://archive.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse Deb-src http://archive.ubuntu.com/ubuntu/ karmic-proposed main restricted universe multiverse Deb-src Co., http://archive.ubuntu.com/ubuntu/. karmic-backports main restricted universe multiverse # Mirrors.shlug.org update server (China Telecom server, Ubuntu Official Mirror, maintained by Shanghai Linux User Group ): Deb http://cn.archive.ubuntu.com/ubuntu karmic main restricted universe multiverse Deb http://cn.archive.ubuntu.com/ubuntu karmic-security main restricted universe multiverse Deb http://cn.archive.ubuntu.com/ubuntu karmic-updates main restricted universe multiverse Deb http://cn.archive.ubuntu.com/ubuntu karmic-backports main restricted universe multiverse Deb http://cn.archive.ubuntu.com/ubuntu karmic-proposed main restricted universe multiverse Deb-src http://cn.archive.ubuntu.com/ubuntu karmic main restricted universe multiverse The deb-src http://cn.archive.ubuntu.com/ubuntu karmic-security main restricted universe multiverse Deb-src http://cn.archive.ubuntu.com/ubuntu karmic-updates main restricted universe multiverse Deb-src Co., http://cn.archive.ubuntu.com/ubuntu. karmic-backports main restricted universe multiverse Deb-src http://cn.archive.ubuntu.com/ubuntu karmic-proposed main restricted universe multiverse # Upgrade .lupaworld.com server (two-line server in Hangzhou city, Zhejiang province ): Deb http://mirror.lupaworld.com/ubuntu karmic main restricted universe multiverse Deb http://mirror.lupaworld.com/ubuntu karmic-security main restricted universe multiverse Deb http://mirror.lupaworld.com/ubuntu karmic-updates main restricted universe multiverse Deb http://mirror.lupaworld.com/ubuntu karmic-backports main restricted universe multiverse Deb http://mirror.lupaworld.com/ubuntu karmic-proposed main restricted universe multiverse Deb-src http://mirror.lupaworld.com/ubuntu karmic main restricted universe multiverse The deb-src http://mirror.lupaworld.com/ubuntu karmic-security main restricted universe multiverse Deb-src http://mirror.lupaworld.com/ubuntu karmic-updates main restricted universe multiverse Deb-src Co., http://mirror.lupaworld.com/ubuntu. karmic-backports main restricted universe multiverse Deb-src http://mirror.lupaworld.com/ubuntu karmic-proposed main restricted universe multiverse |
Execute command update
Sudo apt-get update
Summary of issues with using sudo apt-get update
Sudo apt-get update
Displayed
E: unable to obtain the lock/var/lib/apt/lists/lock-open (11 Resource temporarily unavailable)
E: unable to lock the Status List Directory
Just delete the lock file ..
Sudo rm/var/lib/apt/lists/lock
I checked it online and found the following method:
First, check whether there is a program using apt-get. Enter ps-aux In the terminal, find the program using apt-get (the last column), and check its PID number, then, kill the process, enter the sudo kill PID, and upgrade the software source, sudo apt-get update and sudo apt-get dist-update.
An error occurred while updating the software source in Ubuntu.
When sudo apt-get update is executed to update the software source, the following similar error occurs: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/Release.gpg Something wicked happened resolving 'CN .archive.ubuntu.com: http '(-5-No address associated with hostname)
It indicates that DNS resolution has encountered problems and you should focus on the following aspects:
1. cat/etc/resolv. conf
Check whether the domain, search, and nameserver configurations are correct.
If you use a proxy to access the Internet, see:
2. cat/etc/apt. conf
Add the following settings:
Acquire: http: proxy "http://xxxxx.xxxxx.xxxx: 1080", note that it is http, not https
3. Check "system"> "preferences"> "network proxy" to check whether the proxy is set correctly.