Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am running an Ubuntu 12.04.2 LTS Server and I have setup unattended-upgrades to be verbose.

Now I always see an error from "apt-key net-update".

Issuing the command manually gives no message at all but the return code is 1.

Issuing "apt-key update" gives a return code of 0.

What is wrong here?

Is there a bug or can I fix this problem?

share|improve this question

1 Answer 1

I have the same issue on Ubuntu 14.04 LTS Server.

I did some research and believe it is caused by apt-key net-update having no URL to update from.

See the Ubuntu tracker for details. The change comment

cmdline/apt-key: exit immediately out of net_update().

gives a clear hint it was done intentional.

Digging further into the change log gives the relevant patch lines:

 net_update() {
+    # Disabled for now as code is insecure
+    exit 1

So it might have been a better way to return success. Feel free to report a bug against Ubuntu.

Bottom line is that it's no problem an can be ignored.

share|improve this answer

Your Answer

 
discard

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.