MX main repo + apt-cacher-ng, wierd/wrong server response  [Solved]

Message
Author
User avatar
debianuser
Posts: 3
Joined: Thu Dec 19, 2024 4:03 pm

MX main repo + apt-cacher-ng, wierd/wrong server response

#1 Post by debianuser »

Hi, my problem might be related to /viewtopic.php?p=802079#p802079.

I run Debian 12 and thankfully use the mxrepo to get some packages on the system, not present in the Debian Repos.

sources.list-exerpt:

Code: Select all

deb [signed-by=…MX23-archive-keyring.gpg] http://mxrepo.com/mx/repo/ bookworm main
For package caching (lot's of VMs…) I use apt-cacher-ng.

Since about today afternoon (Europe) I also get the "Clearsigned file isn't valid" error message.

Code: Select all

#LC_ALL=C apt update
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://ftp.de.debian.org/debian bookworm InRelease
Hit:3 http://ftp.de.debian.org/debian bookworm-updates InRelease
Hit:4 http://ftp.de.debian.org/debian bookworm-backports InRelease
Get:5 http://mxrepo.com/mx/repo bookworm InRelease
Err:5 http://mxrepo.com/mx/repo bookworm InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Reading package lists... Done
E: Failed to fetch http://mxrepo.com/mx/repo/dists/bookworm/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://mxrepo.com/mx/repo bookworm InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I tried to hunt the problem down. How far I got:

When I request /mx/repo/dists/bookworm/InRelease via web-browser, wget oder curl, I get a 301 to https and after redirect the requested file.
When the file is requestet by the apt-cacher-ng-Proxy the server responses with some weird html content, looking a bit like a domain parking website.

I think this might be due to apt-cacher-ng sending the "host"-http-header as 2nd and not as the first header. (First header is the UA)

Afaict this order is unusual, but not forbidden. (Latest http-rfc has a SHOULD but no MUST requirement for using Host as first Request-Header https://www.rfc-editor.org/rfc/rfc9110#section-7.2-4 )

I attach 2 wireshark TCP-Stream-ASCII-Dumps. One captured from an original "Apt-Cacher-NG"-Request (I replaced some content with "…redacted…", because of possible identifiers and less bloat).
The other when I tried to mimic the behavior with wget/curl, as far as I got. - they don't let me send an UA as first header

Any ideas how solve the issue?
You do not have the required permissions to view the files attached to this post.

User avatar
dolphin_oracle
Developer
Posts: 22370
Joined: Sun Dec 16, 2007 12:17 pm

Re: MX main repo + apt-cacher-ng, wierd/wrong server response

#2 Post by dolphin_oracle »

I don't know much about networking and such, but that MX repo went https sometime ago. it was doing an autoforward, maybe a factor?

that server did go down yesterday due to a ip address issue with the host, but its back up and running now.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
debianuser
Posts: 3
Joined: Thu Dec 19, 2024 4:03 pm

Re: MX main repo + apt-cacher-ng, wierd/wrong server response  [Solved]

#3 Post by debianuser »

Naah, I think I found the problem: Looks like a DNS resolution problem.
The proxy seems to still have the old IP: It requests from 70.40.214.183. It should be 67.20.115.172
:bagoverhead:
(I now was able to replicate it with netcat… - with the old IP: Spam, with mxrepo.com: Release file)

User avatar
debianuser
Posts: 3
Joined: Thu Dec 19, 2024 4:03 pm

Re: MX main repo + apt-cacher-ng, wierd/wrong server response

#4 Post by debianuser »

Code: Select all

systemctl restart apt-cacher-ng
did it:

Code: Select all

Holen:5 http://mxrepo.com/mx/repo bookworm InRelease [25,3 kB]

Post Reply

Return to “MX Repositories”