在运行安装命令后,我无法在下面的Linux system.getting上安装docker组合:
~$ sudo apt-get -f install docker-compose
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
code : Depends: libnotify4 but it is not going to be installed
Depends: libnss3 but it is not going to be installed
Depends: libxkbfile1 but it is not going to be installed
Depends: libgconf-2-4 but it is not going to be installed
Depends: libsecret-1-0 but it is not going to be installed
docker-compose : Depends: python-cached-property but it is not going to be installed
Depends: python-docker (>= 1.9.0) but it is not going to be installed
Depends: python-dockerpty (>= 0.4.1) but it is not going to be installed
Depends: python-docopt but it is not going to be installed
Depends: python-enum34 but it is not going to be installed
Depends: python-jsonschema but it is not going to be installed
Depends: python-requests (>= 2.6.1) but it is not going to be installed
Depends: python-six (>= 1.3.0) but it is not going to be installed
Depends: python-texttable but it is not going to be installed
Depends: python-websocket but it is not going to be installed
Depends: python-yaml but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).有人能帮帮我吗?我也试过洗干净,但没用
发布于 2018-06-14 15:24:26
我认为最简单的安装坞-撰写方式是通过pip:
sudo apt-get install python-pip
sudo pip install docker-compose发布于 2018-09-22 19:56:32
Linux系统上的安装Docker组合
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose$ sudo chmod +x /usr/local/bin/docker-compose$ docker-compose --version欲了解更多详细信息,请参阅码头手册:https://docs.docker.com/compose/install/
发布于 2018-06-15 09:43:54
你好,你不能得到依赖的包裹。也许您的系统是旧的,并且不支持再合子包,例如在Wheezy。也许是其他的问题。我现在没有,因为您还没有编写更多关于您使用的系统的信息(例如,系统版本、存储库列表- cat /etc/apt/Sourcees.list等)。我建议您使用本官方教程在debian中使用官方停靠页面src:https://docs.docker.com/compose/install/ (根据官方教程,您可以使用curl下载最新的二进制坞-编写并修改它,或者使用pip工具安装坞-组合)或使用本页中给出的解决方案(例如,pip工具)。我使用官方教程的docker在我的系统(最新版本)重新安装停靠-撰写。很有帮助。我使用Debian 9“拉伸”(最新的,稳定的)。
Ps。当您使用其他解决方案安装坞-组合时,请不要忘记删除旧的安装坞-组合。
https://stackoverflow.com/questions/50860460
复制相似问题