在使用apt install XXX时出现问题:
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/fyba/libfyba0_4.1.1-6build1_amd64.deb Connection failed [IP: 185.125.190.39 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/freexl/libfreexl1_1.0.5-3_amd64.deb Connection failed [IP: 91.189.91.39 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
由于没有配置好国内的镜像源。
解决方法:
①查看自己Ubuntu的版本:
lsb_release -a
(LSB是Linux Standard Base(Linux标准库)的缩写,lsb_release命令用来与具体Linux发行版相关的Linux标准库信息)
获取版本号后进入https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
②选取自己版本对应的镜像源,然后进入apt文件夹
cd /etc/apt/
把之前的镜像源复制一份为00