Question about file /etc/apt/trusted.gpg.d-archive-bookworm-automatic.asc~

Hello, I installed ombi manually some time ago as recommended by the site itself, but it is obsolete and I decided to migrate to jellyseerr and overseerr, anyway, when manipulating the files in the apt folder to remove the obsolete ombi apt repository key, I ended up making a mistake that broke the key for some programs, including docker and sonarr, but after reinstalling the programs it started working again.
But I came across this broken file with a ~ sign at the end, when I gave the dietpi-update command I didn’t get any error, but I would like to know if I should fix this file or not? And if I have to fix it, how do I do it? thanks


Ombi installl



 Phase: Checking for available DietPi update

[  OK  ] DietPi-Update | Checking IPv4 network connectivity
[  OK  ] DietPi-Update | Checking DNS resolver
[ INFO ] DietPi-Update | Getting latest version from:
[  OK  ] DietPi-Update | Got valid latest version: 9.1.1
[  OK  ] DietPi-Update | No update required, your DietPi installation is already up to date:
[ INFO ] DietPi-Update | Current version : v9.1.1
[ INFO ] DietPi-Update | Latest version  : v9.1.1
[ INFO ] DietPi-Update | Checking for new available live patches
[ INFO ] DietPi-Update | APT update, please wait...
Hit:1 bookworm InRelease
Hit:2 bookworm-updates InRelease
Hit:3 bookworm InRelease
Hit:4 public InRelease
Hit:5 bookworm-security InRelease
Hit:6 buster InRelease
Hit:7 bookworm-backports InRelease
Hit:8 bookworm InRelease
Ign:9 stable InRelease
Hit:10 buster InRelease
Hit:11 stable Release
Reading package lists...
[  OK  ] DietPi-Update | APT update
[ INFO ] DietPi-Update | No APT upgrades were found, not creating file: /run/dietpi/.apt_updates

You can recreate this file:

gpg --enarmor -o /etc/apt/trusted.gpg.d/debian-archive-bookworm-automatic.asc < /usr/share/keyrings/debian-archive-bookworm-automatic.gpg


cd /tmp
apt download debian-archive-keyring
dpkg --force-confmiss -i debian-archive-keyring*.deb
rm debian-archive-keyring*.deb

Thanks, the first command and it worked perfectly, I will try to be more careful when handling these files. I still need to learn some things in Linux. :sweat_smile:

1 Like