Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Apt-key deprecated

  1. #1
    Join Date
    Aug 2020
    Beans
    16

    Apt-key deprecated

    I am trying to add webmin gui to my server build, so I can access, but every time I keep using

    Code:
    wget -q http://www.webmin.com/jcameron-key.asc -O- | apt-key add
    I keep getting an error of

    apt-key is deprecated
    I have updated the OS but don't know how to get passed this
    Last edited by richieserver; March 20th, 2021 at 03:49 PM.

  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Apt-key deprecated

    From its manual page:
    Use of apt-key is deprecated, except for the use of apt-key del in maintainer scripts to remove existing keys from the main keyring. If such usage of apt-key is desired the additional installation of the GNU Privacy Guard suite (packaged in gnupg) is required.

    apt-key(8) will last be available in Debian 11 and Ubuntu 22.04.
    What you get is not an error, it's a warning.

    It also looks like you forgot a dash:
    Code:
    wget -q http://www.webmin.com/jcameron-key.asc -O- | apt-key add -
    Last edited by schragge; February 27th, 2021 at 02:53 PM.

  3. #3
    Join Date
    Aug 2020
    Beans
    16

    Re: Apt-key deprecated

    Hi there, thanks for your reply

    When I typed the correction in, it now comes up with that the above can only be used by @root, which I got into the root by using su

    Only to see that no valid PGP is found in the warning or error message
    Same warning that the apt-key is deprecated

    Warning also said that the keyring has to be managed by the files in trusted.gpg.d

    There are two files in that folder

  4. #4
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,614
    Distro
    Ubuntu

    Re: Apt-key deprecated

    Here's some examples of the over the top methods to add keys in the future (currently):
    https://askubuntu.com/questions/1286...ecated-apt-key
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  5. #5
    Join Date
    Aug 2020
    Beans
    16

    Re: Apt-key deprecated

    I have renamed the teamviewer version to webmin, but it's still not working

  6. #6
    Join Date
    Aug 2020
    Location
    Denmark
    Beans
    100
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Apt-key deprecated

    Quote Originally Posted by richieserver View Post
    I have renamed the teamviewer version to webmin, but it's still not working
    Please explain this - what do you mean, where did Teamviewer come from?
    Supermicro Server :: Atom C3558 (4) @ 2.2 GHz :: 64 GB ECC DDR4-2400 :: 512 GB NVMe :: 4x 2 TB SSD @ RAID-Z :: 1x Raspberry Pi 4 Server

    Scripts: directory-tools | rsync-backup | add-apt-key

  7. #7
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Apt-key deprecated

    From the Ask Ubuntu question linked to by deadflowr.

  8. #8
    Join Date
    Sep 2011
    Location
    Behind you!
    Beans
    1,690
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Apt-key deprecated

    Quote Originally Posted by richieserver View Post
    I have updated the OS
    So what version and kernel are you running? You never clarified.

    Code:
    lsb_release -a
    uname -a
    LHammonds

  9. #9
    Join Date
    May 2013
    Location
    Galiza
    Beans
    4,009
    Distro
    Ubuntu

    Re: Apt-key deprecated

    Quote Originally Posted by schragge View Post
    From the Ask Ubuntu question linked to by deadflowr.
    That question is about the same issue but related to a different certificate of a different software. The outlined method is what you should follow, NOT download the Teamviewer's one and rename it.

  10. #10
    Join Date
    Aug 2020
    Beans
    16

    Re: Apt-key deprecated

    Quote Originally Posted by CelticWarrior View Post
    That question is about the same issue but related to a different certificate of a different software. The outlined method is what you should follow, NOT download the Teamviewer's one and rename it.

    I did follow the method with the Teamviewer's first, but that didn't anything

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •