W: There is no public key available for the following key IDs: 3B4FE6ACC0B21F32

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

我使用 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/

扫描二维码关注公众号,回复: 1532995 查看本文章


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.


猜你喜欢

转载自blog.csdn.net/qq_26093511/article/details/78758743