从 PPA 安装 shotwell 时“试图覆盖 shotwell-common 包中已有的文件”

Lio*_*air 12 dpkg

我正在尝试更新我的 Shotwell 版本。嗯,我的 Ubuntu 系统是。我收到以下 apt-get 错误。谁能告诉我如何解决它?我尝试了一些不同的事情,所以现在寻求帮助。

root@nathanr-XPS-630i:/home/nathanr# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  shotwell
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.8 MB of archives.
After this operation, 25.5 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ppa.launchpad.net/yorba/ppa/ubuntu/ saucy/main shotwell i386 0.15.1-1~saucy1 [10.8 MB]
Fetched 10.8 MB in 2min 16s (79.5 kB/s)                                                                                                                                                
(Reading database ... 316303 files and directories currently installed.)
Preparing to replace shotwell 0.15.0-0ubuntu1 (using .../shotwell_0.15.1-1~saucy1_i386.deb) ...
Unpacking replacement shotwell ...
dpkg: error processing /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb (--unpack):
 trying to overwrite '/usr/share/icons/hicolor/24x24/apps/shotwell.svg', which is also in package shotwell-common 0.15.0-0ubuntu1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
No apport report written because MaxReports is reached already                                                              Processing triggers for     software-center ...
INFO:softwarecenter.db.update:translation information in database is up-to-date
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
 /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)

有什么建议我需要做什么?

Avi*_*Raj 14

在终端上试试这个命令,

sudo dpkg -i --force-overwrite /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb
Run Code Online (Sandbox Code Playgroud)

当某个文件在较新版本中从一个包移动到另一个包时,会发生此错误。

在你的情况下dpkg试图提取shotwell.svg从文件/var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb/usr/share/icons/hicolor/24x24/apps/directory.But已经有一个shotwell.svg在directory.So这种类型的错误发生文件。

通过运行dpkg -i --force-overwrite命令,之前定位的文件shotwell.svg/var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb安装时的文件强行覆盖。

这是来源