apt-mirror
(ホストとクライアントの両方が16.04 LTS)を使用して16.04のローカルリポジトリをセットアップしようとしていますが、クライアントでSudo apt-get update
を実行するときにリリースファイルが見つからないために認証などの問題が発生します。
このガイド に従ってローカルリポジトリをセットアップしました。
ホスト側:
/etc/apt/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 <running Host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads 20
set _tilde 0
#
############# end config ##############
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
clean http://archive.ubuntu.com/ubuntu
Apacheパートについては、リンクSudo ln -s /repo/mirror/archive.ubuntu.com/ubuntu/ ubuntu
を作成したため、ガイドと比較して変更はありません。
クライアント側:
クライアント側では、http://archive.ubuntu.com/ubuntu/
をhttp://10.0.0.125/ubuntu
で/etc/apt/sources.list
に変更しただけです。
deb http://10.0.0.125/ubuntu/ xenial main restricted
deb http://10.0.0.125/ubuntu/ xenial-updates main restricted
deb http://10.0.0.125/ubuntu/ xenial universe
deb http://10.0.0.125/ubuntu/ xenial-updates universe
deb http://10.0.0.125/ubuntu/ xenial multiverse
deb http://10.0.0.125/ubuntu/ xenial-updates multiverse
Sudo apt-get update
を実行すると、次のメッセージが表示されます。
Ign:1 http://10.0.0.125/ubuntu xenial InRelease
Ign:2 http://10.0.0.125/ubuntu xenial-updates InRelease
Ign:3 http://10.0.0.125/ubuntu xenial Release
Ign:4 http://10.0.0.125/ubuntu xenial-updates Release
Ign:5 http://10.0.0.125/ubuntu xenial/main AMD64 Packages
Ign:6 http://10.0.0.125/ubuntu xenial/main i386 Packages
Ign:7 http://10.0.0.125/ubuntu xenial/main all Packages
Ign:8 http://10.0.0.125/ubuntu xenial/main Translation-en
Ign:9 http://10.0.0.125/ubuntu xenial/restricted AMD64 Packages
Ign:10 http://10.0.0.125/ubuntu xenial/restricted i386 Packages
Ign:11 http://10.0.0.125/ubuntu xenial/restricted all Packages
Ign:12 http://10.0.0.125/ubuntu xenial/restricted Translation-en
Ign:13 http://10.0.0.125/ubuntu xenial/universe AMD64 Packages
Ign:14 http://10.0.0.125/ubuntu xenial/universe i386 Packages
Ign:15 http://10.0.0.125/ubuntu xenial/universe all Packages
Ign:16 http://10.0.0.125/ubuntu xenial/universe Translation-en
Ign:17 http://10.0.0.125/ubuntu xenial/multiverse AMD64 Packages
Ign:18 http://10.0.0.125/ubuntu xenial/multiverse i386 Packages
Ign:19 http://10.0.0.125/ubuntu xenial/multiverse all Packages
Ign:20 http://10.0.0.125/ubuntu xenial/multiverse Translation-en
Ign:21 http://10.0.0.125/ubuntu xenial-updates/main AMD64 Packages
Ign:22 http://10.0.0.125/ubuntu xenial-updates/main i386 Packages
Ign:23 http://10.0.0.125/ubuntu xenial-updates/main all Packages
Ign:24 http://10.0.0.125/ubuntu xenial-updates/main Translation-en
Ign:25 http://10.0.0.125/ubuntu xenial-updates/restricted AMD64 Packages
Ign:26 http://10.0.0.125/ubuntu xenial-updates/restricted i386 Packages
Ign:27 http://10.0.0.125/ubuntu xenial-updates/restricted all Packages
Ign:28 http://10.0.0.125/ubuntu xenial-updates/restricted Translation-en
Ign:29 http://10.0.0.125/ubuntu xenial-updates/universe AMD64 Packages
Ign:30 http://10.0.0.125/ubuntu xenial-updates/universe i386 Packages
Ign:31 http://10.0.0.125/ubuntu xenial-updates/universe all Packages
Ign:32 http://10.0.0.125/ubuntu xenial-updates/universe Translation-en
Ign:33 http://10.0.0.125/ubuntu xenial-updates/multiverse AMD64 Packages
Ign:34 http://10.0.0.125/ubuntu xenial-updates/multiverse i386 Packages
Ign:35 http://10.0.0.125/ubuntu xenial-updates/multiverse all Packages
Ign:36 http://10.0.0.125/ubuntu xenial-updates/multiverse Translation-en
Ign:5 http://10.0.0.125/ubuntu xenial/main AMD64 Packages
Ign:6 http://10.0.0.125/ubuntu xenial/main i386 Packages
Ign:7 http://10.0.0.125/ubuntu xenial/main all Packages
Ign:8 http://10.0.0.125/ubuntu xenial/main Translation-en
Ign:9 http://10.0.0.125/ubuntu xenial/restricted AMD64 Packages
Ign:10 http://10.0.0.125/ubuntu xenial/restricted i386 Packages
Ign:11 http://10.0.0.125/ubuntu xenial/restricted all Packages
Ign:12 http://10.0.0.125/ubuntu xenial/restricted Translation-en
Ign:13 http://10.0.0.125/ubuntu xenial/universe AMD64 Packages
Ign:14 http://10.0.0.125/ubuntu xenial/universe i386 Packages
Ign:15 http://10.0.0.125/ubuntu xenial/universe all Packages
Ign:16 http://10.0.0.125/ubuntu xenial/universe Translation-en
Ign:17 http://10.0.0.125/ubuntu xenial/multiverse AMD64 Packages
Ign:18 http://10.0.0.125/ubuntu xenial/multiverse i386 Packages
Ign:19 http://10.0.0.125/ubuntu xenial/multiverse all Packages
Ign:20 http://10.0.0.125/ubuntu xenial/multiverse Translation-en
Ign:21 http://10.0.0.125/ubuntu xenial-updates/main AMD64 Packages
Ign:22 http://10.0.0.125/ubuntu xenial-updates/main i386 Packages
Ign:23 http://10.0.0.125/ubuntu xenial-updates/main all Packages
Ign:24 http://10.0.0.125/ubuntu xenial-updates/main Translation-en
Ign:25 http://10.0.0.125/ubuntu xenial-updates/restricted AMD64 Packages
Ign:26 http://10.0.0.125/ubuntu xenial-updates/restricted i386 Packages
Ign:27 http://10.0.0.125/ubuntu xenial-updates/restricted all Packages
Ign:28 http://10.0.0.125/ubuntu xenial-updates/restricted Translation-en
Ign:29 http://10.0.0.125/ubuntu xenial-updates/universe AMD64 Packages
Ign:30 http://10.0.0.125/ubuntu xenial-updates/universe i386 Packages
Ign:31 http://10.0.0.125/ubuntu xenial-updates/universe all Packages
Ign:32 http://10.0.0.125/ubuntu xenial-updates/universe Translation-en
Ign:33 http://10.0.0.125/ubuntu xenial-updates/multiverse AMD64 Packages
Ign:34 http://10.0.0.125/ubuntu xenial-updates/multiverse i386 Packages
Ign:35 http://10.0.0.125/ubuntu xenial-updates/multiverse all Packages
Ign:36 http://10.0.0.125/ubuntu xenial-updates/multiverse Translation-en
Ign:5 http://10.0.0.125/ubuntu xenial/main AMD64 Packages
Ign:6 http://10.0.0.125/ubuntu xenial/main i386 Packages
Ign:7 http://10.0.0.125/ubuntu xenial/main all Packages
Ign:8 http://10.0.0.125/ubuntu xenial/main Translation-en
Ign:9 http://10.0.0.125/ubuntu xenial/restricted AMD64 Packages
Ign:10 http://10.0.0.125/ubuntu xenial/restricted i386 Packages
Ign:11 http://10.0.0.125/ubuntu xenial/restricted all Packages
Ign:12 http://10.0.0.125/ubuntu xenial/restricted Translation-en
Ign:13 http://10.0.0.125/ubuntu xenial/universe AMD64 Packages
Ign:14 http://10.0.0.125/ubuntu xenial/universe i386 Packages
Ign:15 http://10.0.0.125/ubuntu xenial/universe all Packages
Ign:16 http://10.0.0.125/ubuntu xenial/universe Translation-en
Ign:17 http://10.0.0.125/ubuntu xenial/multiverse AMD64 Packages
Ign:18 http://10.0.0.125/ubuntu xenial/multiverse i386 Packages
Ign:19 http://10.0.0.125/ubuntu xenial/multiverse all Packages
Ign:20 http://10.0.0.125/ubuntu xenial/multiverse Translation-en
Ign:21 http://10.0.0.125/ubuntu xenial-updates/main AMD64 Packages
Ign:22 http://10.0.0.125/ubuntu xenial-updates/main i386 Packages
Ign:23 http://10.0.0.125/ubuntu xenial-updates/main all Packages
Ign:24 http://10.0.0.125/ubuntu xenial-updates/main Translation-en
Ign:25 http://10.0.0.125/ubuntu xenial-updates/restricted AMD64 Packages
Ign:26 http://10.0.0.125/ubuntu xenial-updates/restricted i386 Packages
Ign:27 http://10.0.0.125/ubuntu xenial-updates/restricted all Packages
Ign:28 http://10.0.0.125/ubuntu xenial-updates/restricted Translation-en
Ign:29 http://10.0.0.125/ubuntu xenial-updates/universe AMD64 Packages
Ign:30 http://10.0.0.125/ubuntu xenial-updates/universe i386 Packages
Ign:31 http://10.0.0.125/ubuntu xenial-updates/universe all Packages
Ign:32 http://10.0.0.125/ubuntu xenial-updates/universe Translation-en
Ign:33 http://10.0.0.125/ubuntu xenial-updates/multiverse AMD64 Packages
Ign:34 http://10.0.0.125/ubuntu xenial-updates/multiverse i386 Packages
Ign:35 http://10.0.0.125/ubuntu xenial-updates/multiverse all Packages
Ign:36 http://10.0.0.125/ubuntu xenial-updates/multiverse Translation-en
Ign:5 http://10.0.0.125/ubuntu xenial/main AMD64 Packages
Ign:6 http://10.0.0.125/ubuntu xenial/main i386 Packages
Ign:7 http://10.0.0.125/ubuntu xenial/main all Packages
Ign:8 http://10.0.0.125/ubuntu xenial/main Translation-en
Ign:9 http://10.0.0.125/ubuntu xenial/restricted AMD64 Packages
Ign:10 http://10.0.0.125/ubuntu xenial/restricted i386 Packages
Ign:11 http://10.0.0.125/ubuntu xenial/restricted all Packages
Ign:12 http://10.0.0.125/ubuntu xenial/restricted Translation-en
Ign:13 http://10.0.0.125/ubuntu xenial/universe AMD64 Packages
Ign:14 http://10.0.0.125/ubuntu xenial/universe i386 Packages
Ign:15 http://10.0.0.125/ubuntu xenial/universe all Packages
Ign:16 http://10.0.0.125/ubuntu xenial/universe Translation-en
Ign:17 http://10.0.0.125/ubuntu xenial/multiverse AMD64 Packages
Ign:18 http://10.0.0.125/ubuntu xenial/multiverse i386 Packages
Ign:19 http://10.0.0.125/ubuntu xenial/multiverse all Packages
Ign:20 http://10.0.0.125/ubuntu xenial/multiverse Translation-en
Ign:21 http://10.0.0.125/ubuntu xenial-updates/main AMD64 Packages
Ign:22 http://10.0.0.125/ubuntu xenial-updates/main i386 Packages
Ign:23 http://10.0.0.125/ubuntu xenial-updates/main all Packages
Ign:24 http://10.0.0.125/ubuntu xenial-updates/main Translation-en
Ign:25 http://10.0.0.125/ubuntu xenial-updates/restricted AMD64 Packages
Ign:26 http://10.0.0.125/ubuntu xenial-updates/restricted i386 Packages
Ign:27 http://10.0.0.125/ubuntu xenial-updates/restricted all Packages
Ign:28 http://10.0.0.125/ubuntu xenial-updates/restricted Translation-en
Ign:29 http://10.0.0.125/ubuntu xenial-updates/universe AMD64 Packages
Ign:30 http://10.0.0.125/ubuntu xenial-updates/universe i386 Packages
Ign:31 http://10.0.0.125/ubuntu xenial-updates/universe all Packages
Ign:32 http://10.0.0.125/ubuntu xenial-updates/universe Translation-en
Ign:33 http://10.0.0.125/ubuntu xenial-updates/multiverse AMD64 Packages
Ign:34 http://10.0.0.125/ubuntu xenial-updates/multiverse i386 Packages
Ign:35 http://10.0.0.125/ubuntu xenial-updates/multiverse all Packages
Ign:36 http://10.0.0.125/ubuntu xenial-updates/multiverse Translation-en
Ign:5 http://10.0.0.125/ubuntu xenial/main AMD64 Packages
Ign:6 http://10.0.0.125/ubuntu xenial/main i386 Packages
Ign:7 http://10.0.0.125/ubuntu xenial/main all Packages
Ign:8 http://10.0.0.125/ubuntu xenial/main Translation-en
Ign:9 http://10.0.0.125/ubuntu xenial/restricted AMD64 Packages
Ign:10 http://10.0.0.125/ubuntu xenial/restricted i386 Packages
Ign:11 http://10.0.0.125/ubuntu xenial/restricted all Packages
Ign:12 http://10.0.0.125/ubuntu xenial/restricted Translation-en
Ign:13 http://10.0.0.125/ubuntu xenial/universe AMD64 Packages
Ign:14 http://10.0.0.125/ubuntu xenial/universe i386 Packages
Ign:15 http://10.0.0.125/ubuntu xenial/universe all Packages
Ign:16 http://10.0.0.125/ubuntu xenial/universe Translation-en
Ign:17 http://10.0.0.125/ubuntu xenial/multiverse AMD64 Packages
Ign:18 http://10.0.0.125/ubuntu xenial/multiverse i386 Packages
Ign:19 http://10.0.0.125/ubuntu xenial/multiverse all Packages
Ign:20 http://10.0.0.125/ubuntu xenial/multiverse Translation-en
Ign:21 http://10.0.0.125/ubuntu xenial-updates/main AMD64 Packages
Ign:22 http://10.0.0.125/ubuntu xenial-updates/main i386 Packages
Ign:23 http://10.0.0.125/ubuntu xenial-updates/main all Packages
Ign:24 http://10.0.0.125/ubuntu xenial-updates/main Translation-en
Ign:25 http://10.0.0.125/ubuntu xenial-updates/restricted AMD64 Packages
Ign:26 http://10.0.0.125/ubuntu xenial-updates/restricted i386 Packages
Ign:27 http://10.0.0.125/ubuntu xenial-updates/restricted all Packages
Ign:28 http://10.0.0.125/ubuntu xenial-updates/restricted Translation-en
Ign:29 http://10.0.0.125/ubuntu xenial-updates/universe AMD64 Packages
Ign:30 http://10.0.0.125/ubuntu xenial-updates/universe i386 Packages
Ign:31 http://10.0.0.125/ubuntu xenial-updates/universe all Packages
Ign:32 http://10.0.0.125/ubuntu xenial-updates/universe Translation-en
Ign:33 http://10.0.0.125/ubuntu xenial-updates/multiverse AMD64 Packages
Ign:34 http://10.0.0.125/ubuntu xenial-updates/multiverse i386 Packages
Ign:35 http://10.0.0.125/ubuntu xenial-updates/multiverse all Packages
Ign:36 http://10.0.0.125/ubuntu xenial-updates/multiverse Translation-en
Err:5 http://10.0.0.125/ubuntu xenial/main AMD64 Packages
404 Not Found
Ign:6 http://10.0.0.125/ubuntu xenial/main i386 Packages
Ign:7 http://10.0.0.125/ubuntu xenial/main all Packages
Ign:8 http://10.0.0.125/ubuntu xenial/main Translation-en
Ign:9 http://10.0.0.125/ubuntu xenial/restricted AMD64 Packages
Ign:10 http://10.0.0.125/ubuntu xenial/restricted i386 Packages
Ign:11 http://10.0.0.125/ubuntu xenial/restricted all Packages
Ign:12 http://10.0.0.125/ubuntu xenial/restricted Translation-en
Ign:13 http://10.0.0.125/ubuntu xenial/universe AMD64 Packages
Ign:14 http://10.0.0.125/ubuntu xenial/universe i386 Packages
Ign:15 http://10.0.0.125/ubuntu xenial/universe all Packages
Err:21 http://10.0.0.125/ubuntu xenial-updates/main AMD64 Packages
404 Not Found
Ign:22 http://10.0.0.125/ubuntu xenial-updates/main i386 Packages
Ign:23 http://10.0.0.125/ubuntu xenial-updates/main all Packages
Ign:24 http://10.0.0.125/ubuntu xenial-updates/main Translation-en
Ign:25 http://10.0.0.125/ubuntu xenial-updates/restricted AMD64 Packages
Ign:26 http://10.0.0.125/ubuntu xenial-updates/restricted i386 Packages
Ign:27 http://10.0.0.125/ubuntu xenial-updates/restricted all Packages
Ign:28 http://10.0.0.125/ubuntu xenial-updates/restricted Translation-en
Ign:29 http://10.0.0.125/ubuntu xenial-updates/universe AMD64 Packages
Ign:30 http://10.0.0.125/ubuntu xenial-updates/universe i386 Packages
Ign:31 http://10.0.0.125/ubuntu xenial-updates/universe all Packages
Reading package lists... Done
W: The repository 'http://10.0.0.125/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://10.0.0.125/ubuntu xenial-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://10.0.0.125/ubuntu/dists/xenial/main/binary-AMD64/Packages 404 Not Found
E: Failed to fetch http://10.0.0.125/ubuntu/dists/xenial-updates/main/binary-AMD64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
これを解決する方法についての提案はありますか?私はapt-mirror
および16.04
に関する他の投稿を見ましたが、同様の問題を経験した他のすべての人が私には役に立たない解決策で問題を解決したようです。
質問のコメントで述べたように、これはローカルリポジトリにi386パッケージを追加することでも解決しました。ホスト側で/etc/apt/mirror.list:
に次の小さな変更を加えました(正しく覚えていれば、約40GBの追加パッケージをダウンロードする必要がありました)。
############# 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 <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 xenial main restricted universe multiverse
deb-AMD64 http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb-AMD64 http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
clean http://archive.ubuntu.com/ubuntu
なぜ機能するのか説明できませんが、機能し、問題を解決しました。そのままバカ。