Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在依赖关系可以满足的情况下也会提示“依赖关系不满足” #10

Closed
SwimmingTiger opened this issue Aug 15, 2020 · 2 comments

Comments

@SwimmingTiger
Copy link

SwimmingTiger commented Aug 15, 2020

问题

在某些特定情况下,deepin-deb-installer不能正确解决依赖关系。

虽然软件包的依赖很简单(这里只有一个wine),而且可以顺利被apt命令安装,但是deepin-deb-installer会给出“依赖关系不满足”的错误。

图片

复现方法

  1. 全新安装 Deepin v20。
  2. 从应用商店安装QQ。
  3. deepin-deb-installer安装这个软件包: build.deb.zip
    (注意这个包只是为了演示依赖问题而制作的,软件本身并不能正常运行。想运行可以去这里下载完整版)
  4. deepin-deb-installer提示“依赖关系不满足:wine”

该软件包的依赖只有一个wine。如果系统内没有安装wine却安装了deepin-wine*等包,就会发生这种问题。全新安装Deepin v20后从应用商店安装QQ是触发这个问题最简单的方法。

如果你已经安装了wine,但是依然还想复现该问题,可能需要先卸载所有与wine相关的包然后再试。特别是要卸载wine32:i386这个包。

日志

删除了行内多余的空白

hu60@hu60-PC:~/Downloads$ deepin-deb-installer build.deb
load translate "/usr/share/libdtk-5.1.2/DWidget/translations/dtkwidget_zh_CN"
load translate "/usr/share/deepin-deb-installer/translations/deepin-deb-installer_zh_CN"
2020-08-15, 21:20:09.728 [Debug] [0] "deepin-deb-installer" started, version =  "5.3.2.1"
2020-08-15, 21:20:09.728 [Debug] [0] ("build.deb")
No appenders assotiated with category qt.qpa.xcb
[Warning] <> QXcbConnection: XCB error: 5 (BadAtom), sequence: 475, resource id: 0, major code: 20 (GetProperty), minor code: 0
2020-08-15, 21:20:09.979 [Debug] [0] setCustomQPalette m_colorRole: QPalette::ColorRole(WindowText) 

2020-08-15, 21:20:09.979 [Debug] [0] setCustomQPalette m_colorRole: QPalette::ColorRole(WindowText) 

2020-08-15, 21:20:09.979 [Debug] [0] setCustomQPalette m_colorRole: QPalette::ColorRole(WindowText) 

2020-08-15, 21:20:09.979 [Debug] [0] setCustomQPalette m_colorRole: QPalette::ColorRole(WindowText) 

