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
ln -s /var/spool/apt-mirror/mirror/ftp.uni-stuttgart.de/ubuntu/ /var/www/ubuntu
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
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/).
*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. apt-mirror/ var/clean. sh for this purpose.
Run /var/spool/
Running the Post Mirror script ... apt-mirror/ var/postmirror. sh)
(/var/spool/
Post Mirror script has completed. See above output for any possible errors.
-----------------
double checked that we had something in /var/spool apt-mirror/ mirror/ ftp.uni- stuttgart. de/ubuntu/ dists/jammy
/var/spool/
create symbolic link in apache - /var/wwww apt-mirror/ mirror/ ftp.uni- stuttgart. de/ubuntu/ /var/www/ubuntu apt-mirror/ mirror/ ftp.uni- stuttgart. de/ubuntu/ /
ln -s /var/spool/
cd /var/www
ls
ubuntu_de -> /var/spool/
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 list-mirror: /etc/apt# sudo apt-get update localhost/ ubuntu_ de jammy InRelease [270 kB] localhost/ ubuntu_ de jammy/multiverse amd64 Packages localhost/ ubuntu_ de jammy/multiverse Translation-en localhost/ ubuntu_ de jammy/multiverse amd64 c-n-f Metadata localhost/ ubuntu_ de jammy/multiverse amd64 Packages [217 kB] localhost/ ubuntu_ de jammy/multiverse Translation-en [112 kB] localhost/ ubuntu_ de jammy/multiverse amd64 c-n-f Metadata [8372 B]
root@jammy-
Get:1 http://
Ign:2 http://
Ign:3 http://
Ign:4 http://
Get:2 http://
Get:3 http://
Get:4 http://
We can see our apache-hosted symlink works as expected with packages from our /ftp.uni- stuttgart. de/ubuntu/).
mirror.list pointed to our upstream repo (https:/
[0] https:/ /blog.programst er.org/ set-up- a-local- ubuntu- mirror- with-apt- mirror
Thanks,
Heather Lemon