This question arose with Xubuntu 22.04 in preparation for Xubuntu 24.04:
After reading the security warnings about apt-key
, I first fixed it for the last package for which I stored the package signing key in /etc/apt/trusted.gpg
with the command apt-key
- which is deprecated. Fixing this involved deleting the key from /etc/apt/trusted.gpg
(using apt-key del <key-ID>
), downloading it again using secure connection from the package maintainers into a (binary, non-armored) *.gpg file into /etc/apt/keyrings/
and building the bridge between the package and the downloaded signing key with a .list file in /etc/apt/sources.list.d
. - The s at the end of https
or hkps
secures against a MIM attack!
I then looked to see if there were other candidates of this vulnerability. I found
/etc/apt/trusted.gpg.d/atareao-ubuntu-atareao.gpg
(belonging to touchpad-indicator) and
/etc/apt/trusted.gpg.d/giuspen-ubuntu-ppa.gpg
(belonging to x-tile)
Unfortunately, I found no note how I had installed touchpad-indicator. But I found a note about the latter: It was the command
sudo add-apt-repository ppa:giuspen/ppa
Does sudo add-apt-repository
have any side effects on gpg-keys automatically being stored in /etc/apt/trusted.gpg
or in a file inside of /etc/apt/trusted.gpg.d
?
apt-key
is told to be limited toapt-key del <key ID>
.