2020-08-15, 21:20:10.313 [Debug] [0] depends:
2020-08-15, 21:20:10.313 [Debug] [0] Check for package "net.winegame.client"
2020-08-15, 21:20:10.313 [Debug] [0] package with arch "wine" "amd64" ""
2020-08-15, 21:20:10.314 [Debug] [0] "依赖" "wine" "amd64" "" ""
2020-08-15, 21:20:10.314 [Debug] [0] check conflict for package "wine" "amd64"
2020-08-15, 21:20:10.314 [Debug] [0] check conflict for local installed package is ok.
2020-08-15, 21:20:10.314 [Debug] [0] check finished, conflict is satisfy: "wine" true
2020-08-15, 21:20:10.314 [Debug] [0] Check indirect dependencies for package "wine"
2020-08-15, 21:20:10.314 [Debug] [0] package with arch "wine64" "amd64" ""
2020-08-15, 21:20:10.314 [Debug] [0] "依赖" "wine64" "amd64" ">=" "4.0-2"
2020-08-15, 21:20:10.314 [Debug] [0] check conflict for package "wine64" "amd64"
2020-08-15, 21:20:10.314 [Debug] [0] check conflict for local installed package is ok.
2020-08-15, 21:20:10.314 [Debug] [0] check finished, conflict is satisfy: "wine64" true
2020-08-15, 21:20:10.314 [Debug] [0] Check indirect dependencies for package "wine64"
2020-08-15, 21:20:10.314 [Debug] [0] package with arch "libc6" "amd64" ""
2020-08-15, 21:20:10.314 [Debug] [0] "依赖" "libc6" "amd64" ">=" "2.17"
2020-08-15, 21:20:10.314 [Debug] [0] package with arch "libwine" "amd64" ""
2020-08-15, 21:20:10.314 [Debug] [0] "依赖" "libwine" "amd64" "=" "4.0-2"
2020-08-15, 21:20:10.320 [Debug] [0] check conflict for package "libwine" "amd64"
2020-08-15, 21:20:10.320 [Debug] [0] check conflict for local installed package is ok.
2020-08-15, 21:20:10.321 [Debug] [0] check finished, conflict is satisfy: "libwine" true
2020-08-15, 21:20:10.321 [Debug] [0] Check indirect dependencies for package "libwine"
2020-08-15, 21:20:10.321 [Debug] [0] package with arch "libc6" "amd64" ""
2020-08-15, 21:20:10.321 [Debug] [0] "依赖" "libc6" "amd64" ">=" "2.27"
2020-08-15, 21:20:10.321 [Debug] [0] package with arch "libfontconfig1" "amd64" ""
2020-08-15, 21:20:10.321 [Debug] [0] "依赖" "libfontconfig1" "amd64" ">=" "2.12.6"
2020-08-15, 21:20:10.321 [Debug] [0] package with arch "libfreetype6" "amd64" ""
2020-08-15, 21:20:10.321 [Debug] [0] "依赖" "libfreetype6" "amd64" ">=" "2.6.2"
2020-08-15, 21:20:10.321 [Debug] [0] package with arch "libncurses6" "amd64" ""
2020-08-15, 21:20:10.322 [Debug] [0] "依赖" "libncurses6" "amd64" ">=" "6"
2020-08-15, 21:20:10.322 [Debug] [0] package with arch "libtinfo6" "amd64" ""
2020-08-15, 21:20:10.322 [Debug] [0] "依赖" "libtinfo6" "amd64" ">=" "6"
2020-08-15, 21:20:10.322 [Debug] [0] package with arch "libasound2" "amd64" ""
2020-08-15, 21:20:10.322 [Debug] [0] "依赖" "libasound2" "amd64" ">=" "1.0.16"
2020-08-15, 21:20:10.322 [Debug] [0] package with arch "libgcc1" "amd64" ""
2020-08-15, 21:20:10.322 [Debug] [0] "依赖" "libgcc1" "amd64" ">=" "1:3.0"
2020-08-15, 21:20:10.322 [Debug] [0] package with arch "libglib2.0-0" "amd64" ""
2020-08-15, 21:20:10.322 [Debug] [0] "依赖" "libglib2.0-0" "amd64" ">=" "2.12.0"
2020-08-15, 21:20:10.322 [Debug] [0] package with arch "libgphoto2-6" "amd64" ""
2020-08-15, 21:20:10.322 [Debug] [0] "依赖" "libgphoto2-6" "amd64" ">=" "2.5.10"
2020-08-15, 21:20:10.322 [Debug] [0] package with arch "libgphoto2-port12" "amd64" ""
2020-08-15, 21:20:10.322 [Debug] [0] "依赖" "libgphoto2-port12" "amd64" ">=" "2.5.10"
2020-08-15, 21:20:10.322 [Debug] [0] package with arch "libgstreamer-plugins-base1.0-0" "amd64" ""
2020-08-15, 21:20:10.322 [Debug] [0] "依赖" "libgstreamer-plugins-base1.0-0" "amd64" ">=" "1.0.0"
2020-08-15, 21:20:10.322 [Debug] [0] package with arch "libgstreamer1.0-0" "amd64" ""
2020-08-15, 21:20:10.322 [Debug] [0] "依赖" "libgstreamer1.0-0" "amd64" ">=" "1.4.0"
2020-08-15, 21:20:10.322 [Debug] [0] package with arch "liblcms2-2" "amd64" ""
2020-08-15, 21:20:10.322 [Debug] [0] "依赖" "liblcms2-2" "amd64" ">=" "2.2+git20110628"
2020-08-15, 21:20:10.322 [Debug] [0] package with arch "libldap-2.4-2" "amd64" ""
2020-08-15, 21:20:10.322 [Debug] [0] "依赖" "libldap-2.4-2" "amd64" ">=" "2.4.7"
2020-08-15, 21:20:10.322 [Debug] [0] package with arch "libmpg123-0" "amd64" ""
2020-08-15, 21:20:10.322 [Debug] [0] "依赖" "libmpg123-0" "amd64" ">=" "1.6.2"
2020-08-15, 21:20:10.322 [Debug] [0] package with arch "libopenal1" "amd64" ""
2020-08-15, 21:20:10.322 [Debug] [0] "依赖" "libopenal1" "amd64" ">=" "1.14"
2020-08-15, 21:20:10.322 [Debug] [0] package with arch "libpcap0.8" "amd64" ""
2020-08-15, 21:20:10.323 [Debug] [0] "依赖" "libpcap0.8" "amd64" ">=" "0.9.8"
2020-08-15, 21:20:10.323 [Debug] [0] package with arch "libpulse0" "amd64" ""
2020-08-15, 21:20:10.323 [Debug] [0] "依赖" "libpulse0" "amd64" ">=" "0.99.1"
2020-08-15, 21:20:10.323 [Debug] [0] package with arch "libudev1" "amd64" ""
2020-08-15, 21:20:10.323 [Debug] [0] "依赖" "libudev1" "amd64" ">=" "183"
2020-08-15, 21:20:10.323 [Debug] [0] package with arch "libvkd3d1" "amd64" ""
2020-08-15, 21:20:10.323 [Debug] [0] "依赖" "libvkd3d1" "amd64" ">=" "1.0"
2020-08-15, 21:20:10.330 [Debug] [0] check conflict for package "libvkd3d1" "amd64"
2020-08-15, 21:20:10.331 [Debug] [0] check conflict for local installed package is ok.
2020-08-15, 21:20:10.331 [Debug] [0] check finished, conflict is satisfy: "libvkd3d1" true
2020-08-15, 21:20:10.331 [Debug] [0] Check indirect dependencies for package "libvkd3d1"
2020-08-15, 21:20:10.331 [Debug] [0] package with arch "libvulkan1" "amd64" ""
2020-08-15, 21:20:10.331 [Debug] [0] "依赖" "libvulkan1" "amd64" ">=" "1.1.70"
2020-08-15, 21:20:10.331 [Debug] [0] package with arch "libc6" "amd64" ""
2020-08-15, 21:20:10.331 [Debug] [0] "依赖" "libc6" "amd64" ">=" "2.14"
2020-08-15, 21:20:10.332 [Debug] [0] Check finshed for package "libvkd3d1"
2020-08-15, 21:20:10.332 [Debug] [0] package with arch "libx11-6" "amd64" ""
2020-08-15, 21:20:10.332 [Debug] [0] "依赖" "libx11-6" "amd64" "" ""
2020-08-15, 21:20:10.332 [Debug] [0] package with arch "libxext6" "amd64" ""
2020-08-15, 21:20:10.332 [Debug] [0] "依赖" "libxext6" "amd64" "" ""
2020-08-15, 21:20:10.332 [Debug] [0] package with arch "libxml2" "amd64" ""
2020-08-15, 21:20:10.332 [Debug] [0] "依赖" "libxml2" "amd64" ">=" "2.9.0"
2020-08-15, 21:20:10.332 [Debug] [0] package with arch "ocl-icd-libopencl1" "amd64" ""
2020-08-15, 21:20:10.332 [Debug] [0] "依赖" "ocl-icd-libopencl1" "amd64" "" ""
2020-08-15, 21:20:10.340 [Debug] [0] multi arch installed:  "ocl-icd-libopencl1" "2.2.12-2" "amd64" with "ocl-icd-libopencl1" "2.2.12-2" "i386"
2020-08-15, 21:20:10.340 [Debug] [0] package with arch "libopencl1" "amd64" ""
2020-08-15, 21:20:10.341 [Debug] [0] check virtual package providers for package "libopencl1" "amd64" ""
2020-08-15, 21:20:10.386 [Debug] [0] package with arch "ocl-icd-libopencl1" "amd64" ""
2020-08-15, 21:20:10.386 [Debug] [0] "依赖" "libopencl1" "amd64" "" ""
2020-08-15, 21:20:10.392 [Debug] [0] multi arch installed:  "ocl-icd-libopencl1" "2.2.12-2" "amd64" with "ocl-icd-libopencl1" "2.2.12-2" "i386"
2020-08-15, 21:20:10.392 [Debug] [0] depends break by direct depends "libwine" "amd64" "ocl-icd-libopencl1:amd64"
2020-08-15, 21:20:10.392 [Debug] [0] depends break by direct depends "wine64" "amd64" "libwine"
2020-08-15, 21:20:10.392 [Debug] [0] package with arch "wine32" "amd64" ""
2020-08-15, 21:20:10.392 [Debug] [0] check virtual package providers for package "wine32" "amd64" ""
2020-08-15, 21:20:10.430 [Debug] [0] package with arch "deepin-wine5-tools" "amd64" ""
2020-08-15, 21:20:10.430 [Debug] [0] check virtual package providers for package "deepin-wine5-tools" "amd64" ""
2020-08-15, 21:20:10.464 [Debug] [0] depends break because package "wine32" not available
2020-08-15, 21:20:10.464 [Debug] [0] depends break by direct depends "wine" "amd64" "wine32"
2020-08-15, 21:20:10.464 [Debug] [0] Check finished for package "net.winegame.client" 2
2020-08-15, 21:20:10.464 [Debug] [0] setCustomDPalette m_colorType: 4 
@SwimmingTiger
Copy link
Author

我觉得问题很可能是deepin-deb-installer没有正确处理i386架构的包。

2020-08-15, 21:20:10.464 [Debug] [0] depends break because package "wine32" not available
2020-08-15, 21:20:10.464 [Debug] [0] depends break by direct depends "wine" "amd64" "wine32"

这里的wine32是i386架构的,如果去amd64架构里查找,就会找不到。

@crazy-noray
Copy link

您好,我是软件包安装器的开发人员,此问题在新版本中已经修复,感谢您的反馈与建议。

@z966768 z966768 closed this as completed Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants