Код:
W: GPG error: ftp://ftp.mepis.com mepis-8.0 Release: The following signatures were invalid: KEYEXPIRED 1232642708 KEYEXPIRED 1232642708 KEYEXPIRED 1232642708
W: You may want to run apt-get update to correct these problems
Если Вы столкнулись с подобной проблемой, можно воспользоваться
одним из нижеследующих советов:
1. вручную выполнить следующее:
open konsole, type "su" and root password.
gpg --keyserver subkeys.pgp.net --recv-keys <pubkey>
gpg --armor --export <pubkey> | apt-key add -
apt-get update
Keys may be on any of these servers as well:
minsky.surfnet.nl
wwwkeys.pgp.net
pgp.dtype.org
wwwkeys.us.pgp.net
2. автоматизировать процесс:
Размещаем где-нибудь в /usr/local/bin файл со следующим содержимым:
Код:
#!/bin/sh
# checkaptget - check the .gpg signed Release files for missing keys
# Check if I am root for use later.
if [ $(id -u) -ne 0 ]; then
ROOT=0
else
ROOT=1
fi
# Will we need to be rerun as root?
RERUN=0
# The location of the trusted keyring.
APT_TRUSTED=/etc/apt/trusted.gpg
# The location of the Release files.
APT_LISTS=/var/lib/apt/lists
# Get a list of repositories for which we have downloaded a Release file
REPOSITORIES=`ls $APT_LISTS | grep Release$`
# For each repository look for a matching Release.gpg signature
for repo in $REPOSITORIES
do
echo Checking $repo
RELEASE=$APT_LISTS/$repo
GPG=''
if [ -s $RELEASE.gpg ]
then
GPG=$RELEASE.gpg
else
if [ -s $APT_LISTS/partial/$repo.gpg ]
then
GPG=$APT_LISTS/partial/$repo.gpg
else
if [ -s $APT_LISTS/partial/$repo.gpg.reverify ]
then
GPG=$APT_LISTS/partial/$repo.gpg.reverify
fi
fi
fi
if [ $GPG ]
then
# We have found a Release.gpg signature
ANSWER=`gpg -q --no-default-keyring --keyring $APT_TRUSTED --verify $GPG $RELEASE 2>&1`
if [ $? -ne 0 ]
then
# GPG errored -
# Assume that an ID was included in the error message in the form
# ... ID <GPGID> ...
IDFOUND=0
for xx in $ANSWER
do
if [ $IDFOUND -eq 0 ]
then
if [ "ID" = "$xx" ]
then
IDFOUND=1
fi
else
GPGKEY=$xx
break
fi
done
if [ $ROOT -eq 1 ]; then
# We are root, so we can try to download the key.
apt-key adv --keyserver hkp://subkeys.pgp.net --recv-key $GPGKEY
# Assume it worked.
else
# We are not root, so output a message.
echo " Missing GPG ID $GPGKEY"
RERUN=1
fi
else
echo " Good GPG signature found."
fi
else
echo " No GPG Release signature found."
fi
done
if [ $RERUN -gt 0 ]; then
echo
echo "Rerun as root to download the missing keys."
fi
не забыв при этом сделать его исполняемым. После чего просто выполняем данный скрипт, который автоматически добавит недостающие ключи.