Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm experimenting with VPNs, so I wanted to install pptpd.

john@desktop:~$ sudo apt-get install pptpd
[sudo] password for john: 
The following extra packages will be installed:
The following NEW packages will be installed:
  bcrelay pptpd
0 upgraded, 2 newly installed, 0 to remove and 11 not upgraded.
Need to get 90.5 kB of archives.
After this operation, 442 kB of additional disk space will be used.
Do you want to continue [Y/n]? y

And everything runs fine until I get down to here:

WARNING: The following packages cannot be authenticated!
  bcrelay pptpd
Install these packages without verification [y/N]? n
E: Some packages could not be authenticated

No authentication? I'm no security expert, but I'm fairly sure that's a bad thing. So I check to see where the packages are coming from.

john@desktop:~$ apt-cache policy pptpd
  Installed: (none)
  Candidate: 1.3.4-3ubuntu1
  Version table:
     1.3.4-3ubuntu1 0
        500 natty/main i386 Packages
john@desktop:~$ apt-cache policy bcrelay
  Installed: (none)
  Candidate: 1.3.4-3ubuntu1
  Version table:
     1.3.4-3ubuntu1 0
        500 natty/main i386 Packages

They're coming from and not being properly authenticated? What's going on here?

share|improve this question
up vote 89 down vote accepted

apt-key utility

apt-key is used to manage the list of keys used by apt to verify packages. Packages which have been verified using these keys will be considered trusted. To update the local keyring with the keyring of Ubuntu archive keys and removes from the keyring the archive keys which are no longer valid.

$ sudo apt-key update
$ sudo apt-get update

try install something...

share|improve this answer
It worked, but apt-key said it didn't change anything. Any idea what my problem was? – John Nov 4 '11 at 22:35
this can arise from a lot of errors on the package server side. sometimes running apt-get update will fix it. – ixtmixilix Sep 13 '12 at 20:29
Is there any way you can get apt to be specific about what's wrong with the authentication process? maybe the verbose flag? I didn't think to try that and it's already fixed, and I don't know why it happened and don't know how to reproduce it. – Wug Nov 26 '12 at 2:16
In my case, a Ctrl+C during a long aptitude work caused the problem. sudo apt-key update didn't change anything, but sudo apt-get update solved the problem. – musiphil Mar 21 '14 at 5:35
It showing "Ubuntu Archive Automatic Signing Key <> not changed " ..any other suggestion ! – Shubh Jun 29 '15 at 12:56

I had this issue on Ubuntu 12.10 (Quantal Quetzal). The same issue occurred if I tried to use the Synaptic Package Manager GUI.

It turned out that my system was still set to use a proxy server for a network I was no longer connected to and thus could no longer use. Once I disabled the proxy server, apt was able to authenticate the packages properly.

In order to disable the proxy on Ubuntu 12.10 (Quantal Quetzal), follow these steps:

  1. Press the Super button on your keyboard (A.K.A. the Windows Logo button)
  2. Type Network and press enter
  3. Select Network Proxy
  4. Change the method to None
  5. Click Apply System Wide
  6. apt should now be able to authenticate the packages
share|improve this answer

I got the "WARNING: The following packages cannot be authenticated!" when trying to aptitude update on a no-longer-supported Ubuntu release (14.10). The solution was to upgrade to a supported Ubuntu release.

share|improve this answer
sudo apt-get update

Was enough to fix it for me.

share|improve this answer

I had this problem, it turned out to be some fault with the Australian server - kangaroos loose in the top paddock, probably. I fixed it by changing the software source in Muon from Australian server to the main server

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.