web-dev-qa-db-ja.com

ローカルリポジトリの作成にapt-mirrorを使用中にエラーが発生しました

Ubuntu 18.04および16.04のローカルリポジトリを作成したいと思います。 64ビットパッケージのみをダウンロードすることに興味があります。 「apt-mirror」を使用して、パッケージをハードディスクにダウンロードしています。

「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

「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

私は何度も繰り返し試してみましたが、毎回同じエラーが発生しました。

また、ダウンロードは非常に遅くなります(私の高速インターネット接続にもかかわらず)。複数のミラーからパッケージを同時にダウンロードするオプションはありますか?また、エラーを克服するための解決策を教えてください!

2
Soo

この問題はapt-mirrorではなく、リポジトリ自体に関連しています。リポジトリを変更し、正常に機能しました。

0
Soo

find * -name "*.gz" -exec file {} + | grep -v "gzip compressed data"を実行してみてください。おそらく、古い非稼働レポジトリがあるのでしょうか。

1
j-money