brunominas
(usa Debian)
Enviado em 29/05/2012 - 10:41h
Bom dia á todos!
Sou iniciante neste fórum.
Possuo uma rede com um servidor de espelho que fiz com base no pacote debmirror. Neste servidor eu configurei para baixar somente pacotes AMD64 (pois só tenho máquinas 64bits com Ubuntu/Kubuntu AMD64). O processo de atualização do servidor ocorre sem problemas. Abaixo está o script que uso para isto no Servidor de espelho:
#!/bin/sh
proto=http
host=br.archive.ubuntu.com
arch=amd64
destdir=/var/www/espelho
root=ubuntu
defopt="-v -p --arch=$arch --host=$host --root=$root --section=main,multiverse,restricted,universe --dist=precise,precise-updates,precise-security,precise-backports -e $proto --ignore-release-gpg --postcleanup --nosource"
echo "------------- Criando espelho Ubuntu Precise - amd64 ---------------"
debmirror $defopt $destdir/$root
Tudo ok até agora! Depois eu vou á uma estação que acabei de realizar a instalação do Kubuntu 12.04 AMD64 Desktop. E edito o sources.list como o seguinte: (lembrando que o ip do meu espelho no caso é o 10.31.200.82)
# Repositorio espelho para Ubuntu 12.04 (precise) da minha empresa Ciclana
deb
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu precise main restricted universe multiverse
deb
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu precise-security main restricted universe multiverse
deb
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu precise-updates main restricted universe multiverse
deb
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu precise-backports main restricted universe multiverse
Após executo o "apt-get update" e daí que vem os erros seguintes: (lembrando que estamos na estação de trabalho agora)
Ign
http://10.31.200.82 precise InRelease
Ign
http://10.31.200.82 precise-security InRelease
Ign
http://10.31.200.82 precise-updates InRelease
Ign
http://10.31.200.82 precise-backports InRelease
Ign
http://10.31.200.82 precise Release.gpg
Ign
http://10.31.200.82 precise-security Release.gpg
Ign
http://10.31.200.82 precise-updates Release.gpg
Ign
http://10.31.200.82 precise-backports Release.gpg
Ign
http://10.31.200.82 precise Release
Ign
http://10.31.200.82 precise-security Release
Ign
http://10.31.200.82 precise-updates Release
Ign
http://10.31.200.82 precise-backports Release
Ign
http://10.31.200.82 precise/main TranslationIndex
Ign
http://10.31.200.82 precise/multiverse TranslationIndex
Ign
http://10.31.200.82 precise/restricted TranslationIndex
Ign
http://10.31.200.82 precise/universe TranslationIndex
Ign
http://10.31.200.82 precise-security/main TranslationIndex
Ign
http://10.31.200.82 precise-security/multiverse TranslationIndex
Ign
http://10.31.200.82 precise-security/restricted TranslationIndex
Ign
http://10.31.200.82 precise-security/universe TranslationIndex
Ign
http://10.31.200.82 precise-updates/main TranslationIndex
Ign
http://10.31.200.82 precise-updates/multiverse TranslationIndex
Ign
http://10.31.200.82 precise-updates/restricted TranslationIndex
Ign
http://10.31.200.82 precise-updates/universe TranslationIndex
Ign
http://10.31.200.82 precise-backports/main TranslationIndex
Ign
http://10.31.200.82 precise-backports/multiverse TranslationIndex
Ign
http://10.31.200.82 precise-backports/restricted TranslationIndex
Ign
http://10.31.200.82 precise-backports/universe TranslationIndex
Err
http://10.31.200.82 precise/main amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise/restricted amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise/universe amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise/multiverse amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise/main i386 Packages
404 Not Found
Err
http://10.31.200.82 precise/restricted i386 Packages
404 Not Found
Err
http://10.31.200.82 precise/universe i386 Packages
404 Not Found
Err
http://10.31.200.82 precise/multiverse i386 Packages
404 Not Found
Err
http://10.31.200.82 precise-security/main amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise-security/restricted amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise-security/universe amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise-security/multiverse amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise-security/main i386 Packages
404 Not Found
Err
http://10.31.200.82 precise-security/restricted i386 Packages
404 Not Found
Err
http://10.31.200.82 precise-security/universe i386 Packages
404 Not Found
Err
http://10.31.200.82 precise-security/multiverse i386 Packages
404 Not Found
Err
http://10.31.200.82 precise-updates/main amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise-updates/restricted amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise-updates/universe amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise-updates/multiverse amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise-updates/main i386 Packages
404 Not Found
Err
http://10.31.200.82 precise-updates/restricted i386 Packages
404 Not Found
Err
http://10.31.200.82 precise-updates/universe i386 Packages
404 Not Found
Err
http://10.31.200.82 precise-updates/multiverse i386 Packages
404 Not Found
Err
http://10.31.200.82 precise-backports/main amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise-backports/restricted amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise-backports/universe amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise-backports/multiverse amd64 Packages
404 Not Found
Err
http://10.31.200.82 precise-backports/main i386 Packages
404 Not Found
Err
http://10.31.200.82 precise-backports/restricted i386 Packages
404 Not Found
Err
http://10.31.200.82 precise-backports/universe i386 Packages
404 Not Found
Err
http://10.31.200.82 precise-backports/multiverse i386 Packages
404 Not Found
Ign
http://10.31.200.82 precise/main Translation-pt_BR
Ign
http://10.31.200.82 precise/main Translation-pt
Ign
http://10.31.200.82 precise/main Translation-en
Ign
http://10.31.200.82 precise/multiverse Translation-pt_BR
Ign
http://10.31.200.82 precise/multiverse Translation-pt
Ign
http://10.31.200.82 precise/multiverse Translation-en
Ign
http://10.31.200.82 precise/restricted Translation-pt_BR
Ign
http://10.31.200.82 precise/restricted Translation-pt
Ign
http://10.31.200.82 precise/restricted Translation-en
Ign
http://10.31.200.82 precise/universe Translation-pt_BR
Ign
http://10.31.200.82 precise/universe Translation-pt
Ign
http://10.31.200.82 precise/universe Translation-en
Ign
http://10.31.200.82 precise-security/main Translation-pt_BR
Ign
http://10.31.200.82 precise-security/main Translation-pt
Ign
http://10.31.200.82 precise-security/main Translation-en
Ign
http://10.31.200.82 precise-security/multiverse Translation-pt_BR
Ign
http://10.31.200.82 precise-security/multiverse Translation-pt
Ign
http://10.31.200.82 precise-security/multiverse Translation-en
Ign
http://10.31.200.82 precise-security/restricted Translation-pt_BR
Ign
http://10.31.200.82 precise-security/restricted Translation-pt
Ign
http://10.31.200.82 precise-security/restricted Translation-en
Ign
http://10.31.200.82 precise-security/universe Translation-pt_BR
Ign
http://10.31.200.82 precise-security/universe Translation-pt
Ign
http://10.31.200.82 precise-security/universe Translation-en
Ign
http://10.31.200.82 precise-updates/main Translation-pt_BR
Ign
http://10.31.200.82 precise-updates/main Translation-pt
Ign
http://10.31.200.82 precise-updates/main Translation-en
Ign
http://10.31.200.82 precise-updates/multiverse Translation-pt_BR
Ign
http://10.31.200.82 precise-updates/multiverse Translation-pt
Ign
http://10.31.200.82 precise-updates/multiverse Translation-en
Ign
http://10.31.200.82 precise-updates/restricted Translation-pt_BR
Ign
http://10.31.200.82 precise-updates/restricted Translation-pt
Ign
http://10.31.200.82 precise-updates/restricted Translation-en
Ign
http://10.31.200.82 precise-updates/universe Translation-pt_BR
Ign
http://10.31.200.82 precise-updates/universe Translation-pt
Ign
http://10.31.200.82 precise-updates/universe Translation-en
Ign
http://10.31.200.82 precise-backports/main Translation-pt_BR
Ign
http://10.31.200.82 precise-backports/main Translation-pt
Ign
http://10.31.200.82 precise-backports/main Translation-en
Ign
http://10.31.200.82 precise-backports/multiverse Translation-pt_BR
Ign
http://10.31.200.82 precise-backports/multiverse Translation-pt
Ign
http://10.31.200.82 precise-backports/multiverse Translation-en
Ign
http://10.31.200.82 precise-backports/restricted Translation-pt_BR
Ign
http://10.31.200.82 precise-backports/restricted Translation-pt
Ign
http://10.31.200.82 precise-backports/restricted Translation-en
Ign
http://10.31.200.82 precise-backports/universe Translation-pt_BR
Ign
http://10.31.200.82 precise-backports/universe Translation-pt
Ign
http://10.31.200.82 precise-backports/universe Translation-en
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise/main/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise/restricted/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise/universe/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise/multiverse/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise/main/binary-i386/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise/restricted/binary-i386/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise/universe/binary-i386/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise/multiverse/binary-i386/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-security/main/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-security/restricted/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-security/universe/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-security/multiverse/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-security/main/binary-i386/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-security/restricted/binary-i386/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-security/universe/binary-i386/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-security/multiverse/binary-i386/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-updates/main/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-updates/restricted/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-updates/universe/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-updates/multiverse/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-updates/main/binary-i386/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-updates/restricted/binary-i386/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-updates/universe/binary-i386/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-updates/multiverse/binary-i386/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-backports/main/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-backports/restricted/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-backports/universe/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-backports/multiverse/binary-amd64/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-backports/main/binary-i386/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-backports/restricted/binary-i386/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-backports/universe/binary-i386/Packages 404 Not Found
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-backports/multiverse/binary-i386/Packages 404 Not Found
E: Alguns arquivos index falharam ao ser baixados. Eles foram ignorados, ou cópias antigas são usadas ao invés.
TRÊS OBSERVAÇÕES:
1- Quando eu mudo o "sources.list" da minha ESTAÇÃO para a seguinte, ela atualiza sem nenhum erro:
# Repositorio espelho para Ubuntu 12.04 (precise) Oficial
deb
http://br.archive.ubuntu.com/ubuntu precise main restricted universe multiverse
deb
http://br.archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb
http://br.archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse
deb
http://br.archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse
2- Estes arquivos "/ubuntu/dists/precise/main/binary-amd64/Packages" não existem mesmo no meu servidor e nem no servidor onde eu atualizo o meu espelho (que é o br.archive.ubuntu.com). Em ambos os casos, só existem estes arquivos de forma compactada (em .bz2 e .gz). Isto indica que o pacote "debmirror" que roda no meu servidor está fazendo o seu trabalho.
3- Porque a minha Estação que possui um sistema 64 bits procura índices 32 bits? Exemplo:
W: Falhou ao buscar
http://10.31.200.82/ubuntu">
http://10.31.200.82/ubuntu/dists/precise-backports/multiverse/binary-i386/Packages 404 Not Found
Não há como fazer ela buscar somente os pacotes da arquitetura dela?
Posso consertar isto sem ter que espelhar pacotes i386? Pois tenho limitações de banda de internet e espaço em disco no meu servidor...
Agradeço muitíssimo alguém que possa me ajudar!!