package libqtcore4 (not installed) failed to install/upgrade: trying to overwrite shared '/etc/xdg/Trolltech.conf', which is different from other instances of package libqtcore4:amd64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qt4-x11 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I was trying to install fbreader on my ubuntu-gnome 17.04
sudo apt-get install fbreader
Reading package lists... Done
Building dependency tree
Reading state information... Done
fbreader is already the newest version (0.99.4-1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
fbreader : Depends: libqtcore4 (>= 4:4.7.0~beta1) but it is not going to be installed
libqt4-declarative : Depends: libqtcore4 (= 4:4.8.7+
libqt4-network : Depends: libqtcore4 (= 4:4.8.7+
libqt4-script : Depends: libqtcore4 (= 4:4.8.7+
libqt4-sql : Depends: libqtcore4 (= 4:4.8.7+
libqt4-sql-mysql : Depends: libqtcore4 (= 4:4.8.7+
libqt4-xml : Depends: libqtcore4 (= 4:4.8.7+
libqt4-xmlpatterns : Depends: libqtcore4 (= 4:4.8.7+
libqtdbus4 : Depends: libqtcore4 (= 4:4.8.7+
libqtgui4 : Depends: libqtcore4 (= 4:4.8.7+
libzlui-qt4 : Depends: libqtcore4 (>= 4:4.7.0~beta1) but it is not going to be installed
qdbus : Depends: libqtcore4 (= 4:4.8.7+
qt-at-spi : Depends: libqtcore4 (>= 4:4.8~) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
I had tried
sudo apt --fix-broken install
output was
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:
libzlcore-data libzlcore0.13 libzltext-data libzltext0.13 libzlui-qt4
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libqtcore4
Suggested packages:
libicu55
The following NEW packages will be installed:
libqtcore4
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
14 not fully installed or removed.
Need to get 0 B/1,552 kB of archives.
After this operation, 5,084 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 158925 files and directories currently installed.)
Preparing to unpack .../libqtcore4_
Unpacking libqtcore4:amd64 (4:4.8.
dpkg: error processing archive /var/cache/
trying to overwrite shared '/etc/xdg/
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 17.04
Package: libqtcore4 (not installed)
ProcVersionSign
Uname: Linux 4.10.0-19-generic x86_64
ApportVersion: 2.20.4-0ubuntu4
AptOrdering:
libqtcore4:amd64: Install
NULL: ConfigurePending
Architecture: amd64
Date: Mon Apr 24 07:44:46 2017
DpkgHistoryLog:
Start-Date: 2017-04-24 07:44:45
Commandline: apt --fix-broken install
Requested-By: sabin (1000)
Install: libqtcore4:amd64 (4:4.8.
DpkgTerminalLog:
Preparing to unpack .../libqtcore4_
Unpacking libqtcore4:amd64 (4:4.8.
[1mdpkg:[0m error processing archive /var/cache/
trying to overwrite shared '/etc/xdg/
ErrorMessage: trying to overwrite shared '/etc/xdg/
RelatedPackageV
dpkg 1.18.10ubuntu2
apt 1.4
SourcePackage: qt4-x11
Title: package libqtcore4 (not installed) failed to install/upgrade: trying to overwrite shared '/etc/xdg/
UpgradeStatus: No upgrade log present (probably fresh install)