### VERIFICATION-DONE FOCAL ###
Install a lxc focal container or virt-manager focal vm previous apt-mirror version: 0.5.4-1 sudo apt-get install apt-mirror
sudo vim /etc/apt/mirror.list comment out all lines and add in deb http://archive.ubuntu.com/ubuntu focal multiverse
apt-mirror ------------ Downloading 14 index files using 14 threads... Begin time: Fri Mar 29 10:00:59 2024 [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... End time: Fri Mar 29 10:01:02 2024
Processing translation indexes: [T]
Downloading 105 translation files using 20 threads... Begin time: Fri Mar 29 10:01:02 2024 [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... End time: Fri Mar 29 10:01:04 2024
Processing DEP-11 indexes: [D]
Downloading 8 dep11 files using 8 threads... Begin time: Fri Mar 29 10:01:04 2024 [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... End time: Fri Mar 29 10:01:05 2024
Processing cnf indexes: [C]
Downloading 2 cnf files using 2 threads... Begin time: Fri Mar 29 10:01:05 2024 [2]... [1]... [0]... End time: Fri Mar 29 10:01:05 2024
Processing indexes: [P]
5.3 GiB will be downloaded into archive. Downloading 813 archive files using 20 threads... Begin time: Fri Mar 29 10:01:05 2024 [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... End time: Fri Mar 29 10:06:29 2024
0 bytes in 0 files and 0 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.
--------
# setup apache
cd sites-enabled/ vim 000-default.conf
sudo echo '<VirtualHost *:80> ServerAdmin <email address hidden> DocumentRoot /var/www <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>' | sudo tee /etc/apache2/sites-enabled/000-default.conf
-----------
enabled proposed pocket apt-cache policy apt-mirror Installed: 0.5.4-1ubuntu1.20.04.1
# edit /etc/apt/mirror.list * only include this line deb https://ftp.uni-stuttgart.de/ubuntu/ focal multiverse
# run apt-mirror ./apt-mirror
*this pulls packages from https://ftp.uni-stuttgart.de/ and puts them in /var/spool/apt-mirror # double check /var/spool/ /var/spool/apt-mirror/mirror/
ln -s /var/spool/apt-mirror/mirror/ftp.uni-stuttgart.de/ubuntu/ /var/www/ubuntu_de ll # valid link ubuntu_de -> /var/spool/apt-mirror/mirror/ftp.uni-stuttgart.de/ubuntu//
# edit sources.list deb http://localhost/ubuntu_de/ focal multiverse
# run apt-get update root@focal:/etc/apt# apt-get update Get:1 http://localhost/ubuntu_de focal InRelease [265 kB] Ign:2 http://localhost/ubuntu_de focal/multiverse amd64 Packages Ign:3 http://localhost/ubuntu_de focal/multiverse i386 Packages Ign:4 http://localhost/ubuntu_de focal/multiverse Translation-en Ign:5 http://localhost/ubuntu_de focal/multiverse amd64 DEP-11 Metadata Ign:6 http://localhost/ubuntu_de focal/multiverse amd64 c-n-f Metadata Get:2 http://localhost/ubuntu_de focal/multiverse amd64 Packages [144 kB] Ign:3 http://localhost/ubuntu_de focal/multiverse i386 Packages Get:4 http://localhost/ubuntu_de focal/multiverse Translation-en [104 kB] Get:5 http://localhost/ubuntu_de focal/multiverse amd64 DEP-11 Metadata [48.4 kB] Get:6 http://localhost/ubuntu_de focal/multiverse amd64 c-n-f Metadata [9,136 B] Ign:3 http://localhost/ubuntu_de focal/multiverse i386 Packages Ign:3 http://localhost/ubuntu_de focal/multiverse i386 Packages Ign:3 http://localhost/ubuntu_de focal/multiverse i386 Packages Err:3 http://localhost/ubuntu_de focal/multiverse i386 Packages 404 Not Found [IP: 127.0.0.1 80] Fetched 571 kB in 0s (3,924 kB/s) Reading package lists... Done E: Failed to fetch http://localhost/ubuntu_de/dists/focal/multiverse/binary-i386/Packages 404 Not Found [IP: 127.0.0.1 80] E: Some index files failed to download. They have been ignored, or old ones used instead.
Files successfully updated from remote repo that's not the default Ubuntu archives (http://us.archive.ubuntu.com/ubuntu/).
Thanks, Heather Lemon
### VERIFICATION-DONE FOCAL ###
Install a lxc focal container or virt-manager focal vm
previous apt-mirror version: 0.5.4-1
sudo apt-get install apt-mirror
sudo vim /etc/apt/ mirror. list archive. ubuntu. com/ubuntu focal multiverse
comment out all lines and add in
deb http://
apt-mirror
------------
Downloading 14 index files using 14 threads...
Begin time: Fri Mar 29 10:00:59 2024
[14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Fri Mar 29 10:01:02 2024
Processing translation indexes: [T]
Downloading 105 translation files using 20 threads...
Begin time: Fri Mar 29 10:01:02 2024
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Fri Mar 29 10:01:04 2024
Processing DEP-11 indexes: [D]
Downloading 8 dep11 files using 8 threads...
Begin time: Fri Mar 29 10:01:04 2024
[8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Fri Mar 29 10:01:05 2024
Processing cnf indexes: [C]
Downloading 2 cnf files using 2 threads...
Begin time: Fri Mar 29 10:01:05 2024
[2]... [1]... [0]...
End time: Fri Mar 29 10:01:05 2024
Processing indexes: [P]
5.3 GiB will be downloaded into archive.
Downloading 813 archive files using 20 threads...
Begin time: Fri Mar 29 10:01:05 2024
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Fri Mar 29 10:06:29 2024
0 bytes in 0 files and 0 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.
--------
# setup apache
cd sites-enabled/
vim 000-default.conf
sudo echo '<VirtualHost *:80>
AllowOverride All LOG_DIR} /error. log LOG_DIR} /access. log combined sites-enabled/ 000-default. conf
ServerAdmin <email address hidden>
DocumentRoot /var/www
<Directory /var/www/>
Options Indexes FollowSymLinks
Require all granted
</Directory>
ErrorLog ${APACHE_
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_
</VirtualHost>' | sudo tee /etc/apache2/
-----------
enabled proposed pocket 20.04.1
apt-cache policy apt-mirror
Installed: 0.5.4-1ubuntu1.
# edit /etc/apt/ mirror. list /ftp.uni- stuttgart. de/ubuntu/ focal multiverse
* only include this line
deb https:/
# run apt-mirror
./apt-mirror
*this pulls packages from https:/ /ftp.uni- stuttgart. de/ apt-mirror apt-mirror/ mirror/
and puts them in /var/spool/
# double check /var/spool/
/var/spool/
ln -s /var/spool/ apt-mirror/ mirror/ ftp.uni- stuttgart. de/ubuntu/ /var/www/ubuntu_de apt-mirror/ mirror/ ftp.uni- stuttgart. de/ubuntu/ /
ll
# valid link
ubuntu_de -> /var/spool/
# edit sources.list localhost/ ubuntu_ de/ focal multiverse
deb http://
# run apt-get update /etc/apt# apt-get update localhost/ ubuntu_ de focal InRelease [265 kB] localhost/ ubuntu_ de focal/multiverse amd64 Packages localhost/ ubuntu_ de focal/multiverse i386 Packages localhost/ ubuntu_ de focal/multiverse Translation-en localhost/ ubuntu_ de focal/multiverse amd64 DEP-11 Metadata localhost/ ubuntu_ de focal/multiverse amd64 c-n-f Metadata localhost/ ubuntu_ de focal/multiverse amd64 Packages [144 kB] localhost/ ubuntu_ de focal/multiverse i386 Packages localhost/ ubuntu_ de focal/multiverse Translation-en [104 kB] localhost/ ubuntu_ de focal/multiverse amd64 DEP-11 Metadata [48.4 kB] localhost/ ubuntu_ de focal/multiverse amd64 c-n-f Metadata [9,136 B] localhost/ ubuntu_ de focal/multiverse i386 Packages localhost/ ubuntu_ de focal/multiverse i386 Packages localhost/ ubuntu_ de focal/multiverse i386 Packages localhost/ ubuntu_ de focal/multiverse i386 Packages localhost/ ubuntu_ de/dists/ focal/multivers e/binary- i386/Packages 404 Not Found [IP: 127.0.0.1 80]
root@focal:
Get:1 http://
Ign:2 http://
Ign:3 http://
Ign:4 http://
Ign:5 http://
Ign:6 http://
Get:2 http://
Ign:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Ign:3 http://
Ign:3 http://
Ign:3 http://
Err:3 http://
404 Not Found [IP: 127.0.0.1 80]
Fetched 571 kB in 0s (3,924 kB/s)
Reading package lists... Done
E: Failed to fetch http://
E: Some index files failed to download. They have been ignored, or old ones used instead.
Files successfully updated from remote repo that's not the default us.archive. ubuntu. com/ubuntu/).
Ubuntu archives (http://
Thanks,
Heather Lemon
### VERIFICATION-DONE FOCAL ###