Answer the question
In order to leave comments, you need to log in
How to properly set up a local apt-mirror repository on Ubuntu 18.04.3?
When I try to install a local repository on an Ubuntu Mate 18.04.3 system, I get errors. I can't figure it out on my own.
The algorithm is as follows:
- 1. I installed apt-mirror and apache2 server using apt
- 2. Downloaded more than 200 GB of package files to the /repo folder (my repository folder)
- 3. Added a symbolic link to /repo in the web server root (for receiving packets via http).
When testing this algorithm, I got errors. First of all, postmirror.sh was not found.
However, there is about 1 GB. files that need to be downloaded (using the sudo apt-mirror command) but nothing happens. The output shows the absence of the postmirror.sh script
In all the possible howtos on this topic that I met, I did not find where this script comes from, and / or why it does not exist in my case.
Below is a brief summary of my configuration, and also, if interested, a few screenshots.
I need advice.
Configuration in mirror.list
--- config ---
set base_path /repo
#set mirror_path $base_path/mirror
#set skel_path $base_path/skel
#set var_path $base_path/var
#set cleanscript $var_path/clean.sh
#set defaultarch
#set postmirror_script $var_path/ postmirror.sh
#set run_postmirror 0
set nthreads 20
set _tilde 0
--- end config ---
deb archive.ubuntu.com/ubuntu/ubuntu bionic main restricted universe multiverse
deb archive.ubuntu.com/ubuntu/ubuntu bionic-security main restricted universe multiverse
deb archive.ubuntu.com/ubuntu/ubuntu bionic-updates main restricted universe multiverse
deb archive.ubuntu.com/ubuntu/ubuntu bionic-proposed main restricted universe multiverse
deb archive.ubuntu.com/ubuntu/ubuntu bionic-backports main restricted universe multiverse
deb-src archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb- src archive.ubuntu.com/ubuntubionic-security main restricted universe multiverse
deb-src archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
clean archive.ubuntu.com/ubuntu
deb 192.168.0.1/repo/mirror/archive.ubuntu.com/ubuntu/... bionic main restricted
deb 192.168.0.1/repo/mirror/archive.ubuntu.com/ubuntu/... bionic-updates main restricted
deb 192.168 .0.1/repo/mirror/archive.ubuntu.com/ubuntu/... bionic-updates multiverse
deb 192.168.0.1/repo/mirror/archive.ubuntu.com/ubuntu/... bionic universe
deb 192.168.0.1/repo /mirror/archive.ubuntu.com/ubuntu/... bionic multiverse
deb 192.168.0.1/repo/mirror/archive.ubuntu.com/ubuntu/... bionic-updates universe
deb 192.168.0.1/repo/mirror/archive .ubuntu.com/ubuntu/...bionic backports main restricted universe multiverse
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question