将 Fedora 40 升级到 41 后,docker-compose
不再可用。
当我尝试重新安装时sudo dnf install docker-compose
,会出现以下冲突:
- installed package docker-compose-plugin-2.29.7-1.fc41.x86_64 conflicts with docker-compose-plugin provided by docker-compose-2.29.7-1.fc41.x86_64 from fedora
- package docker-compose-2.29.7-1.fc41.x86_64 from fedora conflicts with docker-compose-plugin provided by docker-compose-plugin-2.29.2-1.fc41.x86_64 from docker-ce-stable
- package docker-compose-2.29.7-1.fc41.x86_64 from fedora conflicts with docker-compose-plugin provided by docker-compose-plugin-2.29.6-1.fc41.x86_64 from docker-ce-stable
- package docker-compose-2.29.7-1.fc41.x86_64 from fedora conflicts with docker-compose-plugin provided by docker-compose-plugin-2.29.7-1.fc41.x86_64 from docker-ce-stable
- installed package docker-compose-plugin-2.29.7-1.fc41.x86_64 conflicts with docker-compose-plugin provided by docker-compose-2.29.7-3.fc41.x86_64 from updates
- package docker-compose-2.29.7-3.fc41.x86_64 from updates conflicts with docker-compose-plugin provided by docker-compose-plugin-2.29.2-1.fc41.x86_64 from docker-ce-stable
- package docker-compose-2.29.7-3.fc41.x86_64 from updates conflicts with docker-compose-plugin provided by docker-compose-plugin-2.29.6-1.fc41.x86_64 from docker-ce-stable
- package docker-compose-2.29.7-3.fc41.x86_64 from updates conflicts with docker-compose-plugin provided by docker-compose-plugin-2.29.7-1.fc41.x86_64 from docker-ce-stable
--allowerasing
使用或运行命令行--skip-broken
也不起作用。
我也尝试过(但没有成功):
- 移除/重新安装
docker-compose-plugin
- 按照文档删除/重新安装 Docker(https://docs.docker.com/engine/install/fedora)
我还能做什么来再次找到docker-compose
工作?
我在 Red Hat Bugzilla ( https://bugzilla.redhat.com/show_bug.cgi?id=2325904 ) 上讨论了这个问题。由于他们的回答很好地解释了原因和方法,我在这里重现了它。
版本
docker-compose
从 Docker rpm 安装
从 Fedora rpm 安装