Fedora上的Kubernetes安装遇到了包冲突

时间:2018-01-13 12:27:05

标签: docker kubernetes fedora fedora-27

当我按照kubernetes指南在运行fedora 27的本地机器上安装kubernetes时,我已经安装了docker-ce 17.12(遵循Docker CE文档)。

bellow是安装输出。是否有任何机构可以弄清楚我应该怎么做才能安装kubernetes但是还要保留我的docker-ce?

[ian@thinkpad ~]$ sudo LANG=en_US.UTF-8 dnf install kubernetes
Last metadata expiration check: 7:31:34 ago on Sat 13 Jan 2018 12:51:44 PM CST.
Error: 
 Problem: package kubernetes-node-1.7.3-1.fc27.x86_64 requires docker, but none of the providers can be installed
  - package docker-ce-17.12.0.ce-1.fc27.x86_64 conflicts with docker provided by docker-2:1.13.1-42.git4402c09.fc27.x86_64
  - package docker-ce-17.12.0.ce-1.fc27.x86_64 conflicts with docker provided by docker-2:1.13.1-26.gitb5e3294.fc27.x86_64
  - problem with installed package docker-ce-17.12.0.ce-1.fc27.x86_64
  - package kubernetes-1.7.3-1.fc27.x86_64 requires kubernetes-node = 1.7.3-1.fc27, but none of the providers can be installed
  - conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
[ian@thinkpad ~]$ docker version
Client:
 Version:       17.12.0-ce
 API version:   1.35
 Go version:    go1.9.2
 Git commit:    c97c6d6
 Built: Wed Dec 27 20:12:17 2017
 OS/Arch:       linux/amd64

Server:
 Engine:
  Version:      17.12.0-ce
  API version:  1.35 (minimum version 1.12)
  Go version:   go1.9.2
  Git commit:   c97c6d6
  Built:        Wed Dec 27 20:14:50 2017
  OS/Arch:      linux/amd64
  Experimental: false
[ian@thinkpad ~]$ 

2 个答案:

答案 0 :(得分:3)

刚刚请求将kubernetes-1.9.1 [1]的f27更新推送到允许安装docker或docker-ce的稳定存储库。过境需要一天或两天。同时,您可以从更新[1]安装kubernetes-node rpm。在本地测试。如果它不适合你,请告诉我。

[1] https://bodhi.fedoraproject.org/updates/FEDORA-2018-d0a64cb26c

此致 扬

答案 1 :(得分:0)

这是known issueupdate is pending。最终,这将在适当的F27更新集中。与此同时,您可以通过以下方式从更新测试中获取它:

sudo dnf --enablerepo=updates-testing install kubernetes

...如果这对您有用,请添加有关待处理更新的反馈。