Hello,
Keep us informed, good luck!
As I said before, until everything is in order, you need to work on rolling back changes and testing at every step. This is beyond the topic, but I'm not sure you've adopted the right strategy with sudo. If you want developers to be able to use apt, simply grant them the right to use apt in the sudo configuration. I haven't tested whether the changes you made to /var/lib/apt/lists/ might be a problem, but it's easy to check on a test system. I assume /etc/apt/ is OK, but I would have preferred if you posted the command result, it's hard enough to diagnose remotely, without minimal output I'm blind.I have some difference between the /var/lib/apt/lists of the problematic server and a fresh one.
Yes, the binary keys are in /usr/share/keyrings/, the "ASCII-armored" keys (asc) are in /etc/apt/trusted.gpg.d/, they all come from the debian-archive-keyring package. This reminds me of a quirk that may well apply here. Read this topic [Solved] apt GPG NO_PUBKEY -- complicated issue and test the procedure, who knows.The output of LANG="C" apt -o "Debug::Acquire::gpgv=1" -o "Dir::Etc::TrustedParts=/usr/share/keyrings/" -o "Dir::Etc::Trusted=/dev/null" update :
[...]
It seems to work. Do you specify a trusted key directory in order to make the apt update working into this command ?
I also try to install sendmail with apt, it work !
I'm not really surprised that it works as root, the test was supposed to be run as a user. When you see #> it means root, $> means user, people usually just use # and $. However, this would only have been useful if the previous test had failed, so it doesn't matter.The output of for SIGN in "${SIGNED[@]}"; do echo -e "\n>>> $SIGN $EUID"; LANG="C" gpgv -v "${KEYS[@]}" "$SIGN"; echo "$?"; done :Code:
root@deb12fnccrecodeau:~# for SIGN in "${SIGNED[@]}"; do echo -e "\n>>> $SIGN $EUID"; LANG="C" gpgv -v "${KEYS[@]}" "$SIGN"; echo "$?"; done>>> /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_InRelease 0
Keep us informed, good luck!
Statistics: Posted by fabien — 2024-02-15 22:31 — Replies 35 — Views 1295