更新 shotwell 时出现问题

更新 shotwell 时出现问题

Shotwell 的最新更新在更新系统时给我带来了麻烦。我尝试了一下sudo apt-get install -f,但收到以下错误消息:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  shotwell
The following packages will be upgraded:
  shotwell
1 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Need to get 0 B/7,511 kB of archives.
After this operation, 25.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 299243 files and directories currently installed.)
Preparing to unpack .../shotwell_0.18.1-1~trusty1_i386.deb ...
Unpacking shotwell (0.18.1-1~trusty1) over (0.18.0-0ubuntu4.1) ...
dpkg: error processing archive /var/cache/apt/archives/shotwell_0.18.1-1~trusty1_i386.deb (--unpack):
 trying to overwrite '/usr/share/shotwell/icons/shotwell-16.svg', which is also in package shotwell-common 0.18.0-0ubuntu4.2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for menu (2.1.46ubuntu1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/shotwell_0.18.1-1~trusty1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

有可能修复这个问题吗?

答案1

我在 Launchpad 上提交了问题并得到了答案,所以为了防止其他人遇到类似的问题,这里是我解决问题的方法:

sudo dpkg --force-all -i /var/cache/apt/archives/shotwell_0.18.1-1~trusty1_i386.deb

https://answers.launchpad.net/ubuntu/+source/qt4-x11/+question/252665

答案2

shotwell_0.18.1通过运行以下命令,我已成功安装:`

sudo apt-get remove --purge shotwell*
sudo apt-get install shotwell

相关内容