Ubuntu's own source is from China, so the download speed is relatively slow. Unlike CentOS, it does not select mirror sites during yum installation. So I chose to change to a domestic source. The following content is integrated from the Internet Back up /etc/apt/sources.list file Create a new /etc/apt/sources.list file and add the following content #163 source deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse 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/ bionic main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse After the changes are complete, execute the following command # apt update # apt upgrade Some other apt commands sudo apt-get update Update sourcesudo apt-get install package Install packagesudo apt-get remove package Delete packagesudo apt-cache search package Search for software packagesudo apt-cache show package Get relevant information of the package, such as description, size, version, etc.sudo apt-get install package --reinstall Reinstall packagesudo apt-get -f install Repair installationsudo apt-get remove package --purge Remove package, including configuration files, etc.sudo apt-get build-dep package Install related compilation environmentsudo apt-get upgrade Update installed packagessudo apt-get dist-upgrade Upgrade systemsudo apt-cache depends package Find out which packages the package depends onsudo apt-cache rdepends package View which packages the package depends onsudo apt-get source package Download the source code of the packagesudo apt-get clean && sudo apt-get autoclean Clean up useless packagessudo apt-get check Check for damaged dependencies Several other domestic sources: #中科大源deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse #Aliyun source deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse #清华源deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Navicat for MySql Visual Import CSV File
>>: element-ui Mark the coordinate points after uploading the picture
Table of contents Preface start Preface The defau...
Table of contents Immediately execute function fo...
I found an example when I was looking for a way t...
As one of the most commonly used and important ut...
Mysql-connector-java driver version problem Since...
Summarize This article ends here. I hope it can b...
This article is original by 123WORDPRESS.COM Ligh...
Table of contents Multiple uses of MySQL Load Dat...
Table of contents 1. What is virtual dom? 2. Why ...
Recently I saw the article Build your own React o...
When Docker starts a container, it specifies the ...
Docker container connection 1. Network port mappi...
Preface The Windows system that can be activated ...
Sometimes local development requires debugging of...
MySQL is a multi-user managed database that can a...