Using apt-keys

MR ZenWiz mrzenwiz at gmail.com
Sat Jan 9 01:35:36 UTC 2021


On Fri, Jan 8, 2021 at 1:58 PM david <david at daku.org> 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.
>
Unless you have a need to automate this in an installation, just go to
their website manually and download the files, then install them
manually.

You should probably use dpkg to install the .deb file.

I wouldn't use apt for this unless, as I said, there's a compelling
reason to do so.  The manual approach is simple and straightforward.

Mark




More information about the ubuntu-users mailing list