O problema não estava relacionado com o apt-mirror, mas com o próprio repositório. Eu mudei o repositório e funcionou bem.
Eu gostaria de criar um repositório local para o Ubuntu 18.04 e 16.04. Estou interessado em baixar apenas pacotes de 64 bits. Estou usando o "apt-mirror" para baixar os pacotes para o disco rígido.
Eu uso o seguinte no meu "mirror.lst"
deb [arch=amd64] http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu xenial-proposed main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic-proposed main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
Eu recebi o seguinte erro ao usar "sudo apt-mirror"
Downloading 380 index files using 40 threads...
Begin time: Tue May 22 12:09:11 2018
[40]... [39]... [38]... [37]... [36]... [35]... [34]... [33]... [32]... [31]... [30]... [29]... [28]... [27]... [26]... [25]... [24]... [23]... [22]... [21]... [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Tue May 22 12:09:26 2018
Processing translation indexes: [TTTTTTTTTT]
Downloading 453 translation files using 40 threads...
Begin time: Tue May 22 12:09:26 2018
[40]... [39]... [38]... [37]... [36]... [35]... [34]... [33]... [32]... [31]... [30]... [29]... [28]... [27]... [26]... [25]... [24]... [23]... [22]... [21]... [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Tue May 22 12:10:03 2018
Processing DEP-11 indexes: [DDDDDDDDDD]
Downloading 144 dep11 files using 40 threads...
Begin time: Tue May 22 12:10:03 2018
[40]... [39]... [38]... [37]... [36]... [35]... [34]... [33]... [32]... [31]... [30]... [29]... [28]... [27]... [26]... [25]... [24]... [23]... [22]... [21]... [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Tue May 22 12:13:42 2018
Processing indexes: [P
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
PPPPP
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
PPPP
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
]
26.9 GiB will be downloaded into archive.
Downloading 5640 archive files using 40 threads...
Begin time: Tue May 22 12:13:43 2018
[40]... [39]... [38]... [37]... [36]... [35]... [34]... [33]... [32]... [31]... [30]... [29]... [28]... [27]... [26]... [25]... [24]... [23]... [22]... [21]... [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]...
[0]...
End time: Tue May 22 12:58:01 2018
Eu tentei várias vezes repetidamente e recebi o mesmo erro todas as vezes.
O download também é muito lento (apesar da minha conexão rápida com a Internet). Existe alguma opção para baixar os pacotes simultaneamente a partir de múltiplos espelhos? Também por favor me avise qualquer solução para superar o erro!
O problema não estava relacionado com o apt-mirror, mas com o próprio repositório. Eu mudei o repositório e funcionou bem.
tente executar o find * -name "*.gz" -exec file {} + | grep -v "gzip compressed data"
meu palpite seria talvez você tenha um repo antigo que não funciona?