Ubuntu: command for adding signature not working

Discussions related to using VirtualBox on Linux hosts.
Post Reply
trekfan1
Posts: 98
Joined: 13. May 2007, 07:22
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux
Location: Italy

Ubuntu: command for adding signature not working

Post by trekfan1 »

On Ubuntu 20.04 the command for add signature for the new version of apt is not working. I'm copy and paste the command but the terminal answer is

Code: Select all

2 root@ubuntu-hp:/home/trekfan1/Desktop# gpg --armor oracle_vbox_2016.asc --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg
gpg: Nota: '--yes' It is not considered an option
gpg: Nota: '--output' It is not considered an option
gpg: NOTICE: No command provided.Trying to guess what you mean ...
use: gpg [options] [filename]
if I'm use the extended version (download and registering):

Code: Select all

-2022-08-13 21: 15: 14- https://www.virtualbox.org/download/oracle_vbox_2016.asc
Resolution of www.virtualbox.org (www.virtualbox.org) ... 137.254.60.32
Connection to www.virtualbox.org (www.virtualbox.org) | 137.254.60.32 |: 443 ... connected.
Error: It is impossible to check the certificate of www.virtualbox.org, issued by 'CN = Digicert TLS RSA SHA256 2020 CA1, O = Digicert inc, C = US':
  Impossible to verify the issuer's authority locally.
To connect to www.virtualbox.org in a unwanted way, use "-ne-Check-Certificate".
GPG: No valid OpenPGP data were found.
Sorry for my English, i'm Italian
joestr
Posts: 1
Joined: 14. Aug 2022, 14:34
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows 7, Windows 10, Windows Server 2019, OpenSuse 15.1 Leap, Xubuntu 20.04
Contact:

Re: Ubuntu: command for adding signature not working

Post by joestr »

It seems your machine cannot verify the CA chain.

Try updating your CA certificates with:

Code: Select all

sudo update-ca-certificates 
And then running the combined downloading and registering GPG key command again.
trekfan1
Posts: 98
Joined: 13. May 2007, 07:22
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux
Location: Italy

Re: Ubuntu: command for adding signature not working

Post by trekfan1 »

I gave the command to update the certificates and then the extended command, nothing done

Code: Select all

27 root@ubuntu-hp:~# update-ca-certificates 
Clearing symlinks in /etc/ssl/certs...
done.
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
Updating Mono key store
Mono Certificate Store Sync - version 6.8.0.105
Populate Mono certificate store from a concatenated list of certificates.
Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.

Importing into legacy system store:
I already trust 138, your new list has 127
6 previously trusted certificates were removed.
Certificate removed: C=EU, L=Madrid (see current address at http://www.camerfirma.com/address), SERIALNUMBER=A82743287, O=AC Camerfirma S.A., CN=Chambers of Commerce Root - 2008
Certificate removed: C=GB, O=Trustis Limited, OU=Trustis FPS Root CA
Certificate removed: C=FI, O=Sonera, CN=Sonera Class2 CA
Certificate removed: C=NL, O=Staat der Nederlanden, CN=Staat der Nederlanden Root CA - G3
Certificate removed: C=EU, L=Madrid (see current address at http://www.camerfirma.com/address), SERIALNUMBER=A82743287, O=AC Camerfirma S.A., CN=Global Chambersign Root - 2008
Certificate removed: C=BM, O=QuoVadis Limited, OU=Root Certification Authority, CN=QuoVadis Root Certification Authority
Import process completed.

Importing into BTLS system store:
I already trust 135, your new list has 127
6 previously trusted certificates were removed.
Certificate removed: C=EU, L=Madrid (see current address at http://www.camerfirma.com/address), SERIALNUMBER=A82743287, O=AC Camerfirma S.A., CN=Chambers of Commerce Root - 2008
Certificate removed: C=EU, L=Madrid (see current address at http://www.camerfirma.com/address), SERIALNUMBER=A82743287, O=AC Camerfirma S.A., CN=Global Chambersign Root - 2008
Certificate removed: C=FI, O=Sonera, CN=Sonera Class2 CA
Certificate removed: C=GB, O=Trustis Limited, OU=Trustis FPS Root CA
Certificate removed: C=BM, O=QuoVadis Limited, OU=Root Certification Authority, CN=QuoVadis Root Certification Authority
Certificate removed: C=NL, O=Staat der Nederlanden, CN=Staat der Nederlanden Root CA - G3
Import process completed.
Done
done.
root@ubuntu-hp:~# wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --dearmor --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg
--2022-08-16 10:20:30--  https://www.virtualbox.org/download/oracle_vbox_2016.asc
Resolution of http://www.virtualbox.org (http://www.virtualbox.org) ... 137.254.60.32
Connection to http://www.virtualbox.org (http://www.virtualbox.org) | 137.254.60.32 |: 443 ... connected.
Error: It is impossible to check the certificate of http://www.virtualbox.org, issued by 'CN = Digicert TLS RSA SHA256 2020 CA1, O = Digicert inc, C = US':
  Impossible to verify the issuer's authority locally.
To connect to http://www.virtualbox.org in a unwanted way, use "-ne-Check-Certificate".
GPG: No valid OpenPGP data were found.
2 root@ubuntu-hp:~#
Sorry for my English, i'm Italian
Post Reply