zq1997 / deepin-wine

【deepin源移植】Debian/Ubuntu上的QQ/微信快速安装方式
https://deepin-wine.i-m.dev
GNU General Public License v3.0
5.06k stars 384 forks source link

ubuntu22.04 desktop libqt5svg5依赖问题 #375

Open lilhammer111 opened 5 months ago

lilhammer111 commented 5 months ago
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 commented 5 months ago

一样的

gordonppsuc commented 5 months ago

同样存在这个问题,求解

gordonppsuc commented 5 months ago

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

zq1997 commented 4 months ago

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

zq1997 commented 4 months ago

进一步看来应该是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 commented 4 months ago

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

  1. /etc/apt/preferences.d/deepin-wine.i-m.dev.pref
Frank-Z-Chen commented 4 months ago

进一步看来应该是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继续安装了

你是我的爹

lilhammer111 commented 4 months ago

行,直接win11,不多bb

zq1997 commented 4 months ago

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

HollowMan6 commented 1 month ago

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

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

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