在说这个解决方案之前,我先说下,目前遇到的问题:

我使用 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 update and make sure no other warnings/errors
appear.

[置顶] ubuntu版本很老,apt-get update更新失败时(W: Failed to fetch ...)------如何创建新的sources.list的更多相关文章

  1. [置顶] apt-get update 更新失败----如何清除破损而且陈旧的PPA仓库 (W: Failed to fetch http://ppa.launchpad.net/jonathonf/pyt)

    我使用sudo apt-get update之后,更新失败,遇到如下错误. W: Failed to fetch http://ppa.launchpad.net/jonathonf/python-3 ...

  2. 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

    apt-get update --> Bad header line (fresh install) fresh natty install i386 desktop. I get this e ...

  3. [置顶] Ubuntu 12.04以上如何恢复GNOME传统界面

    Ubuntu 12.04以上开始使用Unity作为界面系统了,对于一直以来使用GNOME界面的人来说太不适应了,以下是如何在Ubuntu 12.04上恢复GNOME桌面 打开Linux终端上输入以下命 ...

  4. [置顶] Ubuntu 12.04中文输入法的安装

    Ubuntu 12.04中文输入法的安装 Ubuntu上的输入法主要有小小输入平台(支持拼音/二笔/五笔等),Fcitx,Ibus,Scim等.其中Scim和Ibus是输入法框架. 在Ubuntu的中 ...

  5. [置顶] ubuntu 和 win7 远程登陆 + vnc登陆

    ubuntu 和 win7 远程登陆: 第一种(通过win7自带的远程桌面来连接ubuntu) 1. windows7配置 我的电脑->属性->远程设置.-----允许远程连接 2. ub ...

  6. [置顶] ubuntu server sudo出现sudo:must be setuid root 完美解决办法。

    1.开机按shift或esc先进行recovery模式 2.选择root命令行模式 3.先执行 #mount -o remount,rw / 这个很重要,网上找的很多资料都不全没有这步造成无法恢复成功 ...

  7. [置顶] Oracle GoldenGate 系列:使用 Oracle ASM API DBLOGREADER 时遇 ora-01031 错误

    今天在自己新搭建的 Oracle ACFS 文件系统上测试 GoldenGate ,启动 extract 进程报如下错误: 2013-08-27 14:58:39  ERROR   OGG-00446 ...

  8. 解决ubuntu使用命令sudo apt -get install 安装东西时出现"E: Sub-process /usr/bin/dpkg returned an error code (1) "的错误

    问题描述: 今天在使用命令 "sudo apt-get install python3-pip"安装时,总是出现如下图这样的错误,开始以为是以为自己python版本的问题,后来发现 ...

  9. apt-get update 时的问题 W:Failed to fetch gzip:/var/lib/apt/lists/partial...解决办法

    http://askubuntu.com/questions/149454/upgrade-from-11-04-to-11-10-getting-wfailed-to-fetch-gzip 这个问题 ...

随机推荐

  1. c# 字符串验证(邮箱、电话、数字、ip、身份证等)

    using System; using System.Text.RegularExpressions; namespace HuaTong.General.Utility { /// <summ ...

  2. Kotlin Reference (八) Classes and Objects

    most from reference 类 Kotlin的类的声明使用关键字class class Invoice { } 类声明由类名.类头(指定其类型参数,构造函数等)和类体组成,由大括号括起来. ...

  3. YXY-压测

    1.首先介绍一下组件Synchronizing Timer Number of Simulated users to Group by:集合点集合够N个用户开始并发 Timeout in millis ...

  4. word-break:break-all 打散文字,强制对齐

  5. iot_programe Makefile hacking

    /***************************************************************************** * iot_programe Makefi ...

  6. 【剑指offer】链表中倒数第k个节点,C++实现(链表)

    1.题目 输入一个链表,输出该链表中倒数第k个结点.链表的尾节点是倒数第一个节点. struct ListNode { int val; struct ListNode *next; } 2.思路   ...

  7. Could not load the "light_rain.png" image referenced from a nib in the bundle with identifier

    导入图片文件夹的时候勾选create groups

  8. 【javacript】获得点击的标签

    document.getElementById('content').onclick = function(e) { e = e || window.event; var target = e.tar ...

  9. 【导航】JennyHui没有宏大的计划,只有坚持!坚持!

    学英语 口语  Bingo口语笔记 听力 VOA 词汇 生词积累 座右铭 随手记 TED X - > 笔记 JennyHui要成为程序猿(加油!!菜鸟终会成为大牛的!!) 后端知识 Python ...

  10. 软件包 com.baidu.location

    http://developer.baidu.com/map/loc_refer/index.html?com/baidu/location/package-summary.html