[置顶] ubuntu版本很老,apt-get update更新失败时(W: Failed to fetch ...)------如何创建新的sources.list
2017-12-09 13:31
579 查看
在说这个解决方案之前,我先说下,目前遇到的问题:
我使用 sudo apt-get update 之后,更新失败。具体原因如下:
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic/main/binary-i386/Packages.gz 404 Not Found [IP: 180.101.150.32 80]
意思是:上面的这个文件(Packages.gz)无法找到! 我通过打开网页http://cn.archive.ubuntu.com/ubuntu/ 然后按照上面的目录挨个查找,确实没有这个文件! (原因是我用的ubuntu是非常老的,所以要获取新的sources.list)
在这个网站创建新的sources.list
http://repogen.simplylinux.ch/
1. 选择国家
2.选择相邻的ubuntu版本
3.选择"Ubuntu Branches" ,源码可以不用选择。
4. 生成sources.list
5. 把得到内容替换到/etc/apt/sources.list
6. sudo apt-get update
更新之后又遇到了一个问题:
解决方案:
After this, run
appear.
我使用 sudo apt-get update 之后,更新失败。具体原因如下:
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic/main/binary-i386/Packages.gz 404 Not Found [IP: 180.101.150.32 80]
意思是:上面的这个文件(Packages.gz)无法找到! 我通过打开网页http://cn.archive.ubuntu.com/ubuntu/ 然后按照上面的目录挨个查找,确实没有这个文件! (原因是我用的ubuntu是非常老的,所以要获取新的sources.list)
在这个网站创建新的sources.list
http://repogen.simplylinux.ch/
1. 选择国家
2.选择相邻的ubuntu版本
3.选择"Ubuntu Branches" ,源码可以不用选择。
4. 生成sources.list
5. 把得到内容替换到/etc/apt/sources.list
6. sudo apt-get update
更新之后又遇到了一个问题:
W: There is no public key available for the following key IDs: 3B4FE6ACC0B21F32
解决方案:sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32
After this, run
sudo apt-get updateand make sure no other warnings/errors
appear.
相关文章推荐
- [置顶] apt-get update 更新失败----如何清除破损而且陈旧的PPA仓库 (W: Failed to fetch http://ppa.launchpad.net/jonathonf/pyt)
- [置顶] [ubuntu系列]apt-get update 出现failed to fetch
- 更新SDK失败解决办法(Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml)
- /etc/apt/sources.list -- 乌班图国内更新源 ubuntu
- apt-get update --> Bad header line (fresh install) Ign http://archive.ubuntu.com natty-security/multiverse Sources/DiffIndex W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/natty/Rele
- ubuntu的更新错误-在源列表 /etc/apt/sources.list.d/google-chrome.list 中第 1 行有误 (类型)
- Android SDK Manager更新错误,Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list
- ubuntu的更新错误-在源列表 /etc/apt/sources.list.d/google-chrome.list 中第 1 行有误 (类型)
- Ubuntu更新出错:Failed to fetch Hash Sum mismatch
- 2012-06-10 21:01 /etc/apt/sources.list -- 乌班图国内更新源 ubuntu
- 国内老版本ubuntu更新源地址以及sources.list的配置方法
- Android SDK安装更新Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, re
- ubuntu中sudo apt-get install 出现 failed to fetch
- Ubuntu执行sudo apt-get update出现Failed to fetch.......的问题的解决
- Failed to fetch http://ppa.launchpad.net/shawn-p-huang/ppa/ubuntu/dists/oneiric/main/source/Sources
- Ubuntu用sudo apt-get install时出现“Failed to fetch”的解决办法
- 老版本ubuntu更新源地址以及sources.list的配置方法 转
- 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