![]() This is kind of late to the table, but I only ran into this yesterday. I originally put this together because i3 in their sur5r repo does this, but then I found out their keys are in the list, so I can just sudo apt-key adv -keyserver -recv-keys E3CA1A89941C42E6 and avoid all the extra package hassles. # Update should run without the GPG warnings now that the key is installed # you may have to `sudo apt remove -purge repo-keyring-pkgname` # If you ever run `sudo apt-key del your-repos-keyID` # out the old lists with `sudo rm /var/lib/apt/lists/*`Īpt-get -o APT::Get::AllowUnauthenticated=true install repo-keyring-pkgname # having the GPG key and repository on the system, you can clean # if the 'apt update' above fails it is likely due to previously o Acquire::AllowDowngradeToInsecureRepositories=true \ Sudo apt -o Acquire::AllowInsecureRepositories=true \ echo "deb $(lsb_release -c -s) universe" | sudo tee /etc/apt//your-repo-name.list The below script is not recommended if you can install the keys from a keyserver (as recommended in another answer using apt-key adv) or if you can download them from a trusted source via https and install using apt-key (eg wget | sudo apt-key add -), but if you don't have ANY other way, you can use this. If you are trying to get a package from a repository where they packaged the keys and include them within the repository and no where else, it can be very annoying to download and install the key/keyring package using dpkg, and very difficult to do so in an easily scriptable and repeatable manner.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |