Could not execute 'apt-key' to verify signature (is gnupg installed?)

Bug #1583102 reported by deivid
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After upgrading to 16.04 I'm getting this error for all my apt sources.

This seems different to both https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1524196 (since I don't get the "Couldn't create tempfiles for splitting up /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_xenial-updates_InRelease" errors) and https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1577926 (since apt-key run by itself fails too).

Downgrading to apt=1.0.10.2ubuntu2 fixed the problem so it seems to be related to recent changes in apt.

Thanks!

description: updated
Revision history for this message
deivid (deivid-rodriguez) wrote :

Just tried upgrading apt again today and got the same errors. Reverted back again, but now to 1.0.10.2ubuntu3.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt (Ubuntu):
status: New → Confirmed
Revision history for this message
Steven Grimm (sgrimm) wrote :

I ran into this today and the problem turned out to be /tmp:

# ls -ld /tmp
drwxrwxr-x 11 ubuntu ubuntu 4096 Aug 24 00:23 /tmp

This fixed it:

# chown root:root /tmp
# chmod 1777 /tmp

I don't know how /tmp got in that state on my server (it's a fairly fresh install of 16.04) but perhaps that's the underlying problem for other people too.

Revision history for this message
deivid (deivid-rodriguez) wrote :

@sgrimm Thanks for posting that. Unfortunately, I just had a look and my tmp folder permissions are fine.

Revision history for this message
Falcon Taylor-Carter (falconertc) wrote :

I'm having the same issue. Hopefully someone else has a recommendation.

Revision history for this message
Marty Ellis (marty-ellis) wrote :

My problem was caused by using vagrant. Vagrant sets the tmp owner to vagrant:vagrant. @sgrimm - I followed your advice and that resolved my issue.

Revision history for this message
Falcon Taylor-Carter (falconertc) wrote :

My issue turned out to be related to my infrastructure provider (DigitalOcean) not updating the kernel correctly.

Revision history for this message
deivid (deivid-rodriguez) wrote :

Thanks for the pointer @falconertc, that ended up being my problem as well. I solved it following the instructions posted here: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1577926/comments/18

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.