Xubuntu 上 Audacity 未满足的依赖关系

Xubuntu 上 Audacity 未满足的依赖关系

我的机器正在运行 Xubuntu Xenial。我最近从软件中心安装了 Audacity。它安装并运行良好。然而,在机器的下一次更新中,我遇到了未满足的依赖关系问题。

我无法添加/删除任何东西。我的理解是我需要安装 libqtcore 版本:4:4.8.7+dfsg-5ubuntu2,但 APT 拒绝安装它。然后似乎文件“Trolltech.conf”发生了一些异常,但我不确定是什么。

发生了什么事?我该如何解决?

    The following packages have unmet dependencies.
    libqt4-declarative : Depends: libqtcore4 (= 4:4.8.7+dfsg-5ubuntu2) but it is not going to be installed
    libqt4-network : Depends: libqtcore4 (= 4:4.8.7+dfsg-5ubuntu2) but it is not going to be installed
    libqt4-script : Depends: libqtcore4 (= 4:4.8.7+dfsg-5ubuntu2) but it is not going to be installed
    libqt4-sql : Depends: libqtcore4 (= 4:4.8.7+dfsg-5ubuntu2) but it is not going to be installed
    libqt4-sql-mysql : Depends: libqtcore4 (= 4:4.8.7+dfsg-5ubuntu2) but it is not going to be installed
    libqt4-xml : Depends: libqtcore4 (= 4:4.8.7+dfsg-5ubuntu2) but it is not going to be installed
    libqt4-xmlpatterns : Depends: libqtcore4 (= 4:4.8.7+dfsg-5ubuntu2) but it is not going to be installed
    libqtdbus4 : Depends: libqtcore4 (= 4:4.8.7+dfsg-5ubuntu2) but it is not going to be installed
    libqtgui4 : Depends: libqtcore4 (= 4:4.8.7+dfsg-5ubuntu2) but it is not going to be installed
    libsuil-0-0 : Depends: libqtcore4 (>= 4:4.5.3) but it is not going to be installed
    qdbus : Depends: libqtcore4 (= 4:4.8.7+dfsg-5ubuntu2) but it is not going to be installed
    qt-at-spi : Depends: libqtcore4 (>= 4:4.8~) but it is not going to be installed

    paul@ubuntusonar:~$ sudo apt-get install -f
    [sudo] password for paul:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done 
    Correcting dependencies... Done
    The following packages were automatically installed and are no longer required:
    linux-headers-4.4.0-59 linux-headers-4.4.0-59-generic linux-headers-4.4.0-63 linux-headers-4.4.0-63-generic linux-image-4.4.0-59-generic linux-image-4.4.0-63-generic
    linux-image-extra-4.4.0-59-generic linux-image-extra-4.4.0-63-generic
    Use 'sudo apt autoremove' to remove them.
    The following additional packages will be installed:
     libqtcore4
    The following NEW packages will be installed
     libqtcore4
    0 to upgrade, 1 to newly install, 0 to remove and 30 not to upgrade.
    14 not fully installed or removed.
    Need to get 0 B/1,552 kB of archives.
    After this operation, 5,092 kB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    (Reading database ... 265038 files and directories currently installed.)
    Preparing to unpack .../libqtcore4_4%3a4.8.7+dfsg-5ubuntu2_amd64.deb ...
    Unpacking libqtcore4:amd64 (4:4.8.7+dfsg-5ubuntu2) ...
    dpkg: error processing archive 
      /var/cache/apt/archives/libqtcore4_4%3a4.8.7+dfsg-5ubuntu2_amd64.deb (--unpack):
    trying to overwrite shared '/etc/xdg/Trolltech.conf', which is different from other instances of package libqtcore4:amd64
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Processing triggers for libc-bin (2.23-0ubuntu7) ...
    Errors were encountered while processing:
      /var/cache/apt/archives/libqtcore4_4%3a4.8.7+dfsg-5ubuntu2_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

按照 GTRONICK 所说的去做,但也一定要先清除 audacitysudo apt purge audacity然后sudo apt upgrade再通过命令行重新安装 sudo apt install audacity

如果问题仍然存在,您可能需要考虑使用 audacity 的替代方案。Audour 和 Ocenaudio 都不错。

相关内容