failedtofetch(Ubuntu出现Failed to Fetch的解决办法[亲测有效])

发布时间:2025-12-10 19:14:29 浏览次数:17

Ubuntu出现Failed to Fetch的解决办法[亲测有效]-failedtofetch红字

Ubuntu出现Failed to Fetch的解决办法[亲测有效]Ubuntu用apt按照遇到failedtofetch……

在使用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?

是否还在为Ide开发工具频繁失效而烦恼,来吧关注以下公众号获取最新激活方式。亲测可用!

为防止网络爬虫,请关注公众号回复”口令”

激活idea 激活CLion DataGrip DataSpell dotCover dotMemory dotTrace GoLand PhpStorm PyCharm ReSharper ReShaC++ Rider RubyMine WebStorm 全家桶 刷新

【正版授权,激活自己账号】:Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛

【官方授权 正版激活】:官方授权 正版激活 自己使用,支持Jetbrains家族下所有IDE…

由于没有配置好国内的镜像源。

解决方法:

①查看自己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/

把之前的镜像源复制一份为001

sudo cp sources.list cources.list.001

再打开镜像源列表

sudo vim sources.list

按“a”进入编辑模式,把之前复制的镜像源粘到底下:

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiversedeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiversedeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiversedeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse# 预发布软件源,不建议启用# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

然后按ESC键,:wq,再按enter保存并退出

③然后更新apt:

 sudo apt-get upgrade
需要做网站?需要网络推广?欢迎咨询客户经理 13272073477