Tenta dar uma olha da no /etc/apt/ se tem um arquivo q não é o source.list.
e apaga o seu conteudo ou comente.
ele ta tentando conectar na porta 21. acho q ela num tem nada a ver.

On 4/7/06, Leonardo Rosa <[EMAIL PROTECTED]> wrote:
Bom pessoal.
Vasculhando a net, achei trocentos artigos falando de como criar um repositório Debian numa rede local.
a questão é que fui evoluindo em cada um deles a ponto de montar o compartilhamento e conseguir ver os arquivos do servidor, que está na pasta /var/cache/apt/archives com a permissão (rw).
Após exportar eu vou no cliente e rodo o apt-get update e ele não consegue achar o local especificado no /etc/apt/sources.lists.
É como se não tivesse aquele endereço.
Alguém poderia mandar uma luz?
Segue abaixo configuração no servidor e na estação.
[ ] ão Léo

Servidor
# apt-get install nfs-user-server nfs-common statd portmap

# apt-get install dpkg-dev

# cd /var/cache/apt

# cat /dev/null > override

# dpkg-scanpackages archives override | gzip > archives/Packages.gz

# vi /etc/exports
    /var/cache/apt/archives (rw)

#vi /etc/hosts
10.5.1.72       meudominio.com.br      localhost       meuservidor
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

# /etc/init.d/nfs-user-server restart

# /etc/init.d/nfs-common restart

# /etc/init.d/portmap restart

Cliente

# mkdir /mnt/teste

# vi /etc/hosts
127.0.0.1       localhost.localdomain   localhost       minhamaquina
10.5.1.72       meudominio.com.br                          meuservidor

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

# vi /etc/apt-/sources.lists
#deb http://ftp.br.debian.org/debian stable main contrib non-free
#deb http://ftp.br.debian.org/debian-non-US stable/non-US main contrib non-free
deb http://10.5.1.72/debian stable main contrib non-free
deb http://10.5.1.72/debian-non-US stable/non-US main contrib non-free
deb ftp://10.5.1.72/debian stable main contrib non-free
deb ftp://10.5.1.72/debian-non-US stable/non-US main contrib non-free

# mount -t nfs :/var/cache/apt/archives/ /mnt/test

# ls
OBS.: todos os pacots estão sendo vistos

# apt-get update
Err ftp://10.5.1.72 stable/main Packages
  Could not connect to 10.5.1.72:21 ( 10.5.1.72). - connect (111 Connection refused)
Err http://10.5.1.72 stable/main Packages
  404 Not Found
Ign http://10.5.1.72 stable/main Release
Err http://10.5.1.72 stable/contrib Packages
  404 Not Found
Ign http://10.5.1.72 stable/contrib Release
Err http://10.5.1.72 stable/non-free Packages
  404 Not Found
Ign http://10.5.1.72 stable/non-free Release
Err http://10.5.1.72 stable/non-US/main Packages
  404 Not Found
Ign http://10.5.1.72 stable/non-US/main Release
Err http://10.5.1.72 stable/non-US/contrib Packages
  404 Not Found
Ign http://10.5.1.72 stable/non-US/contrib Release
Err ftp://10.5.1.72 stable/main Release
  Could not connect to 10.5.1.72:21 ( 10.5.1.72). - connect (111 Connection refused)
Err http://10.5.1.72 stable/non-US/non-free Packages
  404 Not Found
Err ftp://10.5.1.72 stable/contrib Packages
  Could not connect to 10.5.1.72:21 ( 10.5.1.72). - connect (111 Connection refused)
Ign http://10.5.1.72 stable/non-US/non-free Release
Err ftp://10.5.1.72 stable/contrib Release
  Could not connect to 10.5.1.72:21 ( 10.5.1.72). - connect (111 Connection refused)
Err ftp://10.5.1.72 stable/non-free Packages
  Could not connect to 10.5.1.72:21 ( 10.5.1.72). - connect (111 Connection refused)
Err ftp://10.5.1.72 stable/non-free Release
  Could not connect to 10.5.1.72:21 ( 10.5.1.72). - connect (111 Connection refused)
Err ftp://10.5.1.72 stable/non-US/main Packages
  Could not connect to 10.5.1.72:21 ( 10.5.1.72). - connect (111 Connection refused)
Err ftp://10.5.1.72 stable/non-US/main Release
  Could not connect to 10.5.1.72:21 ( 10.5.1.72). - connect (111 Connection refused)
Err ftp://10.5.1.72 stable/non-US/contrib Packages
  Could not connect to 10.5.1.72:21 ( 10.5.1.72). - connect (111 Connection refused)
Err ftp://10.5.1.72 stable/non-US/contrib Release
  Could not connect to 10.5.1.72:21 ( 10.5.1.72). - connect (111 Connection refused)
Err ftp://10.5.1.72 stable/non-US/non-free Packages
  Could not connect to 10.5.1.72:21 ( 10.5.1.72). - connect (111 Connection refused)
Err ftp://10.5.1.72 stable/non-US/non-free Release
  Could not connect to 10.5.1.72:21 ( 10.5.1.72). - connect (111 Connection refused)
Lendo Lista de Pacotes...


Novamente, se alguém puder ajudar, agradeço.



--
Samuel Rios Carvalho
ICQ: 44755578
E-Mail: [EMAIL PROTECTED]
Skype: nhawkbr
Messenger: [EMAIL PROTECTED]

Responder a