On Wed, 18 Dec 2024, Frank Guthausen wrote:
Hello.
I try to setup a repository with a similar structure as Debian's
original, just smaller. In the Debian repository, e.g. bookworm main[1]
there are a lot Contents-*.gz files. My repository is created with
reprepro following the wiki[2]. But I cannot find information about the
missing Contents-* files. What is the intended workflow to create them?
The files of my packages are not included in the database of apt-file,
the mandatory ``apt-file update'' does not help to find files or show
files in my packages.
I guess the problems are related.
What can I do to solve those issues?
[1] https://ftp.debian.org/debian/dists/bookworm/main/
[2] https://wiki.debian.org/DebianRepository/SetupWithReprepro
I use apt-ftp-archive to do this so I can't help you with reprepo but
the first thing I'd check is whether the website looks reasonable.
I'm pretty sure the contents files aren't necessary for a working repo
(and I think apt-ftp-archive at least limits how much delta there is to
these files so they don't necessarily generate straight away)
I'm not sure which point is going wrong so below I've put the steps of
browsing the repo that needs to be available - if this structure all
exists but the Packages file is empty then it's presumably a reprepo problem.
So I have this sources file:
Types: deb
URIs: http://aptmirror.home.woodall.me.uk/local
Suites: bookworm
Components: main
when I browse to that website (not publicly available) I then see two
directories /local/dists/ and /local/pool/
(I've dropped the http://apt...uk from all of the links and just
included the path)
/local/dists/bookworm/InRelease will need to have lines something like:
342869da630a775fe229d4bc2ebe09ff 246670 main/binary-amd64/Packages
82a2348876c6d58709fe6c928f05ba07 56864 main/binary-amd64/Packages.xz
And then those files need to exist here in my case (relative to the
InRelease file):
/local/dists/bookworm/main/binary-amd64/
In the Packages file you will to see the packages listed, here's one
example from mine:
Package: apt-cacher-ng
Architecture: amd64
Version: 3.7.5-1+~tjw12r1
Priority: net
Section: optional
Maintainer: Eduard Bloch <bl...@debian.org>
Installed-Size: 1833
Pre-Depends: dpkg (>= 1.15.6)
Depends: libbz2-1.0, libc-ares2 (>= 1.16.0), libc6 (>= 2.34), libevent-2.1-7 (>= 2.1.8-stable),
libevent-pthreads-2.1-7 (>= 2.1.8-stable), libfuse2 (>= 2.6), libgcc-s1 (>= 3.0), liblzma5 (>=
5.1.1alpha+20120614), libssl3 (>= 3.0.0), libstdc++6 (>= 12), libsystemd0 (>= 210), libwrap0 (>= 7.6-4~), zlib1g
(>= 1:1.2.0), debconf (>= 0.5) | debconf-2.0, adduser, sysvinit-utils (>= 3.05-4~) | lsb-base (>> 3.0-6)
Recommends: ca-certificates
Suggests: doc-base, avahi-daemon
Conflicts: logrotate (<< 3.8.0)
Filename: pool/main/a/apt-cacher-ng/apt-cacher-ng_3.7.5-1+~tjw12r1_amd64.deb
Size: 684648
MD5sum: 1e07511c47939f7deed5f9f1b4a20dfb
SHA1: 187491c9490c4449b17c9d6acd9c3afcd380e340
SHA256: 4748419918c5093623df26158c5c2fab4a7fb64c220c3869b6d64636c04c97cf
SHA512:
5c45eeb0e6f1a4597252e085bfcd481a95732e622b454b3082ebd2abf42723454f425c8fdff73efd7d3ac066969701502fea7c46c16546e8f8c5b8459c22bee4
Homepage: http://www.unix-ag.uni-kl.de/~bloch/acng/
Description: caching proxy server for software repositories
Apt-Cacher NG is a caching proxy for downloading packages from Debian-style
software repositories (or possibly from other types).
.
The main principle is that a central machine hosts the proxy for a local
network, and clients configure their APT setup to download through it.
Apt-Cacher NG keeps a copy of all useful data that passes through it, and when
a similar request is made, the cached copy of the data is delivered without
being re-downloaded.
.
Apt-Cacher NG has been designed from scratch as a replacement for
apt-cacher, but with a focus on maximizing throughput with low system
resource requirements. It can also be used as replacement for apt-proxy and
approx with no need to modify clients' sources.list files.
and then you see that Filename: line in there, that file needs to exist
too which I see when I browse to here:
/local/pool/main/a/apt-cacher-ng/
HTH.
Tim.