2016-04-01 118 views
0

當我試圖安裝kubernetes節點使用以下命令 失敗與錯誤安裝Kubernetes節點的失敗,在CentOS衝突的包7

[[email protected] network-scripts]$ sudo yum install docker kubernetes-node 

Loaded plugins: fastestmirror 
Loading mirror speeds from cached hostfile 

    base: centos.skarta.net 
    epel: epel.besthosting.ua 
    extras: ftp.crc.dk 
    updates: centos.uib.no Resolving Dependencies --> Running transaction check ---> Package docker.x86_64 0:1.8.2-10.el7.centos will be installed --> Processing Dependency: docker-selinux >= 1.8.2-10.el7.centos for package: docker-1.8.2-10.el7.centos.x86_64 ---> Package kubernetes-node.x86_64 0:1.2.0-0.6.alpha1.git8632732.el7 will be installed --> Processing Dependency: socat for package: kubernetes-node-1.2.0-0.6.alpha1.git8632732.el7.x86_64 --> Running transaction check ---> Package docker-selinux.x86_64 0:1.8.2-10.el7.centos will be installed ---> Package socat.x86_64 0:1.7.2.2-5.el7 will be installed --> Processing Conflict: docker-engine-selinux-1.10.3-1.el7.centos.noarch conflicts docker-selinux --> Finished Dependency Resolution Error: docker-engine-selinux conflicts with docker-selinux-1.8.2-10.el7.centos.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest 

我已經卸載/刪除泊塢窗仍是錯誤存在!

回答

1

您正在混合碼頭包。包docker是Redhat的Docker。包docker-engine是Docker的Docker。 kubernetes-node有Docker的docker依賴+你也要安裝Redhat的Docker =>衝突。嘗試:

sudo yum install docker-engine kubernetes-node 
+0

- >處理衝突:docker-engine-selinux-1.10.3-1.el7.centos.noarch衝突docker-selinux - >處理衝突:docker-engine-1.10.3-1.el7.centos .x86_64衝突docker-io - >處理衝突:docker-engine-1.10.3-1.el7.centos.x86_64衝突docker - >成品依賴分辨率 仍然是同一個問題 – Prat

+0

「docker-io」?這是碼頭引擎的舊名稱。您正在混合碼頭版本:-)。確保你只使用當前的碼頭倉庫 - 刪除舊的Docker倉庫定義。 –

+0

你是對的碼頭工人是老的。我刪除了碼頭引擎的所有版本並執行上述命令。仍然面臨問題... – Prat

0

它可能是因爲你已經安裝了泊塢窗,我假設從碼頭回購的最新版本。該命令嘗試從不同的回購庫再次安裝它。嘗試,而不是運行此:

sudo yum install -y kubelet kubeadm kubectl kubernetes-cni

它將安裝所需的kubernetes工具,而不泊塢窗。