Using apt-keys

Keith keith at caramail.com
Sat Jan 9 00:08:09 UTC 2021


On 1/8/21 3:56 PM, david wrote:
> Folks
>
> I tried installing Virtualbox in 20.04, and recent exchanges on the
> mailing list advised me to use the Oracle repository rather than the one
> built into the Ubuntu distribution.  Following one of the installation
> guides, I was asked to add a key to apt's keyring using apt-key.  This
> led me to a deprecated warning, and further research led me to a
> multi-step incomprehensible replacement for the one (or two, depending
> how you count) replacement for sequences like
>
> sudo apt-key list
>
> check to see if the Oracle key is already there. and if not, issue:
>
> wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- |
> sudo apt-key add -
>
>
> I would hope that the replacement to 'apt-key' is easy.  I can't believe
> that developers would replace a one-line commands with something
> complex.  Please advise.
>
> Thanks
>
> David
>
>

$ sudo wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc
-O /etc/apt/trusted.gpg.d/oracle_vbox_2016.asc

$ apt-key list
...
/etc/apt/trusted.gpg.d/oracle_vbox_2016.asc
-------------------------------------------
pub   rsa4096 2016-04-22 [SC]
       B9F8 D658 297A F3EF C18D  5CDF A2F6 83C5 2980 AECF
uid           [ unknown] Oracle Corporation (VirtualBox archive signing
key) <info at virtualbox.org>
sub   rsa4096 2016-04-22 [E]


worked for me.

--
Keith




More information about the ubuntu-users mailing list