ubuntu 18.04 与 digikam 存在的问题

ubuntu 18.04 与 digikam 存在的问题

我刚刚升级到 18.04,正在尝试通过终端安装升级和/或新程序。我收到以下消息

digikam-private-libs : Depends: libkf5sane5 (>= 4.3.4) but it is not going to be installed
                        Depends: libqtav1 but it is not going to be installed
                        Depends: libqtavwidgets1 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
i have tried  sudo apt --fix broken install and get this message.dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../libqtav1_1.12.0+ds-4build3_amd64.deb ...
Unpacking libqtav1:amd64 (1.12.0+ds-4build3) ...
dpkg: error processing archive /var/cache/apt/archives/libqtav1_1.12.0+ds-4build3_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libQtAV.so.1', which is also in package libqtav:amd64 1.11.0~git170314-xenial~ppa1
Preparing to unpack .../libqtavwidgets1_1.12.0+ds-4build3_amd64.deb ...
Unpacking libqtavwidgets1:amd64 (1.12.0+ds-4build3) ...
dpkg: error processing archive /var/cache/apt/archives/libqtavwidgets1_1.12.0+ds-4build3_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libQtAVWidgets.so.1', which is also in package libqtavwidgets:amd64 1.11.0~git170314-xenial~ppa1
Errors were encountered while processing:
 /var/cache/apt/archives/libkf5sane5_17.12.3-0ubuntu1_amd64.deb
 /var/cache/apt/archives/libqtav1_1.12.0+ds-4build3_amd64.deb
 /var/cache/apt/archives/libqtavwidgets1_1.12.0+ds-4build3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我尝试过apt remove digikam,但apt purge digikam收到了这条消息

 Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 digikam-private-libs : Depends: libkf5sane5 (>= 4.3.4) but it is not going to be installed
                        Depends: libqtav1 but it is not going to be installed
                        Depends: libqtavwidgets1 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

我尝试安装 aptitude 并收到相同的消息。Digikam 在软件中心显示为未安装,当我按安装时收到错误消息。除此之外,一切似乎都运行良好。非常感谢,,,,,Jacques

答案1

两个版本(16.04 和 18.04)之间似乎存在打包错误。

所以我们可以强制安装这些包:

sudo dpkg -i --force-all /var/cache/apt/archives/libkf5sane5_17.12.3-0ubuntu1_amd64.deb
sudo dpkg -i --force-all /var/cache/apt/archives/libqtav1_1.12.0+ds-4build3_amd64.deb
sudo dpkg -i --force-all /var/cache/apt/archives/libqtavwidgets1_1.12.0+ds-4build3_amd64.deb

然后使用以下方法恢复软件包安装

sudo dpkg --configure -a
sudo apt-get install -f

确保升级所有软件包依赖项并重新安装软件包

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install --reinstall libkf5sane5 libqtav1 libqtavwidgets1

相关内容