*In a Jammy lxc container I setup an apache server with these instructions [0]
edited /etc/apt/mirror.list deb https://ftp.uni-stuttgart.de/ubuntu/ jammy multiverse pulled latest with apt-mirror ------------------ apt-mirror Downloading 14 index files using 14 threads... Begin time: Wed Mar 27 13:21:19 2024 [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... End time: Wed Mar 27 13:21:26 2024 Processing translation indexes: [T] Downloading 105 translation files using 20 threads... Begin time: Wed Mar 27 13:21:26 2024 [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... End time: Wed Mar 27 13:21:30 2024 Processing DEP-11 indexes: [D] Downloading 8 dep11 files using 8 threads... Begin time: Wed Mar 27 13:21:30 2024 [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... End time: Wed Mar 27 13:21:31 2024 Processing cnf indexes: [C] Downloading 2 cnf files using 2 threads... Begin time: Wed Mar 27 13:21:32 2024 [2]... [1]... [0]... End time: Wed Mar 27 13:21:32 2024 Processing indexes: [P] 5.4 GiB will be downloaded into archive. Downloading 589 archive files using 20 threads... Begin time: Wed Mar 27 13:21:32 2024 [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... End time: Wed Mar 27 13:27:25 2024 6.7 GiB in 1000 files and 562 directories can be freed. Run /var/spool/apt-mirror/var/clean.sh for this purpose. Running the Post Mirror script ... (/var/spool/apt-mirror/var/postmirror.sh) Post Mirror script has completed. See above output for any possible errors. ----------------- double checked that we had something in /var/spool /var/spool/apt-mirror/mirror/ftp.uni-stuttgart.de/ubuntu/dists/jammy create symbolic link in apache - /var/wwww cd /var/www ls ubuntu_de -> /var/spool/apt-mirror/mirror/ftp.uni-stuttgart.de/ubuntu// edited /etc/apt/sources.list to get our apache hosted files * only use this line in our sources.list, for readability deb http://localhost/ubuntu_de/ jammy multiverse # run apt-get update root@jammy-list-mirror:/etc/apt# sudo apt-get update Get:1 http://localhost/ubuntu_de jammy InRelease [270 kB] Ign:2 http://localhost/ubuntu_de jammy/multiverse amd64 Packages Ign:3 http://localhost/ubuntu_de jammy/multiverse Translation-en Ign:4 http://localhost/ubuntu_de jammy/multiverse amd64 c-n-f Metadata Get:2 http://localhost/ubuntu_de jammy/multiverse amd64 Packages [217 kB] Get:3 http://localhost/ubuntu_de jammy/multiverse Translation-en [112 kB] Get:4 http://localhost/ubuntu_de jammy/multiverse amd64 c-n-f Metadata [8372 B] We can see our apache-hosted symlink works as expected with packages from our mirror.list pointed to our upstream repo (https://ftp.uni-stuttgart.de/ubuntu/). [0] https://blog.programster.org/set-up-a-local-ubuntu-mirror-with-apt- mirror Thanks, Heather Lemon -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1825755 Title: apt-mirror in all versions (including disco and last from github) doesn't mirror Commands-* files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-mirror/+bug/1825755/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs