Solved Apt Mirror

Solved issue
It looks like there is a missing file, whatever is in that tar/gz is not there.
apt mirror which ever used needs to be somehow configured to create those files, unless that job belongs to mirror administrator.
debian's apt expects these files, if you look at official debian's mirrors you'll see those files there are present.
 


Looking again more closely I see these things that I did not see yesterday.:)

1. That this line in the sources list should not be there. Removing it will prove helpful:-
Code:
/etc/apt/sources.list.d/official-package-repositories.list

2. This line in the Mirror's List in post #15 does not look correct to me. I think something is amiss.
Code:
deb [arch=amd64] http://127.0.0.1/debian/ bookworm main
* When I removed the brackets in my browser the result was a google search.*
See the screenshot named "without"

3. When I tried opening a fresh tab in my browser and attempted going to:
Code:
http://127.0.0.1/debian/dists/bookworm/main/Contents-all
It returned Unable To Connect. See screenshot-

4. This address:
Code:
127.0.0.1/debian/dists/bookworm/main/
as CaffeineAddict said: 'should exist' but in OP case it does not. And, for me it returns the same result...."Unable To Connect" duplicate of the screenshot.

Whatever is in the tar.gz that has the ability to lead to the packages that OP needs: is missing:-
 

Attachments

  • Without.png_001.png
    Without.png_001.png
    315.9 KB · Views: 175
  • Unable.png
    Unable.png
    228.3 KB · Views: 167
apt mirror which ever used needs to be somehow configured to create those files, unless that job belongs to mirror administrator.
debian's apt expects these files, if you look at official debian's mirrors you'll see those files there are present.
How would we know if the job belongs to the mirror administrator?
I'm thinking there may be another way to download the tar.gz needed:-:)

I don't have server experience however, @KGIII does.
He would know what arguments/strings should be included in the configuration file for the mirror's list.

Our members @osprey, @f33dm3bits, and @wizardfromoz are well versed in running a Linux server.

I sincerely hope we can assist tinfoil-hat sooner than later.
 
Looking again more closely I see these things that I did not see yesterday.:)

1. That this line in the sources list should not be there. Removing it will prove helpful:-
Code:
/etc/apt/sources.list.d/official-package-repositories.list

2. This line in the Mirror's List in post #15 does not look correct to me. I think something is amiss.
Code:
deb [arch=amd64] http://127.0.0.1/debian/ bookworm main
* When I removed the brackets in my browser the result was a google search.*
See the screenshot named "without"

3. When I tried opening a fresh tab in my browser and attempted going to:
Code:
http://127.0.0.1/debian/dists/bookworm/main/Contents-all
It returned Unable To Connect. See screenshot-

4. This address:
Code:
127.0.0.1/debian/dists/bookworm/main/
as CaffeineAddict said: 'should exist' but in OP case it does not. And, for me it returns the same result...."Unable To Connect" duplicate of the screenshot.

Whatever is in the tar.gz that has the ability to lead to the packages that OP needs: is missing:-
Nearly correct. but point 2 is wrong. I put the official Debian Mirror in mirror.list as it should be. And the archives are just some megabytes, so no way, that all the packages fit in there
 
Nearly correct. but point 2 is wrong. I put the official Debian Mirror in mirror.list as it should be. And the archives are just some megabytes, so no way, that all the packages fit in there
Thanks for showing me that I was wrong. Correction these days isn't received so quickly.

The official Debian url to the mirror for your operating systems regular updates and upgrades are listed in your mirrors list, that's clear by looking at it. I didn't know that the PATH to the sources list/repositories.list needed to be included.

Thanks, tinfoil-hat-:)

Is the Swiss army knife for Debian repository working for you?
 
BTW, you have a extra pound sign in this line of your mirrors list.

Code:
deb https://deb.debian.org/debian bookworm main contrib non-free # non-free-firmware

Not sure if you wanted that there?
 
BTW, you have a extra pound sign in this line of your mirrors list.

Code:
deb https://deb.debian.org/debian bookworm main contrib non-free # non-free-firmware

Not sure if you wanted that there?
I did that this time on purpose, because I didn't find this in my folder structure
 
Thanks for showing me that I was wrong. Correction these days isn't received so quickly.

The official Debian url to the mirror for your operating systems regular updates and upgrades are listed in your mirrors list, that's clear by looking at it. I didn't know that the PATH to the sources list/repositories.list needed to be included.

Thanks, tinfoil-hat-:)

Is the Swiss army knife for Debian repository working for you?
Aptly works for me, but only if I create an gpg key and import that key on my client machine. Would you like a Howto?
 
Aptly works for me, but only if I create an gpg key and import that key on my client machine. Would you like a Howto?
Yes, when you can. Thanks!
 
Hello!

You just hit another apt-mirror bug [1] which was fixed in the master branch already, but missing from Debian packages.
You can use apt-mirror from master branch [2] to fix this issue.

However apt-mirror have many other bugs which were not fixed (and looks like will not be). It's possible to use apt-mirror2 [3] (I'm the author of it) to produce sync error-free mirror.

[1] https://github.com/apt-mirror/apt-mirror/commit/7366c2ecdaf693bc4782bd419889948c1e04cebb
[2] https://github.com/apt-mirror/apt-mirror/blob/master/apt-mirror
[3] https://gitlab.com/apt-mirror2/apt-mirror2
 
Hello!

You just hit another apt-mirror bug [1] which was fixed in the master branch already, but missing from Debian packages.
You can use apt-mirror from master branch [2] to fix this issue.

However apt-mirror have many other bugs which were not fixed (and looks like will not be). It's possible to use apt-mirror2 [3] (I'm the author of it) to produce sync error-free mirror.

[1] https://github.com/apt-mirror/apt-mirror/commit/7366c2ecdaf693bc4782bd419889948c1e04cebb
[2] https://github.com/apt-mirror/apt-mirror/blob/master/apt-mirror
[3] https://gitlab.com/apt-mirror2/apt-mirror2
Thanks Mate!
 
I ran into the same issue and was able to work around it by purging apt-file, which I assume is not needed to run a mirror.

apt-file installs /etc/apt/apt.conf.d/50apt-file.conf that causes apt-update to make the "all Contents" request which the mirror can't handle. I didn't spend any time figuring out which part of the file causes the problem.
 

Members online


Top