Tentando configurar um repositório local para 16.04 usando apt-mirror
(o host e o cliente são 16.04 LTS), mas com problemas, entre outros, com autenticação devido a um arquivo de liberação ausente ao executar sudo apt-get update
no cliente.
Eu segui este guia para configurar o repositório local.
Lado do host:
/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
Para a parte do apache, criei o link sudo ln -s /repo/mirror/archive.ubuntu.com/ubuntu/ ubuntu
, portanto, nenhuma alteração em comparação com o guia.
Lado do cliente:
No lado do cliente, só alterei http://archive.ubuntu.com/ubuntu/
para http://10.0.0.125/ubuntu
em /etc/apt/sources.list
, por ex.
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
Ao executar sudo apt-get update
, recebo o seguinte;
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.
Alguma sugestão de como resolver isso? Já vi alguns posts sobre apt-mirror
e 16.04
, mas parece que todos os outros que tiveram problemas semelhantes resolveram os problemas com soluções que não funcionam para mim.