ubuntu18.04镜像源文件配置:

解决办法:新建一个终端,输入sudo vim /etc/apt/sources.list 将内容替换为

阿里云源 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse 我的是对接阿里云镜像源,你也可以替换为其他镜像源,自己考虑