1
我有一個狀態,我嘗試安裝cpu服務器上的cuda。國家正確卡列斯的apt-get安裝CUDA等,但不能接聽第二個電話是進一步dependenciecuda設置saltstack狀態 - 如何強制apt-get --force - 是在鹽pkg.installed
這是輸出
ID: package_cuda
Function: pkg.installed
Name: cuda
Result: False
Comment: Problem encountered installing package(s). Additional info follows:
errors:
- E: There are problems and -y was used without --force-yes
Started: 16:55:24.408065
Duration: 17031.708 ms
這是CUDA狀態
include:
- repos.pkgs.{{ salt['grains.get']('os') ~ '.' ~ salt['grains.get']('oscodename') }}.cuda
package_cuda:
pkg:
- installed
- name: cuda
- require:
- pkgrepo: pkgrepo_cuda
包回購SATE
pkgrepo_cuda:
pkgrepo:
- managed
- humanname: nvidia cuda repo
- name: deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/
- file: /etc/apt/sources.list.d/cuda.list
- key_url: http://developer.download.nvidia.com/compute/cuda/repos/GPGKE
所以象apt-get安裝--force-yes選項w ^應該在docs真棒,我很幸運找到一個選項
@talonmies,thx。完成 – PlagTag
感謝您這樣做(答案upvoted) – talonmies