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

ubuntu22.04 desktop libqt5svg5依赖问题 #375

Open
lilhammer111 opened this issue Jan 30, 2024 · 10 comments
Open

ubuntu22.04 desktop libqt5svg5依赖问题 #375

lilhammer111 opened this issue Jan 30, 2024 · 10 comments

Comments

@lilhammer111
Copy link

lilhammer@ubuntu2204:~/.local/share/icons/hicolor$ sudo apt install com.qq.weixin.deepin 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libqt5xdgiconloader3 : Depends: libqt5svg5 (>= 5.6.0~beta) but it is not going to be installed
                        Depends: qtbase-abi-5-15-3
E: Unable to correct problems, you have held broken packages.

我明明已经安装了这个libqt5svg5了为什么还是报错?

lilhammer@ubuntu2204:~/.local/share/icons/hicolor$ apt install -s libqt5svg5
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libqt5svg5 is already the newest version (5.15.3-1).
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
@SadanoGST
Copy link

一样的

@gordonppsuc
Copy link

同样存在这个问题,求解

@gordonppsuc
Copy link

而且好像建立在22.04上的发行版都存在这个问题,如果用aptitude处理,虽然微信装上了,但其他软件依赖被破坏。。比如搜狗拼音就受影响

@zq1997
Copy link
Owner

zq1997 commented Feb 6, 2024

22.04是的,deepin依赖了比较高版本的qt,需要手动安装
apt install -s libqt5svg5-s表示模拟,只是检查,并不是真正安装,如果想安装,去掉-s,但这样就要小心,如果提示会破坏系统依赖那就别继续

@zq1997
Copy link
Owner

zq1997 commented Feb 6, 2024

进一步看来应该是deepin和ubuntu很多版本不协调,我刚跟新24.04,也许可以试试下面的方案,

  1. 添加配置文件/etc/apt/preferences.d/deepin-wine.i-m.dev.pref以降低deepin源的权重
    Package: *
    Pin: release l=deepin-wine
    Pin-Priority: 499
    
  2. sudo apt update
  3. sudo apt install com.qq.weixin.deepin
  4. 按理上面可以正常用了,但我碰到了下面的问题
    The following packages have unmet dependencies:
     libsane : Depends: libsane-common (= 1.0.27.2-3.2+deepin) but 1.2.1-7 is to be installed
    E: Unable to correct problems, you have held broken packages.
    
    于是我强行降级sudo apt install -s libsane-common=1.0.27.2-3.2+deepin,就可以回到步骤3继续安装了

@YerongLi
Copy link

/etc/apt/preferences.d/deepin-wine.i-m.dev.pref 我加完这个文件直接就解决了

  1. /etc/apt/preferences.d/deepin-wine.i-m.dev.pref

@Frank-Z-Chen
Copy link

进一步看来应该是deepin和ubuntu很多版本不协调,我刚跟新24.04,也许可以试试下面的方案,

  1. 添加配置文件/etc/apt/preferences.d/deepin-wine.i-m.dev.pref以降低deepin源的权重

    Package: *
    Pin: release l=deepin-wine
    Pin-Priority: 499
    
  2. sudo apt update

  3. sudo apt install com.qq.weixin.deepin

  4. 按理上面可以正常用了,但我碰到了下面的问题

    The following packages have unmet dependencies:
     libsane : Depends: libsane-common (= 1.0.27.2-3.2+deepin) but 1.2.1-7 is to be installed
    E: Unable to correct problems, you have held broken packages.
    

    于是我强行降级sudo apt install -s libsane-common=1.0.27.2-3.2+deepin,就可以回到步骤3继续安装了

你是我的爹

zq1997 added a commit that referenced this issue Feb 12, 2024
解决Ubuntu 22.04以上libqt5svg5依赖问题,issue #375
@lilhammer111
Copy link
Author

行,直接win11,不多bb

@zq1997
Copy link
Owner

zq1997 commented Mar 1, 2024

新版本的setup已经自动添加了/etc/apt/preferences.d/deepin-wine.i-m.dev.pref,应该不存在这个问题。如果是直接配置的deepin-wine但是升级了Ubuntu,重新setup.sh也可以解决。

@HollowMan6
Copy link

于是我强行降级sudo apt install -s libsane-common=1.0.27.2-3.2+deepin,就可以回到步骤3继续安装了

对于我,强行降级libsane-common会导致强制卸载许多应用,所以我直接从下面的网址下载libsane deb包:

然后通过dpkg -i libsane_*.deb安装,这样可以绕过libsane-common版本冲突问题。

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

7 participants