As the title suggests, when I entered the following command at the terminal, an error occurred.
$sudo apt-get update
Hit:1 http://jp.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://jp.archive.ubuntu.com/ubuntu local-updates InRelease
Hit:3 http://jp.archive.ubuntu.com/ubuntu local-backports InRelease
Hit:4 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:5 http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_20.04 InRelease
Get: 6 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease [23.5kB]
Err:6 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C6ABDCF64DB9A0B2
Hit—7 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
W: GPG error: https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease: The following signatures could not' be verified because the public key is not available: NO_PUBKEY C6ABDCF64DB9A0B2
E: The repository 'https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease' is not signed.
N: Updating from such a repository can't be done securely, and there is before disabled by default.
N—See apt-secure(8)manpage for repository creation and user configuration details.
In order to resolve the above error, we have done the following two things:
(1) Delete Slack
I removed the Slack app from the GUI that I installed as an installer.
The above error has not been affected.
いずれAnyway, Slack is necessary, so even if this solution is used, it will be a problem...
(2) Attempting to resolve using the apt-key command
I entered the following command referring to How do I fix the GPG error "NO_PUBKEY"?.
sudo gpg --keyserver pgpkeys.mit.edu --recv-key<PUBKEY>
sudo gpg-a --export<PUBKEY> | sudo apt-key add-
sudo apt-get update
は is the error value, C6ABDCF64DB9A0B2 has been replaced and entered.
After entering it, the display is as follows.
$sudo gpg --keyserver pgpkeys.mit.edu --recv-key C6ABDCF64DB9A0B2
gpg:key D938EC0D038651BD: "https://packagecloud.io/slacktechnologies/slack(https://packagecloud.io/docs#gpg_signing)<[email protected]>"not changed
gpg —Total number processed:1
gpg:unchanged:1
$ sudo gpg-a --export C6ABDCF64DB9A0B2 | sudo apt-key add-
gpg:invalid key resource URL '/tmp/apt-key-gphome.IDoHc58igN/home:manuelschneid3r.asc.gpg'
gpg:keyblock resource '(null)':General error
gpg:key7721F63BD38B4796:2signatures not checked due to missing keys
gpg:key1488EB46E192A257:1 signature not checked due to a missing key
gpg:key1488EB46E192A257:1 signature not checked due to a missing key
gpg:key3B4FE6ACC0B21F32:3 signatures not checked due to missing keys
gpg —key D94AA3F0EFE21092—3 signatures not checked due to missing keys
gpg:key871920D1991BC93C:1 signature not checked due to a missing key
gpg —Total number processed: 7
gpg:skipped new keys:7
None of the above methods has been solved at all.
I would appreciate your advice and answers.
[Additional note: Sunday, August 29]
When I checked the installed packages with apt and dpkg, there was no rack in them.
$apt list --installed2>/dev/null | grep rack
$ dpkg-l
Additional References
I get an error when I do a $sudo apt update on the Debian 10 bash shell.
Key not found on keyserver or keyserver not accessible
apt-get update giving error in Ubuntu 18.04
Now that I've solved myself, I'll write it down here.
First of all, I'll give up installing Slack using apt, and then I'll delete (1) Repository (2) Repository List (3) GPG Key.
As for (1), as I mentioned in the question, it was not confirmed whether it was apt or dpkg, so it seems that it has been uninstalled.
As for (2),
$cd/etc/apt/sources.list.d
$ ls
google-chrome.list home:manuelschneid3r.list rack.list
$ sudorm rack.list
is available in .
As for (3),
$sudo apt-key list
Does it not exist in the first place because the corresponding GPG key is missing?
After finishing the above, sudo apt update
was successful.
[Reference]
Delete repositories you no longer need in Ubuntu
© 2024 OneMinuteCode. All rights reserved.