Error authenticating some packages while upgrade

22,962

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.

Share:
22,962

Related videos on Youtube

Singularity
Author by

Singularity

Updated on September 18, 2022

Comments

  • Singularity
    Singularity almost 2 years

    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.

    • Admin
      Admin over 10 years
      you need to do a update before upgrade
    • Admin
      Admin over 10 years
      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.
    • Admin
      Admin over 10 years
      I tried all that but no luck. Finally the answer posted by me below worked out.
  • rduplain
    rduplain over 8 years
    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
    rduplain over 8 years
    This answer provides an upgrade path without allowing unauthenticated. askubuntu.com/a/91821/113086
  • Gabor
    Gabor over 8 years
    @rduplain, nope that does not work for me
  • Admin
    Admin over 8 years
    @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
  • sdaau
    sdaau over 8 years
    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 (help.ubuntu.com/community/…), else the update fails next with packages not being found)
  • Eddy
    Eddy about 8 years
    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.