Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

When i try to install or update any packages I get:

Untrusted packages could compromise your system's security. You should only proceed with the installation if you are certain that this is what you want to do.

I strongly suspect this is related to the error i get on update:

$ sudo aptitude update
Get: 1 wheezy InRelease [208 kB]
Get: 2 wheezy InRelease [208 kB]
Ign wheezy InRelease
Hit wheezy/main amd64 Packages/DiffIndex
Hit wheezy/contrib amd64 Packages/DiffIndex
Hit wheezy/non-free amd64 Packages/DiffIndex
Hit wheezy/contrib Translation-en
Hit wheezy/main Translation-en
Hit wheezy/non-free Translation-en
Get: 3 wheezy-updates InRelease [116 kB]
Ign wheezy InRelease
Ign wheezy-updates InRelease
Hit wheezy/main Sources/DiffIndex
Hit wheezy/main amd64 Packages/DiffIndex
Hit wheezy/main Translation-en
Ign wheezy/contrib Translation-en_US
Ign wheezy-updates/main Sources/DiffIndex
Ign wheezy-updates/main amd64 Packages/DiffIndex
Ign wheezy/main Translation-en_US
Ign wheezy/non-free Translation-en_US
Hit wheezy-updates/main Sources
Hit wheezy-updates/main amd64 Packages
Ign wheezy/main Translation-en_US
Ign wheezy-updates/main Translation-en_US
Ign wheezy-updates/main Translation-en
Fetched 531 kB in 1s (304 kB/s)
W: GPG error: wheezy InRelease: Unknown error executing gpgv
W: GPG error: wheezy InRelease: Unknown error executing gpgv
W: GPG error: wheezy-updates InRelease: Unknown error executing gpgv

I have tried reinstalling the key ring: sudo aptitude reinstall debian-archive-keyring (which surprisingly doesn't cause a warning).

share|improve this question
Possibly related: – kasperd Oct 13 '14 at 9:25
Possibly related: – ntc2 Oct 14 at 23:51

3 Answers 3

up vote 12 down vote accepted

Try this please:

Open a terminal and run the following commands:

sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get clean
sudo apt-get update
share|improve this answer
you don't reallly think I've just been ignoring this issue for 16 months do you? I'm not sure if this would work because I don't see the problem any more. I probably just rebuilt but I'm not sure as I don't even remember which machine it was. – user1794469 Jan 31 '14 at 0:12
@user1794469. This site is supposed to be a useful to everyone, not just you. As such, late answers to unanswered questions are perfectly acceptable, as they may help others. That said, this answer would be better quality if it sought to explain what those commands do. – TRiG Jul 8 '14 at 14:23
This worked for me on squeeze. Thanks. :) – bennettp123 Dec 24 '14 at 3:22
Worked for me when upgrading from squeeze to wheezy. Many thanks! – Tobia Sep 28 at 15:16

After reading APZ's answer, but wanting to use aptitude I executed with success the following commands:

# clean the obsolete cache
sudo aptitude clean
# update the package information
sudo aptitude update
# install or upgrade the packages
sudo aptitude install <list of packages to upgrade/install>

The error is probably related to obsolete apt cache contents, but the error message I got was a bit different:

WARNING: untrusted versions of the following packages will be installed!

share|improve this answer

You seem to be hit by Debian bug #657561. You can try to move problematic /var/lib/apt/lists/*InRelease files and rerun apt-get update.

share|improve this answer
Nope, i knew there was one more thing i had tried... I did rm -r /var/lib/apt/lists/* – user1794469 Nov 2 '12 at 18:26
Any more ideas? – user1794469 Nov 6 '12 at 15:35

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.