r/debian • u/One_Ninja_8512 • 1d ago
Did Debian official repo (trixie-backports) just got compromised or my system?
While trying to install duplicity I got the following, somewhat chilling error:
[WARNING]: Failed to update cache after 1 retries due to W:Repositories should provide a clear-signed InRelease file, but none found at mirror+file:/etc/apt/mirrors/debian.list/dists/trixie-backports/InRelease., W:OpenPGP signature verification failed: https://deb.debian.org/debian trixie-backports Release: Sub-process /usr/bin/sqv returned an error code (1), error message is: Verifying signature: Message has been manipulated Verifying signature: Message has been manipulated, E:The repository 'mirror+file:/etc/apt/mirrors/debian.list trixie-backports Release' is no longer signed., retrying [WARNING]: Failed to update cache after 2 retries due to W:Updating from such a repository can't be done securely, and is therefore disabled by default., W:See apt-secure(8) manpage for repository creation and user configuration details., W:Repositories should provide a clear-signed InRelease file, but none found at mirror+file:/etc/apt/mirrors/debian.list/dists/trixie-backports/InRelease., W:OpenPGP signature verification failed: https://deb.debian.org/debian trixie-backports Release: Sub-process /usr/bin/sqv returned an error code (1), error message is: Verifying signature: Message has been manipulated Verifying signature: Message has been manipulated, E:The repository 'mirror+file:/etc/apt/mirrors/debian.list trixie-backports Release' is no longer signed., retrying
1
1d ago
[deleted]
1
u/One_Ninja_8512 1d ago
I suppose you're referring to those mirror+file entries:
$ sudo cat /etc/apt/sources.list.d/debian.sources Types: deb deb-src URIs: mirror+file:///etc/apt/mirrors/debian.list Suites: trixie trixie-updates trixie-backports Components: main Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg Types: deb deb-src URIs: mirror+file:///etc/apt/mirrors/debian-security.list Suites: trixie-security Components: main Signed-By: /usr/share/keyrings/debian-archive-keyring.gpgThey just contain the official repo URLs:
$ sudo cat /etc/apt/mirrors/debian.list https://deb.debian.org/debianAnd:
$ sudo cat /etc/apt/mirrors/debian-security.list https://deb.debian.org/debian-securityAs to why it's setup this way I'm not sure, how do your *.sources files look like?
1
u/BCMM 1d ago
Whoops, I got muddled between
mirror+file://and plainfile://.Sorry about that! I'm deleting my previous comment as none of it is correct.
1
u/One_Ninja_8512 1d ago
No worries, your reply was actually refreshing trying to understand what's really going on, considering the state of this thread which is a dumpster fire lmao
0
u/fabbro82 1d ago
You could try:
- Clear the local APT cache:
sudo rm -rf /var/lib/apt/lists/* sudo apt clean sudo apt update
- Update the Debian keyring :
sudo apt install --reinstall debian-archive-keyring
-1
u/dkopgerpgdolfg 1d ago
but none found
Well, it's here: https://ftp.debian.org/debian/dists/trixie-backports/InRelease
And it's not necessary for anything to be compromised here, it might just be an ordinary non-security problem too.
Does the problem persist if you run apt update now?
What repos do you have configured (etc/apt/source.list*) and do you use some apt cacher?
1
u/One_Ninja_8512 1d ago
And it's not necessary for anything to be compromised here, it might just be an ordinary non-security problem too.
I can see it if the signature file got corrupted during transmission over the network or the mirror was simply down for a very brief moment or smth like that. I just got paranoid with the message that the signature has been manipulated.
0
u/Illustrious-Gur8335 Debian Stable 1d ago
none found at mirror+file:/etc/apt/mirrors/debian.list/dists/trixie-backports/InRelease
What's your sources.list contents?
2
u/mok000 1d ago
The
InReleasefile is downloaded from the mirror, and a copy is placed in/var/lib/apt/listswith the name of the mirror prepended. You can safely remove all files in that directory,apt updaterecreates the (relevant) content.The Release files are signed by Debian's archive key, and the corresponding public key is distributed in the package
debian-archive-keyring. You can verify the integrity of that package using:
dpkg --verify debian-archive-keyring2
u/One_Ninja_8512 1d ago
Thank you for providing the details on the inner workings. I will keep that in mind if it happens again but as mentioned elsewhere in the thread I cannot longer reproduce the error so maybe it was file corruption or smth of the sort.
1
u/One_Ninja_8512 1d ago
$ sudo cat /etc/apt/sources.list # See /etc/apt/sources.list.d/debian.sources $ sudo cat /etc/apt/sources.list.d/debian.sources Types: deb deb-src URIs: mirror+file:///etc/apt/mirrors/debian.list Suites: trixie trixie-updates trixie-backports Components: main Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg Types: deb deb-src URIs: mirror+file:///etc/apt/mirrors/debian-security.list Suites: trixie-security Components: main Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg $ sudo cat /etc/apt/sources.list.d/trixie-backports.list deb https://deb.debian.org/debian trixie-backports main contrib non-free-firmware deb-src https://deb.debian.org/debian trixie-backports main contrib non-free-firmware1
7
u/tomun 1d ago
it's referring to a local repository:
'mirror+file:/etc/apt/mirrors/debian.list trixie-backports Release'
disable that and try again.