In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains how to change Ubuntu 20.04 to Ali source, the content is clear, interested friends can learn, I believe it will be helpful after reading it.
Note that this article is not simply to teach you how to switch to 20.04 sources, but to teach you a way to switch sources based on 20.04.
At the time of writing this article, the author has not yet released the official version of release, but can already see the active existence in the warehouse, so I wrote this article.
Please note that the official version of Ubuntu 20.04 was released on April 23.
Please note: it is found that some software, such as ckermit, are not available in the warehouse, upgrade and source change at your own discretion.
1 back up the original source
Cp-ra / etc/apt/sources.list / etc/apt/sources.list.bak
2 find out the code name of ubuntu, such as:
4.10Warty Warthog (warthog with warts)
5.04Hoary Hedgehog (gray hedgehog)
5.10Breezy Badger (vivacious badger)
6.06 (LTS) Dapper Drake (neat male duck)
6.10Edgy Eft (impatient water lizard)
7.04Feisty Fawn (grumpy fawn)
7.10Gutsy Gibbon (brave gibbon)
8.04 (LTS) Hardy Heron (hardy heron)
8.10Intrepid Ibex (brave wild goat)
9.04Jaunty Jackalope (triumphant Wyoming Hare)
9.10Karmic Koala (lucky koala)
10.04 (LTS) Lucid Lynx (sober lynx)
10.10Oneiric Ocelot (dreamy leopard cat)
11.04Natty Narwhal (agile narwhal)
11.10Oneiric Ocelot (tiger cat with dreams)
12.04 (LTS) Precise Pangolin (accurate pangolin)
12.10Quantal Quetzal (Quantum Green Azalea)
13.04Raring Ringtail (riveted pandas)
13.10Saucy Salamander (lively salamander)
14.04 (LTS) Trusty Tahr (reliable Tarr sheep) (LTS)
14.10Utopic Unicorn (Utopian unicorn)
15.04Vivid Vervet (lively little monkey)
15.10Wily Werewolf (cunning werewolf)
LTS) Xenial Xerus (hospitable African ground squirrel)
16.10Yakkety Yak (Yak)
17.04Zesty Zapus (happy jerboa)
17.10Artful Aardvark (clever aardvark)
18.04 (LTS) Bionic Beaver (Bionic Beaver)
18.10Cosmic Cuttlefish (cosmic cuttlefish)
19.04Disco Dingo (dancing spirit dog)
19.10Eoan Ermine (sable)
20.04 (LTS) Focal Fossa (dedicated Malagasy long-tailed raccoon)
...
To know the code name of the current system, use the following command:
Lsb_release-a
3 go to Aliyuan to see if this source exists.
Http://archive.ubuntu.com/ubuntu/dists/
As you can see, there is now a source for ubuntu 20.04 (code name focal).
4 then use the following as the template to replace the place of 'TODO'' with the Codename above
Deb http://mirrors.aliyun.com/ubuntu/ TODO main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ TODO main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ TODO-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ TODO-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ TODO-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ TODO-updates main restricted universe multiversedeb http:/ / mirrors.aliyun.com/ubuntu/ TODO-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ TODO-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ TODO-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ TODO-backports main restricted universe multiverse
For example, after I changed the source of 20.04, it was like this:
Deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiversedeb http:/ / mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
Then paste it into / etc/apt/sources.list just now.
5 update cache and upgrade
After reading the above content, sudo apt-get updatesudo apt-get upgrade has a further understanding of how to change Aliyuan for Ubuntu 20.04. if you want to learn more, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.