Comment 51 for bug 1825755

Revision history for this message
Heather Lemon (hypothetical-lemon) wrote :

### 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 ###