If you are on Linux Mint, there is an easy and correct solution (for the time being):
(For Ubuntu, see below.)
There is a version available that works fine, but it’s somehow not in the repositories for literal months now. (I would be ashamed, if I were the maintainer.)
You can install it manually though:
- Grab the latest
mintsources_*.zip from https://github.com/linuxmint/mintsources/issues/240
- Unzip to a temporary dir.
- Open all the
.deb files in there, and click on “Install”.
- Remove the temporary dir again.
- Don’t forget to make sure if the package ever ends up in the official repositories, that newer versions that what you have installed are actually picked up. (E.g. Set a reminder to come here again in a couple of months, and find if there are newer versions than what you have installed.)
I just tried it, and it correctly puts the files in /etc/apt/keyrings and uses the correct deb [arch=… signed-by=/etc/apt/keyrings/….gpg] … syntax in /etc/apt/sources.list.d/*.list.
Maybe it works in plain Ubuntu too. CLI apt-key and apt-add-repository should work at least, even if mintsources (the GUI tool) clearly is made for Mint. If the .deb are a hassle, maybe unpacking stuff from mintsources_2.1.11.tar.xz:/usr/ to you /usr/local/ (!!) should get it to work (provided the dependencies are there).
I hope this finally solves this miserable situation.
apt-keyis deprecated. They indicate that your keys are stored in a deprecated format, and provide instructions for upgrading the storage format. See also techrepublic.com/article/….man apt-keyindicates "Deprecated APT key management utility". Usingadd-apt-repositorywill issueWarning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).. The link you provide fix previously added repositories. I want a tool that will not require a fix and won't use deprecated tools