Last update at :2024-07-13,Edit by888u
Today Snail installed software in the Ubuntu system. It should be because the system is relatively old and some software cannot be installed directly with apt-get, so it was updated to the latest version through update and an error was found. We need to change the source to solve the update problem. Here we find the Alibaba Cloud Ubuntu source and it can be used after directly replacing it. Of course, useful content needs to be shared so that it can be used for direct reference in the future.
In Snail’s previous articles, we have shared \\"CentOS replaces Alibaba Cloud yum source to solve the problem of being unable to update\\" and \\"Solution to Debian system apt-get update official source failure method to replace 163 source\\", If you need CentOS and Debian environments, you can refer to it. Here is the Ubuntu system.
First, back up the original source files
cp /etc/apt/sources.list /etc/apt/sources.list.bak
Second, modify the system source
/etc/apt/sources.list
Edit the file, delete all the content inside, and then replace the following content.
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.aliyun.com/ ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http ://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu / trusty-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
Third, update and execute again
apt-get update -y
There are still errors after execution. According to the error prompts in the last few lines, then execute the following.
apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32
Replace according to the respective prompts, because different machines report different errors.
Finally, update again
Execute apt-get update -y again to update the system, and finally no error is reported.
Recommended site searches: domain name system, me domain name registration, Hong Kong vps host rental, Chengdu virtual host, foreign server rental price, domain name registration center, registered domain names, website domain name query, Yangzhou dual-line server free cloud server, < /p>
发表评论