Score:0

How can I add 'main/dist-upgrader-all' to '/etc/apt/mirror.list' so that my apt-mirror downloads the files for a release upgrade?

be flag

I maintain an apt mirror by using apt-mirror. It works fine for the packages of bionic and focal. Now, I want to add the files, that are needed to be able to perform release upgrades using this mirror. In /etc/apt/mirror.list I added main/dist-upgrader-all to all update sources that contain these folders.

My /etc/apt/mirror.list currently looks like this:

############# config ##################
#
set base_path    /mnt/usb/ubuntu_mirror
#
# 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  <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads     20
set _tilde 0
#
############# end config ##############

deb-amd64 http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse main/dist-upgrader-all
deb-amd64 http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse main/dist-upgrader-all
deb-amd64 http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse

deb-amd64 http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse main/dist-upgrader-all
deb-amd64 http://archive.ubuntu.com/ubuntu focal-security main restricted universe multiverse
deb-amd64 http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse main/dist-upgrader-all
deb-amd64 http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse

clean http://archive.ubuntu.com/ubuntu

After the addition of main/dist-upgrader-all, the execution of apt-mirror throws the following errors, when processing indexes:

Downloading 352 index files using 20 threads...
Begin time: Wed Aug  2 12:15:38 2021
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... 
End time: Wed Aug  2 12:16:01 2021

Processing translation indexes: [TTTTTTTT]

Downloading 1137 translation files using 20 threads...
Begin time: Wed Aug  2 12:16:03 2021
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... 
End time: Wed Aug  2 12:16:26 2021

Processing DEP-11 indexes: [DDDDDDDD]

Downloading 160 dep11 files using 20 threads...
Begin time: Wed Aug  2 12:16:29 2021
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... 
End time: Wed Aug  2 12:16:35 2021

Processing indexes: [Papt-mirror: can't open index archive.ubuntu.com/ubuntu//dists/bionic/main/dist-upgrader-all/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 800.
PPapt-mirror: can't open index archive.ubuntu.com/ubuntu//dists/bionic-updates/main/dist-upgrader-all/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 800.
PPapt-mirror: can't open index archive.ubuntu.com/ubuntu//dists/focal/main/dist-upgrader-all/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 800.
PPapt-mirror: can't open index archive.ubuntu.com/ubuntu//dists/focal-updates/main/dist-upgrader-all/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 800.
P]

So, what am I doing wrong? How can I successfully add the files from main/dist-upgrader-all to my mirror, so that clients using this mirror can perform release upgrades?

Tim R avatar
kn flag
Did you find a solution to this? I am in the same boat. I keep finding docs about using deb-mirror to do this, but nothing for doing it with apt-mirror. The one thing I did so far was add the meta files needed as well adding this bionic-proposed to my local mirror.
stackprotector avatar
be flag
@TimR No, as a workaround, additionally to `apt-mirror`, I execute a script with several `wget` commands that download the necessary files.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.