ubuntu Failed to fetch 404 错误解决
来源:互联网 发布:韩国爱情电影 知乎 编辑:程序博客网 时间:2024/06/07 14:17
问题:
在ubuntu 16.04 上安装gcc时,使用apt-get install build-essential命令安装,安装过程中报“ubuntu Failed to fetch 404” 错误。
使用apt-get update进行更新。
分析:
经过检查,发现获取远程文件所指向的路径没有问题,如:
http://cn.archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-release-upgrader/
但是获取文件的版本号却有些问题,安装程序去找 16.04.15,而远端没有这个版本的包,只有比之高或比之低的。
有可能是这个版本不是一个稳定版本,一段时间后更新仓库中不再保存。只好先对系统升级,更新到最近版本。
解决:
1、先执行do-release-upgrade
2、然后执行apt-get pudate
3、再执行apt-get install build-essential
这时执行已不再报错。
参考:
http://stackoverflow.com/questions/30316812/ubuntu-apt-get-unable-to-fetch-packages
0 0
- ubuntu Failed to fetch 404 错误解决
- ubuntu更新错误W:Failed to fetch
- Ubuntu “Failed to fetch”错误的解决方法
- Ubuntu操作系统“Failed to fetch”错误的解决方法
- Hadoop reduce阶段出现Failed to fetch错误及解决
- ubuntu-如何解决错误-Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release
- ubuntu-如何解决错误-Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release
- Ubuntu failed to fetch ... hash sum mismatch
- Ubuntu执行sudo apt-get update出现Failed to fetch.......的问题的解决
- 解决ubuntu update出现Failed to fetch,hash sum mismatch的问题
- Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml 错误解决。
- failed to fetch ... ppa
- Failed to fetch
- Ubuntu下 安装 Android SDK方法(包含Failed to fetch URL https://dl-ssl.google.com/错误的解决方法)
- Ubuntu update: Failed to fetch, Hash sum mismatch
- ubuntu 执行apt-get update报错Failed to fetch
- [ubuntu系列]apt-get update 出现failed to fetch
- ubuntu中sudo apt-get install 出现 failed to fetch
- 路由器级联设置
- Php中使用Select 查询语句的实例
- MySQL数据库设计总结
- vi文件保存退出命令":wq"和":x"的区别
- bzoj 1875: [SDOI2009]HH去散步 动态规划+矩阵乘法
- ubuntu Failed to fetch 404 错误解决
- UnicodeDecodeError的解决
- rsyslog 的rsyslog.conf配置详解
- LeetCode 160. Intersection of Two Linked Lists(C++版)
- AnglurJS将金额转换为大写金额
- 像差与zernike多项式
- 佟刚老师javaweb笔记(二)
- win7系统开发hadoop时遇到的问题总结
- c++远征之封装篇(对象)