一、更新源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
vim /etc/apt/sources.list 将下面的内容覆盖掉以前的
#清华源 https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
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
二、开始更新
sudo apt update
sudo apt upgrade
sudo apt clean autoclean autoremove
sudo apt install -y make cmake automake autoconf libtool autogen g++ gcc git python3 build-essential libfreetype6-dev pkg-config mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev
# mupdf need's
sudo apt install -y libxi-dev libxrandr-dev
sudo apt install -y language-selector-gnome language-pack-kde-zh-hans language-pack-gnome-zh-hans
#如果是虚拟机
sudo apt install -y open-vm-tools
#双系统 win的时间不对
sudo apt-get install ntpdate
sudo ntpdate time.windows.com
sudo hwclock --localtime --systohc