25

When I try to upgrade my ubuntu 13.04 to 13.10, it gives the following error:

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.

Also while downloading the files, I see such errors like:

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

I tried the link to a similar question but that does not work. I don't think I have any troubles with the keys.

Singularity
  • 821
  • 1
  • 7
  • 7
  • you need to do a update before upgrade –  Feb 24 '14 at 12:49
  • I have tried that several times already. But I get a pop-up saying that softwares updates are no more available for this version and so upgrade. – Singularity Feb 24 '14 at 15:31
  • Run in terminal sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade, then try upgrading with sudo do-relase-upgrade – kubahaha Feb 25 '14 at 16:14
  • I tried all that but no luck. Finally the answer posted by me below worked out. – Singularity Feb 25 '14 at 23:06

1 Answers1

46

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.


This worked out for me.

create the file /etc/update-manager/release-upgrades.d/unauth.cfg as root and add the following.

[Distro]
AllowUnauthenticated=yes

After upgrade, remove this file.

Oli
  • 293,335
Singularity
  • 821
  • 1
  • 7
  • 7
  • 4
    Be very careful doing this. There's a reason why the package manager is rejecting the upgrade -- it cannot verify authenticity. This workaround will allow you to install packages, yes, but you have no guarantee that the packages are not malicious. In other words, don't do this unless you know what you are doing. – rduplain Dec 14 '15 at 18:45
  • This answer provides an upgrade path without allowing unauthenticated. http://askubuntu.com/a/91821/113086 – rduplain Dec 14 '15 at 20:02
  • @rduplain, nope that does not work for me – Gabor Dec 28 '15 at 18:43
  • 2
    @rduplain Update from: ubuntu 10.04 lts --> 12.04 lts it seems to that some versions need this bypass entry... i don't know why –  Mar 08 '16 at 08:41
  • I also couldn't get the cdromupgrade from the 12.04 LTS CDROM to even start upgrading from 10.04, without this hack... much appreciated (now on to see if I can rename the mount point so it matches the CDROM image name (https://help.ubuntu.com/community/PreciseUpgrades#Upgrading_Using_the_Alternate_CD.2FDVD), else the update fails next with packages not being found) – sdaau Mar 25 '16 at 15:58
  • Here is a bug report regarding this error for upgrades from 10.04 to 12.04 mentioning this solution as possible fix - might be relevant for some. – Eddy Jun 21 '16 at 07:46