Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Apt-key deprecated

  1. #11
    Join Date
    Aug 2020
    Beans
    16

    Re: Apt-key deprecated

    Quote Originally Posted by LHammonds View Post
    So what version and kernel are you running? You never clarified.

    Code:
    lsb_release -a
    uname -a
    LHammonds
    I've attached pics because it's too much to type out
    Attached Images Attached Images

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

    Re: Apt-key deprecated

    I think the long-term solution here would be to create a script that:

    • Checks if the key is ASCII-armored - and dearmor if that's the case
    • Put they key in your preferred folder (for instance /usr/share/keyrings)
    • Add the repo to your sources with the [signed-by=/usr/share/keyrings/<name-of-keyfile>]

    I'm sure I'll eventually get around to creating that - and maybe LHammonds will as well - and maybe someone already did at some location I'm not aware of.
    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

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

    Re: Apt-key deprecated

    I created a shell script that can download and install keys to be used with [signed-by=] declaration in sources.list.

    It's available on github.com/ameinild/add-apt-key.

    Readme:
    # POSIX Script for installing APT keys
    ## General help
    This script will help with installing PGP keys for APT repositories.

    This script supports up to 2 arguments:
    1st argument is input file. This can be either:
    - An URL - key will be downloaded into current path (using wget or curl)
    - A filename - reads an existing key in current path
    - A path and a filename - reads an existing key in given path
    2nd argument is key output path and output name. This can be either:
    - Only filename - output path is set in config, saved as given filename
    - A path and a filename - output path is given here, saved as given filename
    - Only a path (end with /) - output path is given here, filename is taken from existing key
    - Empty - output path is set in config, filename is taken from existing key

    This script has a config file `/usr/local/etc/add-apt-key.conf`, where the following variables can be set:
    - `keypath` : path to store converted key - default is `/usr/share/keyrings`
    - `verbosity` : if set to Yes - displays extra output
    - `removetmp` : if set to Yes - remove input (non-converted) file

    Example 1: (`PWD=/root`)

    sudo add-apt-key https://mariadb.org/mariadb_release_signing_key.asc /usr/local/share/keyrings/

    Will download key in `/root`, convert it and store as `/usr/local/share/keyrings/mariadb_release_signing_key.gpg`

    Example 2: (`PWD=/home/user`)

    sudo add-apt-key /root/mariadb_release_signing_key.asc /usr/local/share/keyrings/mariadbkey

    Will use existing key in `/root`, convert it and store as `/usr/local/share/keyrings/mariadbkey.gpg`

    Example 3: (`PWD=/home/user`)

    sudo add-apt-key mariadb_release_signing_key.asc mariadbkey

    Will use existing key in `/home/user`, convert it and store as `/usr/share/keyrings/mariadbkey.gpg`

    ## Installation
    Install by running the following commands:

    sudo curl -L https://raw.githubusercontent.com/am...er/add-apt-key -o /usr/local/bin/add-apt-key
    sudo curl -L https://raw.githubusercontent.com/am...d-apt-key.conf -o /usr/local/etc/add-apt-key.conf
    sudo chmod a+rx /usr/local/bin/add-apt-key
    Last edited by ameinild; March 5th, 2021 at 08:56 AM.
    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

  4. #14
    Join Date
    Aug 2020
    Beans
    16

    Re: Apt-key deprecated

    I will mark this as solved, as I've found another way to install webmin, though at the moment it isn't running, but I think I know why that is

Page 2 of 2 FirstFirst 12

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
  •