95 lines
3.3 KiB
Markdown
95 lines
3.3 KiB
Markdown
|
> 本文作者:丁辉
|
||
|
|
||
|
## Ubuntu部署Containerd配置Apt源
|
||
|
|
||
|
> 我部署 containerd 的时候遇到了各个版本 apt 源无法下载的问题,所以本次记录 Ubuntu 源配置步骤
|
||
|
|
||
|
### Ubuntu 22.04
|
||
|
|
||
|
```bash
|
||
|
sudo apt install apt-transport-https ca-certificates curl software-properties-common
|
||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu jammy stable"
|
||
|
```
|
||
|
|
||
|
### Ubuntu 21.10
|
||
|
|
||
|
```bash
|
||
|
sudo apt install apt-transport-https ca-certificates curl software-properties-common
|
||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu impish stable"
|
||
|
```
|
||
|
|
||
|
### Ubuntu 21.04
|
||
|
|
||
|
```bash
|
||
|
sudo apt install apt-transport-https ca-certificates curl software-properties-common
|
||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu hirsute stable"
|
||
|
```
|
||
|
|
||
|
### Ubuntu 20.10
|
||
|
|
||
|
```bash
|
||
|
sudo apt install apt-transport-https ca-certificates curl software-properties-common
|
||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu groovy stable"
|
||
|
```
|
||
|
|
||
|
### Ubuntu 20.04
|
||
|
|
||
|
```bash
|
||
|
sudo apt install apt-transport-https ca-certificates curl software-properties-common
|
||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
|
||
|
```
|
||
|
|
||
|
### Ubuntu 19.10
|
||
|
|
||
|
```bash
|
||
|
sudo apt install apt-transport-https ca-certificates curl software-properties-common
|
||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable"
|
||
|
```
|
||
|
|
||
|
### Ubuntu 19.04
|
||
|
|
||
|
```bash
|
||
|
sudo apt install apt-transport-https ca-certificates curl software-properties-common
|
||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu disco stable"
|
||
|
```
|
||
|
|
||
|
### Ubuntu 18.10
|
||
|
|
||
|
```bash
|
||
|
sudo apt install apt-transport-https ca-certificates curl software-properties-common
|
||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu cosmic test"
|
||
|
```
|
||
|
|
||
|
### Ubuntu 18.04
|
||
|
|
||
|
```bash
|
||
|
sudo apt install apt-transport-https ca-certificates curl software-properties-common
|
||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
|
||
|
```
|
||
|
|
||
|
### Ubuntu 17.10
|
||
|
|
||
|
```bash
|
||
|
sudo apt install apt-transport-https ca-certificates curl software-properties-common
|
||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable"
|
||
|
```
|
||
|
|
||
|
### Ubuntu 16.04
|
||
|
|
||
|
```bash
|
||
|
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
|
||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
|
||
|
```
|
||
|
|