我正在尝试更新我的版本的Shotwell。我的Ubuntu系统是。我得到了下面的错误。有人能告诉我怎么解决吗?我尝试过几种不同的方法,所以现在寻求帮助。
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)有什么建议吗?
发布于 2014-01-15 13:26:39
在终端上试试这个命令,
sudo dpkg -i --force-overwrite /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb当某个文件在更新版本中从一个包移动到另一个包时,会发生此错误。
在您的示例中,dpkg试图将shotwell.svg文件从/var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb提取到/usr/share/icons/hicolor/24x24/apps/ directory.But,在directory.So中已经出现了一个shotwell.svg文件,发生了这种错误。
通过运行dpkg -i --force-overwrite命令,先前定位的文件shotwell.svg在安装时被来自/var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb的文件强制覆盖。
这是来源。
发布于 2014-01-16 14:48:18
试试这些命令,
sudo dpkg -r shotwell-common
sudo apt-get install shotwell在删除apt-get包的情况下,shotwell-common可能工作也可能不起作用。
https://askubuntu.com/questions/405862
复制相似问题