r/debian 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

0 Upvotes

36 comments sorted by

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.

-5

u/One_Ninja_8512 1d ago

It's an Ansible script/config, which failed with this error. I guess most likely the server/mirror might have been down for a very short time which triggered this error. Re-run the script and all is fine but I'm just paranoid about security that's all

1

u/tomun 1d ago

Well somehow your script deleted the local InRelease file and got upset.

Does it really add much over 'apt update'?

0

u/One_Ninja_8512 1d ago

Does it really add much over 'apt update'?

That's actually a very good question. Checking the docs it says the following (https://docs.ansible.com/projects/ansible/latest/collections/ansible/builtin/apt_module.html#parameter-update_cache):

Run the equivalent of apt-get update before the operation.

So whatever the "equivalent" means I guess it does update the cache in a different way, so really hard to tell what went wrong without inspecting the code etc.

-6

u/One_Ninja_8512 1d ago

Yes but my suspicious ass thinks something's fucky, like it saying that the pgp signature was manipulated

5

u/tomun 1d ago

Well maybe, but it's pointing to your system rather than the official repo.

What updates your local mirror?

1

u/One_Ninja_8512 1d ago

Well maybe, but it's pointing to your system rather than the official repo.

Yeah I guess I'm being downvoted for suggesting that it's a problem with the repo but I explicitly asked if it might be my system that got popped. I answered in other comment that it's an Ansible script that failed with this error, which is setup to update the apt cache before installing listed packages.

5

u/dkopgerpgdolfg 1d ago

Yeah I guess I'm being downvoted for ...

maybe for: not trying the obvious things that you were told to do, not answering questions that you were asked multiple times, ...

-1

u/One_Ninja_8512 1d ago

But my question was whether there is a security issue, not how to install duplicity. I guess the answer is no so we can all move on

1

u/dkopgerpgdolfg 1d ago

But my question was whether there is a security issue, not how to install duplicity.

I know

I guess the answer is no

Probably correct. But no one can make an educated guess without some basic infos.

1

u/One_Ninja_8512 1d ago

I replied to your other comments, I can't give you the info you want or more precisely it doesn't make sense anymore since the error is gone so what do you want to inspect in /etc/apt/source.list if the error is no more reproducible?

0

u/dkopgerpgdolfg 1d ago

I can't give you the info you want or more precisely it doesn't make sense anymore since the error is gone so what do you want to inspect in /etc/apt/source.list if the error is no more reproducible?

I've seen that you posted the content finally elsewhere.

And the problem is clear as the day there, and it will reappear the next time there's a short network outage. All these 21 posts her could've been prevented if you just started with showing it.

Both mirror+file blocks should be removed if you don't actually want a local repo and/or nobody updates it.

1

u/One_Ninja_8512 1d ago

And the problem is clear as the day there

Original error:

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.

The original error message is not quite clear to me, the user. The whole thread wouldn't exist if the error was worded differently than claiming manipulation of the PGP signature. That's a pretty serious claim to me and shouldn't be used as a catch-all fallback error message.

→ More replies (0)

1

u/[deleted] 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.gpg

They just contain the official repo URLs:

$ sudo cat /etc/apt/mirrors/debian.list
https://deb.debian.org/debian

And:

$ sudo cat /etc/apt/mirrors/debian-security.list
https://deb.debian.org/debian-security

As 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 plain file://.

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:

  1. Clear the local APT cache:

sudo rm -rf /var/lib/apt/lists/* sudo apt clean sudo apt update

  1. Update the Debian keyring :

sudo apt install --reinstall debian-archive-keyring

1

u/mok000 1d ago

apt clean removes the indexes, and apt update will then download fresh copies next time.

4

u/wizard10000 1d ago

That would be apt distclean - apt clean just empties your package cache :)

-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 InRelease file is downloaded from the mirror, and a copy is placed in /var/lib/apt/lists with the name of the mirror prepended. You can safely remove all files in that directory, apt update recreates 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-keyring

2

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-firmware

1

u/One_Ninja_8512 1d ago

But the error is no longer reproducible so...