layout | title | tag | |
---|---|---|---|
post |
vm + ubuntu20.04 + docker + cn |
|
vm tools 复制
sudo apt-get autoremove open-vm-tools
sudo apt-get install open-vm-tools
sudo apt-get install open-vm-tools-desktop
系统设置消失
sudo apt-get install --reinstall gnome-control-center
sudo pkill Xorg
国内 阿里源配置
sudo gedit /etc/apt/sources.list
替换,注意看版本代号,Ubuntu20.04 为 Focal Fossa
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
# 阿里源
deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu focal stable
deb-src [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu focal stable
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
这一步注意出现版本依赖问题,注意手动指定版本
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo apt-get install docker-ce docker-ce-cli containerd.io