Fagner,

Se for para fazer cache dos pacotes utiliza o apt-cacher-ng, mas se for para
criar um repositório local, utiliza o apt-mirror.
Abaixo um tutorial sobre o apt-cacher-ng (recomendado).

http://www.ubuntugeek.com/apt-cacher-ng-http-download-proxy-for-software-packages.html


-- 
Marcio Sales




Em 9 de março de 2010 16:18, Fagner Patricio
<fagner.patri...@gmail.com>escreveu:

> Pessoal, eu estou tentando fazer um repositório local só para mimi, para
> aprender a fazer mas não está funcionando, eu segui esse tutorial
>
> http://www.debian.org/doc/manuals/reference/ch-package.pt-br.html
>
> na seção 6.4.11 ensina como fazer, eu estou fazendo da seguinte maneira com
> ensina o tutorial:
>
>  Alternativamente, pode-se fazer um repositório deb local curto e grosso:
>>
>>      # apt-get install dpkg-dev
>>      # mkdir /usr/local/debian
>>      # mv /algum/lugar/pacote.deb /usr/local/debian
>>      # dpkg-scanpackages /usr/local/debian /dev/null | \
>>
>>
>>        gzip - > /usr/local/debian/Packages.gz
>>      #  echo "deb file:/usr/local/debian ./" >> /etc/apt/sources.list
>>
>>
> no meu caso o meu repositório é em "/opt/repositorio"
>
> eu criei o pacote Packages.gz como fala e no source.list adicionei a
> seguinte linha
>
> deb file:/opt/repositorio ./
>
> quando eu faço aptitude update acontece isso:
>
> Ign file: ./ Release.gpg
>> Ign file: ./
>> Translation-pt_BR
>>
>> Ign file: ./
>> Release
>>
>> Ign file: ./
>> Packages
>>
>> Atingido http://ftp.br.debian.org lenny
>> Release.gpg
>>
>> Atingido http://download.virtualbox.org lenny
>> Release.gpg
>>
>> Atingido http://ftp.br.debian.org lenny/main
>> Translation-pt_BR
>>
>> Atingido http://www.backports.org lenny-backports
>> Release.gpg
>>
>> Ign http://download.virtualbox.org lenny/non-free
>> Translation-pt_BR
>>
>> Atingido http://deb.opera.com lenny
>> Release.gpg
>>
>> Atingido http://volatile.debian.org lenny/volatile
>> Release.gpg
>>
>> Obter:1 http://ppa.launchpad.net gutsy Release.gpg
>> [307B]
>>
>> Ign http://www.openprinting.org lsb3.2
>> Release.gpg
>>
>> Atingido http://security.debian.org lenny/updates
>> Release.gpg
>>
>> Atingido http://download.virtualbox.org lenny
>> Release
>>
>> Ign http://www.backports.org lenny-backports/main
>> Translation-pt_BR
>>
>> Ign http://deb.opera.com lenny/non-free
>> Translation-pt_BR
>>
>> Ign http://volatile.debian.org lenny/volatile/main
>> Translation-pt_BR
>>
>> Ign http://security.debian.org lenny/updates/main
>> Translation-pt_BR
>>
>> Atingido http://debian-multimedia.org lenny
>> Release.gpg
>>
>> Ign http://ftp.br.debian.org lenny/contrib
>> Translation-pt_BR
>>
>> Ign http://download.virtualbox.org lenny/non-free
>> Packages/DiffIndex
>>
>> Ign http://www.backports.org lenny-backports/contrib
>> Translation-pt_BR
>>
>> Atingido http://volatile.debian.org lenny/volatile
>> Release
>>
>> Atingido http://deb.opera.com lenny
>> Release
>>
>> Atingido http://download.virtualbox.org lenny/non-free
>> Packages
>>
>> Atingido http://debian-multimedia.org lenny/main
>> Translation-pt_BR
>>
>> Ign http://ppa.launchpad.net gutsy/main
>> Translation-pt_BR
>>
>> Ign http://www.backports.org lenny-backports/non-free
>> Translation-pt_BR
>>
>> Ign http://volatile.debian.org lenny/volatile/main
>> Packages/DiffIndex
>>
>> Ign http://ftp.br.debian.org lenny/non-free
>> Translation-pt_BR
>>
>> Ign http://deb.opera.com lenny/non-free
>> Packages/DiffIndex
>>
>> Atingido http://debian-multimedia.org lenny
>> Release
>>
>> Atingido http://ppa.launchpad.net gutsy
>> Release
>>
>> Err http://ppa.launchpad.net gutsy
>> Release
>>
>>
>> Obter:2 http://ppa.launchpad.net gutsy Release
>> [46,7kB]
>>
>> Ign http://ppa.launchpad.net gutsy
>> Release
>>
>> Ign http://volatile.debian.org lenny/volatile/main
>> Sources/DiffIndex
>>
>> Ign http://www.openprinting.org lsb3.2/main
>> Translation-pt_BR
>>
>> Atingido http://www.backports.org lenny-backports
>> Release
>>
>> Atingido http://ftp.br.debian.org lenny-proposed-updates
>> Release.gpg
>>
>> Atingido http://debian-multimedia.org lenny/main
>> Packages/DiffIndex
>>
>> Ign http://security.debian.org lenny/updates/contrib
>> Translation-pt_BR
>>
>> Ign http://deb.opera.com lenny/non-free
>> Packages
>>
>> Ign http://ftp.br.debian.org lenny-proposed-updates/contrib
>> Translation-pt_BR
>>
>> Atingido http://volatile.debian.org lenny/volatile/main
>> Packages
>>
>> Ign http://ppa.launchpad.net gutsy/main
>> Packages/DiffIndex
>>
>> Ign http://www.backports.org lenny-backports/main
>> Packages/DiffIndex
>>
>> Ign http://ftp.br.debian.org lenny-proposed-updates/non-free
>> Translation-pt_BR
>>
>> Ign http://security.debian.org lenny/updates/non-free
>> Translation-pt_BR
>>
>> Atingido http://deb.opera.com lenny/non-free
>> Packages
>>
>> Atingido http://volatile.debian.org lenny/volatile/main
>> Sources
>>
>> Ign http://ftp.br.debian.org lenny-proposed-updates/main
>> Translation-pt_BR
>>
>> Ign http://ppa.launchpad.net gutsy/main
>> Sources/DiffIndex
>>
>> Ign http://www.backports.org lenny-backports/contrib
>> Packages/DiffIndex
>>
>> Atingido http://ftp.br.debian.org lenny
>> Release
>>
>> Atingido http://security.debian.org lenny/updates
>> Release
>>
>> Atingido http://ftp.br.debian.org lenny-proposed-updates
>> Release
>>
>> Ign http://ftp.br.debian.org lenny/main
>> Packages/DiffIndex
>>
>> Ign http://ppa.launchpad.net gutsy/main
>> Packages
>>
>> Ign http://www.backports.org lenny-backports/non-free
>> Packages/DiffIndex
>> Ign http://security.debian.org lenny/updates/main
>> Packages/DiffIndex
>>
>> Atingido http://www.openprinting.org lsb3.2
>> Release
>>
>> Ign http://ftp.br.debian.org lenny/contrib
>> Packages/DiffIndex
>>
>> Ign http://ftp.br.debian.org lenny/non-free
>> Packages/DiffIndex
>> Ign http://security.debian.org lenny/updates/contrib
>> Packages/DiffIndex
>> Ign http://ppa.launchpad.net gutsy/main
>> Sources
>>
>> Atingido http://www.backports.org lenny-backports/main
>> Packages
>>
>> Ign http://www.openprinting.org lsb3.2/main
>> Packages/DiffIndex
>>
>> Ign http://ftp.br.debian.org lenny/main
>> Sources/DiffIndex
>>
>> Ign http://security.debian.org lenny/updates/non-free
>> Packages/DiffIndex
>>
>> Ign http://ftp.br.debian.org lenny/contrib
>> Sources/DiffIndex
>>
>> Atingido http://ppa.launchpad.net gutsy/main
>> Packages
>>
>> Ign http://ftp.br.debian.org lenny/non-free
>> Sources/DiffIndex
>>
>> Atingido http://www.backports.org lenny-backports/contrib
>> Packages
>>
>> Ign http://security.debian.org lenny/updates/main
>> Sources/DiffIndex
>>
>> Atingido http://ppa.launchpad.net gutsy/main
>> Sources
>>
>> Atingido http://www.backports.org lenny-backports/non-free
>> Packages
>>
>> Ign http://security.debian.org lenny/updates/contrib
>> Sources/DiffIndex
>> Ign http://www.openprinting.org lsb3.2/main
>> Packages
>> Atingido http://ftp.br.debian.org lenny-proposed-updates/contrib
>> Packages/DiffIndex
>> Ign http://security.debian.org lenny/updates/non-free Sources/DiffIndex
>>
>> Ign http://ftp.br.debian.org lenny-proposed-updates/non-free
>> Packages/DiffIndex
>> Atingido http://security.debian.org lenny/updates/main Packages
>>
>> Atingido http://ftp.br.debian.org lenny-proposed-updates/main
>> Packages/DiffIndex
>> Atingido http://ftp.br.debian.org lenny-proposed-updates/contrib
>> Sources/DiffIndex
>> Atingido http://security.debian.org lenny/updates/contrib
>> Packages
>> Ign http://ftp.br.debian.org lenny-proposed-updates/non-free
>> Sources/DiffIndex
>> Atingido http://security.debian.org lenny/updates/non-free
>> Packages
>> Atingido http://www.openprinting.org lsb3.2/main
>> Packages
>> Atingido http://security.debian.org lenny/updates/main
>> Sources
>> Atingido http://ftp.br.debian.org lenny-proposed-updates/main
>> Sources/DiffIndex
>> Atingido http://security.debian.org lenny/updates/contrib Sources
>>
>> Atingido http://ftp.br.debian.org lenny/main Packages
>>
>> Atingido http://ftp.br.debian.org lenny/contrib Packages
>>
>> Atingido http://security.debian.org lenny/updates/non-free Sources
>>
>> Atingido http://ftp.br.debian.org lenny/non-free Packages
>>
>> Atingido http://ftp.br.debian.org lenny/main Sources
>> Atingido http://ftp.br.debian.org lenny/contrib Sources
>> Atingido http://ftp.br.debian.org lenny/non-free Sources
>> Atingido http://ftp.br.debian.org lenny-proposed-updates/non-free
>> Packages
>> Atingido http://ftp.br.debian.org lenny-proposed-updates/non-free Sources
>> Buscados 47,0kB em 5s (9063B/s)
>> Lendo listas de pacotes... Pronto
>> W: GPG error: http://ppa.launchpad.net gutsy Release: As assinaturas a
>> seguir não puderam ser verificadas devido à chave pública não estar
>> disponível: NO_PUBKEY A7E13D78E4A4F4F4
>> W: Você terá que executar apt-get update para corrigir estes problemas
>>
>
> e quando eu faço, aptitude search "pacote-que-esta-/opt/repositorio" não
> acha
>
> alguém pode me ajudar?
>
> --
> Fagner Patrício
> João Pessoa - PB
> Brasil
>

Responder a