NO_PUBKEY error
-
@Christian-Rauch assuming you use a up-to-date download of
linux_signing_key.pub
,apt-key add linux_signing_key.pub
inserts a new key to
/etc/apt/trusted.gpg
and the error should be gone.
Vivaldi Package Composer KEY06 is required since 2021-01-07.Regular
gpg
operates on the user keyring in~/.gnupg
, which is ignored byapt
.The 3 locations
apt
looks for repo signing keys:- /etc/apt/trusted.gpg (deprecated, still used by the Vivaldi/Chromium install/cron script)
- files in /etc/apt/trusted.gpg.d folder (for distribution-owned keys)
- keyring supplied via
signed-by
attribute for the respective repo entry in/etc/apt/sources.list.d/*
file
-
Thanks for all your efforts. I finally found the root cause and could solve the initial issue.
I think you are all curious now about how to solve it
Issue
I am affected by https://github.com/openSUSE/software-o-o/issues/842. My
apt-key
is simply not able to import any new keys since I used to have a keyisv:ownCloud:desktop.asc.gpg
.
This key does not exist anymore but my apt-key nevertheless reports:gpg: invalid key resource URL '/tmp/apt-key-gpghome.1wErLiXK1B/isv:ownCloud:desktop.asc.gpg' gpg: keyblock resource '(null)': General error
where
1wErLiXK1B
is just a random hash. That file is generated on the fly and there is no way to delete it.It is just that the new Vivaldi key from the update on the 7th Jan. was the first key that got imported in a long time and presented the issue. The same issue happens with the official Google Chrome deb package.
Solution
- import the public Vivaldi key via gpg
gpg --import linux_signing_key.pub
- export GnuPG
gpg --export [email protected] > vivaldi.gpg
- move gpg key to apt keys:
sudo mv vivaldi.gpg /etc/apt/trusted.gpg.d/
- delete the gpg key again:
gpg --delete-keys [email protected]
Now,
apt-key list
shows me:/etc/apt/trusted.gpg.d/vivaldi.gpg ---------------------------------- pub rsa4096 2019-11-12 [SC] [expires: 2022-01-30] 790D 2E26 8F67 FE01 3B32 76D3 793F EB8B B697 35B2 uid [ unknown] Vivaldi Package Composer KEY06 <[email protected]> sub rsa4096 2019-11-12 [E] [expires: 2022-01-30]
and I can finally use apt again to update Vivaldi.
Note that this only imports the key manually and does not solve the root
apt-key add
issue.It would be great if Vivaldi could in future just provide the
.gpg
in the.deb
package so that it does not have to be imported via a script. This would be more robust. - import the public Vivaldi key via gpg
-
@Gwen-Dragon Yes, the same issue appears with Google Chrome. Nevertheless, the key import would be more robust if the
gpg
would be provided in thedeb
package. -
I have the same issue with apt on Deepin 20, based on Debian 10. So I think there's a bug in apt somewhere.
-
@Gwen-Dragon said in NO_PUBKEY error:
It tried on Debian 10, Ubuntu 20, Mint 20, Debian Testing and did not get trouble with keys for apt. Really a weird issue with the apt on your one Linux PC.
I too have this very same issue while using Linux Mint 20.1. I've tried all of the solutions suggested on this page and it did not change the situation. About a month ago, I unsuccessfully tried other suggestions from another site.
Therefore, after many years of being a happy Vivaldi user, I have uninstalled it, much to my regret. I have several other .deb installed programs and only have this problem with Vivaldi.
While I understand no tears will be shed for losing a single user, it is nevertheless a great disappointment to me. Many people don't have time to figure out why a program doesn't work and I suppose I am now one of those. I tried to run down a few things listed on this page and it didn't help so, really, I'm just tired of trying to fix it myself.
I've tried the instructions listed here:
No matter what I do,it always ends up like this:
Goodbye, Vivaldi. I'll check back in from time to time and see if I am able to use you again.
-
@CtrlAltDel
Such individual issues happen with any apps or operating systems. There are unknown interferences causing nonfunctions.Look at firefox forums, linux forums, windows forums. There always are some trouble issues few people experience.
To really find what is causing the failure isn't successful sometimes.
But don't blame Vivaldi for it. I'm running Vivaldi on 2 machines with Linux Mint 20.1 and on Windows 10 without any issues, except some cases with the calendar.
-
@Gwen-Dragon said in NO_PUBKEY error:
wget -qO- https://repo.vivaldi.com/archive/linux_signing_key.pub | sudo apt-key add -
It might work fine still on Ubuntu LTS and Debian Stable, but it doesn't work anymore on newer Debian versions like Debian Unstable, however, because apt-key is deprecated and fails to work:
wget -qO- https://repo.vivaldi.com/archive/linux_signing_key.pub | sudo apt-key add -
Warning: 'apt-key' is deprecated and should not be used anymore!
Note: In your distribution this command is a no-op and can therefore be removed safely.
Manage keyring files in trusted.gpg.d instead (see apt-key(8)). -
In fact, apt-key is so deprecated that it will be removed after Debian 11 and Ubuntu 22.04: https://www.linuxuprising.com/2021/01/apt-key-is-deprecated-how-to-add.html
"What's more, "apt-key will last be available in Debian 11 and Ubuntu 22.04."" -
This should only become a major issue if @ruarà procrastinates until Ubuntu 22.09 :face_with_stuck-out_tongue_winking_eye:.
And for users of distros with an early/botchedapt
transition.Apart from manual operations, this will also affect the
cron
script (still) shipped with Vivaldi.As a "single package" type application, Vivaldi could (with different locations/names for stable/snapshot):
- ship the keyfile with the package (and drop the cron script)
- create/remove the
sources.list.d
file via postinstall/-remove scripts - use
[signed-by=.../vivaldi-browser.gpg]
in the generatedsources.list.d
file
as shown in @Gwen-Dragon's linked wiki entry.
The advantages/disadvantes in regard to update stability in my opinion are equivalent to the current approach.
-
As intermediate solution the working alternative command for users is:
curl https://repo.vivaldi.com/stable/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/vivaldi-browser.gpg
to place the key into a separate supported keystore (as also shown in the Debian Wiki entry linked by @Gwen-Dragon.
The ASCII import in the cron script can also be replaced by a simple copy of a prepared (binary) key file (as opposed to use
[signed-by=…]
, for whatever reasons). -
@Gwen-Dragon the one-liner (one has to C&P anyway) containing the source URL is quite similar.
Not modifying a keyring reduces dependencies to very basic GnuPG components.
If @ruarà pushes keyfiles according to current best practices the dependency on GnuPG can also be removed for this workflow (no dearmor step required).
-
@becm said in NO_PUBKEY error:
@Gwen-Dragon the one-liner (one has to C&P anyway) containing the source URL is quite similar.
Not modifying a keyring reduces dependencies to very basic GnuPG components.
If @ruarà pushes keyfiles according to current best practices the dependency on GnuPG can also be removed for this workflow (no dearmor step required).
This is all very interesting and, frankly, complicated for those that aren't deeply involved with the inner workings of Vivaldi.
Let's just say that I wish to install Vivaldi and have it work without displaying errors, and jamming up the Software Sources repositories manager GUI in Mint 20.1.
Should I just wait until some undetermined time in the future until maybe everything will work normally again? Should I go ahead and try another route to temporarily fix the issue?
If you were me and just wanted to use Vivaldi, what would you do? Can you provide precise instructions on what to do, if it isn't too much of a hassle?
- Install by .deb file?
- Run the curl command that you provided in previous post?
- What exactly should I do and in what order should it be done in to get Vivaldi back and operating smoothly?
- Can it be done?
I've tried all the suggestions this thread and the other thread on the board discussing it and nothing seems to work. What do I need to do?
-
@CtrlAltDel if Mint actually deprecated/broke
apt-key add
prematurely, then for now the only workflow I see that could work is:- install via
.deb
file (adds repo, usesapt-key add
to add key) - manually add the Vivaldi repo key as a separate entity in
/etc/apt/trusted.gpg.d/
(curl … | gpg --dearmor > …
)
The 2nd step will have to be repeated on Vivaldi maintainer key rotation (yearly).
Normally this is handled by acron
script (instead of on install time, but that's another story…), which now also fails due to usingapt-key add
. - install via
-
@becm said in NO_PUBKEY error:
@CtrlAltDel if Mint actually deprecated/broke
apt-key add
prematurely, then for now the only workflow I see that could work is:- install via
.deb
file (adds repo, usesapt-key add
to add key) - manually add the Vivaldi repo key as a separate entity in
/etc/apt/trusted.gpg.d/
(curl … | gpg --dearmor > …
)
The 2nd step will have to be repeated on Vivaldi maintainer key rotation (yearly).
Normally this is handled by acron
script (instead of on install time, but that's another story…), which now also fails due to usingapt-key add
.Thanks for the suggestion, becm. Unfortunatley, not much has seemed to have changed. After installation with the .deb file and manually adding the key using the curl command, it still takes about 3 minutes for Software Sources/Add Missing Keys to open in Mint and errors are displayed about needing to manually add the repo .
Maybe I'll just install Vivaldi and remove the keys and repo's and not worrying about updating it. I guess that would work.
- install via
-
@CtrlAltDel not really apparent in what (internal) state of "add a repo" the software you are using is stuck in.
If the key is properly available (please post output of
apt-key list
) it might be some kind of caching issue.
Or it insists on querying a keyserver and fails due to the currently required Vivaldi repo key not being available.@Ruarà the current key for
[email protected]
seems to not be published
(missing when asking Ubuntu's default serverhkp://keyserver.ubuntu.com:80
). -
@Gwen-Dragon it's not needed for the suggested way to add a repo.
But they are available (andapt-key adv …
worked) up to 4A3AA3D6 (which is now expired but still pushed to the keyring by thecron
script shipped in Vivaldi). -
@christian-rauch That did not work for me! This however did:
wget -qO- https://repo.vivaldi.com/archive/linux_signing_key.pub | gpg --dearmor | sudo dd of=/usr/share/keyrings/vivaldi-browser.gpg
It was from a page on how to install Vivaldi - I didn't follow adding the repository, as it already was, I just ran
sudo apt update
and saw that everything was fine now... well, at least there was no more errors with the key. I'll have to see if the upgrade will work now
The site I got this from was: Manual setup of the Vivaldi Linux repositories | Vivaldi Browser Help
I've just fixed similar issue with Chrome repositories - first the key, then the fact that the repo was defined in two different files (/etc/sources.list.d/google-chrome.list and /etc/sources.list.d/additional-repositories.list - the latter one only had the google-chrome repo and I have no idea when and why it got there). These 3rd party proprietary FOSS leeches don't know how to upkeep their repos
-
@becm said in NO_PUBKEY error:
curl https://repo.vivaldi.com/stable/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/vivaldi-browser.gpg
This gives a
permission denied
error even when executed as root, so it is probably not my local permission but the one on your server? Checked various forum topics and askubuntu, still not sure how to make it work.Conclusion? Give Firefox another chance as default browser, probably.
-
@RobsukeDaisuke thanks, now it seems to work following the (re-)installation steps described, in my case for
apt
on Ubuntu.https://help.vivaldi.com/desktop/install-update/manual-setup-vivaldi-linux-repositories/
-
Get:13 https://repo.vivaldi.com/archive/deb stable Release.gpg [833 B]
Err:13 https://repo.vivaldi.com/archive/deb stable Release.gpg
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 62993C724218647EThe key is not available on public gpg keyservers like keyserver.ubuntu.com for example. How to resolve this issue? Last week everything worked fine.