linux - Not able to install Docker compose in Linux
问题描述
I am not able to install docker compose on my Linux system.getting below error after running installation command:
~$ 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).
Can anyone please help me out? I tried sudo apt-get clean as well but no use
解决方案
我认为安装 docker-compose 最简单的方法是通过 pip:
sudo apt-get install python-pip
sudo pip install docker-compose
推荐阅读
- flutter - 记住 Bool 变量的最后状态
- javascript - 如何在复选框和单选按钮样式中添加图像(不是背景图像)(SVG css 填充问题)
- node.js - 如何在部署的 Lambda 函数中查看 console.log 语句
- visual-studio-code - 为什么 VS Code 不提供具有自动完成功能的方法?
- r - R-根据条件填充另一个数据框
- javascript - 如何在两个字符串之间使用正则表达式匹配和查找原始文件并获取整个字符串?
- exception - 捕获 R tryCatch() 越界异常以忽略执行
- javascript - 背景DIV基于Intersection Observer淡入淡出
- sql - SQL将具有共同批号的两行合并为一行
- python - 将字典中的键值对交换为列表