Hello,
I am using a RPi3, having installed OSMC, added a MySQL-Server, an owncloud-server , configured cron-apt (everything done under Jessie) and all worked relatively good.
First issue has been the cron-apt errors concerning multiple configuration of target packages
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1
…
But since this have been only warnings and cron-apt did its job, I have ignored this due to work-pressure.
But since the end of April, I have a severe issue concerning apt-key, which prevents the download of the package-lists.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.debian.org stretch/updates InRelease: Unknown error executing apt-key
…
Please forgive me, because I am no professional Linux-user, so please tell me exactly what to do, to give you the data you need.
To get a better understanding of the problem you are experiencing we need more information from you. The best way to get this information is for you to upload logs that demonstrate your problem. You can learn more about how to submit a useful support request here.
So, in summary:
activate the logging
reboot the OSMC device
reproduce the issue
upload the log set either using the Log Uploader method within the My OSMC menu in the GUI or the ssh method invoking command grab-logs -A
publish the provided URL from the log set upload, here
Thanks for your understanding. We hope that we can help you get up and running again shortly.
sudo apt-get update | paste-log
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.debian.org stretch/updates InRelease: Unbekannter Fehler beim Ausführen von apt-key
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /debian stretch Release: Unbekannter Fehler beim Ausführen von apt-key
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /debian stretch-updates InRelease: Unbekannter Fehler beim Ausführen von apt-key
W: GPG-Fehler: Index of /osmc/osmc/apt stretch InRelease: Unbekannter Fehler beim Ausführen von apt-key
E: The repository ‘http://apt.osmc.tv stretch InRelease’ is not signed.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /debian stretch-backports InRelease: Unbekannter Fehler beim Ausführen von apt-key
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1
W: Target Translations (main/i18n/Translation-de_DE) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1
W: Target Translations (main/i18n/Translation-de) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1
W: Target Packages (contrib/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1
W: Target Translations (contrib/i18n/Translation-de_DE) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1
W: Target Translations (contrib/i18n/Translation-de) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1
W: Target Packages (non-free/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1
W: Target Translations (non-free/i18n/Translation-de_DE) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1
W: Target Translations (non-free/i18n/Translation-de) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/security.list:1 https://paste.osmc.tv/belugefuce
First of all, please show us /etc/apt/sources.list.d/security.list since it seems to be causing problems.
According to Big G, the error “Unbekannter Fehler beim Ausführen von apt-key” translates as “Unknown error while running apt-key”. Therefore, please run apt-key list and post the output. If it throws an error, please run md5sum /usr/bin/apt-key. The result should be a479267a797c113b59b1a8b543c0870f.
You should remove the file since it duplicates what’s already in /etc/apt/sources.list and will cause the “multiple times” error.
The output from apt-key list looks to be ok except that it’s missing the OSMC key. That is odd since I see that you have successfully updated from the OSMC repo. What’s the output from running ls -l /etc/apt/trusted.gpg.d and ls -l /etc/apt?
That’s a bit worrying, but now that the file has been removed, have you tried running sudo apt-get update to see if the “multiple times” error has gone?
sudo apt-get update
Holen:1 http://security.debian.org stretch/updates InRelease [94,3 kB]
Ign:2 Index of /debian stretch InRelease
OK:6 Index of /debian stretch Release
Holen:4 Index of /debian stretch-updates InRelease [91,0 kB]
Holen:3 Index of /osmc/osmc/apt stretch InRelease [4.664 B]
Holen:5 Index of /debian stretch-backports InRelease [91,8 kB]
Fehl:1 http://security.debian.org stretch/updates InRelease
Unbekannter Fehler beim Ausführen von apt-key
Fehl:7 Index of /debian stretch Release.gpg
Unbekannter Fehler beim Ausführen von apt-key
Fehl:3 Index of /osmc/osmc/apt stretch InRelease
Unbekannter Fehler beim Ausführen von apt-key
Fehl:4 Index of /debian stretch-updates InRelease
Unbekannter Fehler beim Ausführen von apt-key
Fehl:5 Index of /debian stretch-backports InRelease
Unbekannter Fehler beim Ausführen von apt-key
Paketlisten werden gelesen… Fertig
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.debian.org stretch/updates InRelease: Unbekannter Fehler beim Ausführen von apt-key
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /debian stretch Release: Unbekannter Fehler beim Ausführen von apt-key
W: GPG-Fehler: Index of /osmc/osmc/apt stretch InRelease: Unbekannter Fehler beim Ausführen von apt-key
E: The repository ‘http://apt.osmc.tv stretch InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /debian stretch-updates InRelease: Unbekannter Fehler beim Ausführen von apt-key
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /debian stretch-backports InRelease: Unbekannter Fehler beim Ausführen von apt-key
sudo apt-get install --reinstall gpgv libgcrypt20
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen… Fertig
0 aktualisiert, 0 neu installiert, 2 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 0 B von 920 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
(Lese Datenbank … 55175 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von …/gpgv_2.1.18-8~deb9u1_armhf.deb …
Entpacken von gpgv (2.1.18-8~deb9u1) über (2.1.18-8~deb9u1) …
Vorbereitung zum Entpacken von …/libgcrypt20_1.7.6-2+deb9u2_armhf.deb …
Entpacken von libgcrypt20:armhf (1.7.6-2+deb9u2) über (1.7.6-2+deb9u2) …
libgcrypt20:armhf (1.7.6-2+deb9u2) wird eingerichtet …
gpgv (2.1.18-8~deb9u1) wird eingerichtet …
Trigger für libc-bin (2.24-11+deb9u3) werden verarbeitet …
Trigger für man-db (2.7.6.1-2) werden verarbeitet …
And the important sudo apt-get update gave:
Ign:1 Index of /debian stretch InRelease
Holen:5 http://security.debian.org stretch/updates InRelease [94,3 kB]
OK:6 Index of /debian stretch Release
Holen:2 Index of /debian stretch-updates InRelease [91,0 kB]
Holen:3 Index of /osmc/osmc/apt stretch InRelease [4.664 B]
Holen:4 Index of /debian stretch-backports InRelease [91,8 kB]
Fehl:5 http://security.debian.org stretch/updates InRelease
Unbekannter Fehler beim Ausführen von apt-key
Fehl:7 Index of /debian stretch Release.gpg
Unbekannter Fehler beim Ausführen von apt-key
Fehl:2 Index of /debian stretch-updates InRelease
Unbekannter Fehler beim Ausführen von apt-key
Fehl:3 Index of /osmc/osmc/apt stretch InRelease
Unbekannter Fehler beim Ausführen von apt-key
Fehl:4 Index of /debian stretch-backports InRelease
Unbekannter Fehler beim Ausführen von apt-key
Paketlisten werden gelesen… Fertig
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.debian.org stretch/updates InRelease: Unbekannter Fehler beim Ausführen von apt-key
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /debian stretch Release: Unbekannter Fehler beim Ausführen von apt-key
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /debian stretch-updates InRelease: Unbekannter Fehler beim Ausführen von apt-key
W: GPG-Fehler: Index of /osmc/osmc/apt stretch InRelease: Unbekannter Fehler beim Ausführen von apt-key
E: The repository ‘http://apt.osmc.tv stretch InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Index of /debian stretch-backports InRelease: Unbekannter Fehler beim Ausführen von apt-key