Como baixar pacotes do repositório privado com o fantoche?

1

Eu configurei meu próprio repositório apt para servir alguns .deb pacotes pela LAN e configurei minha configuração de fantoches para instalar esses pacotes.

Se eu usar apt-get install para baixar o pacote, ele funciona bem, mas quando eu executo meu manifesto de puppet, ele gera esse erro quando tenta instalar:

Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install cuda-repo-l4t-r19.2' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  cuda-repo-l4t-r19.2
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B/424 MB of archives.
After this operation, 426 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  cuda-repo-l4t-r19.2
E: There are problems and -y was used without --force-yes

Error: /Stage[main]/Main/Package[cuda-repo-l4t-r19.2]/ensure: change from absent to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install cuda-repo-l4t-r19.2' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  cuda-repo-l4t-r19.2
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B/424 MB of archives.
After this operation, 426 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  cuda-repo-l4t-r19.2
E: There are problems and -y was used without --force-yes

Não sei exatamente onde está o problema; fantoche? Meu repositório? Algo mais?

    
por yakka 15.09.2014 / 02:34

1 resposta

1

Parece que meu repositório não foi autenticado. Eu contornei isso adicionando permitindo o download de repositórios não autenticados, e fiz isso criando o seguinte arquivo usando puppet:

  file { "/etc/apt/apt.conf.d/99auth":       
    owner     => root,
    group     => root,
    content   => "APT::Get::AllowUnauthenticated yes;",
    mode      => 644;
  }
    
por yakka 15.09.2014 / 06:30