Я открыл свой собственный способный репозиторий для обслуживания некоторых .deb
пакеты по LAN и я настроил свою марионеточную конфигурацию для установки этих пакетов.
Если я использую apt-get install
для загрузки пакета, это хорошо работает, но когда я выполняю свою марионеточную декларацию, это бросает эту ошибку, когда это пытается установить:
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
Я не уверен точно, где проблема; марионетка? Мой репозиторий? Что-то еще?
Похож на него, был то, потому что мой репозиторий не аутентифицировался. Я обошел это путем добавления разрешения склонного загрузить с неаутентифицируемых репозиториев и сделал это путем создания следующего файла с помощью марионетки:
file { "/etc/apt/apt.conf.d/99auth":
owner => root,
group => root,
content => "APT::Get::AllowUnauthenticated yes;",
mode => 644;
}