当前位置: 首页>>技术教程>>正文


authentication – 升级时验证某些软件包时出错

,

问题描述

当我尝试将Ubuntu 13.04升级到13.10时,出现以下错误:

It was not possible to authenticate some packages. This may be a 
transient network problem. You may want to try again later. See below 
for a list of unauthenticated packages.

另外,在下载文件时,我看到类似以下错误:

Err http://in.archive.ubuntu.com saucy-backports/restricted Translation-en_IN 

我尝试了the link to a similar question,但这不起作用。我认为按键没有任何麻烦。

最佳办法

Important Security Notice

This answer will disable an critical security feature in Ubuntu. It will stop Ubuntu checking packages are the the same as they were when they were built.

This could mean your updates are compromised or corrupt.
This could mean there’s just a bug in the way Ubuntu’s release upgrades are handled.

I’m not saying you should never do this, I’m just asking you to be aware of what you’re doing. And put things back after you upgrade. Don’t leave AllowUnauthenticated on indefinitely.

— Oli, Ask Ubuntu mod.


这为我解决了。

以root身份创建文件/etc/update-manager/release-upgrades.d/unauth.cfg并添加以下内容。

[Distro]
AllowUnauthenticated=yes

升级后,删除此文件。

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/11608.html,未经允许,请勿转载。