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

Bug #1685682 reported by Sabin RanaBhat
6
This bug affects 1 person
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+dfsg-7ubuntu1) but it is not going to be installed
 libqt4-network : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
 libqt4-script : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
 libqt4-sql : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
 libqt4-sql-mysql : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
 libqt4-xml : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
 libqt4-xmlpatterns : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
 libqtdbus4 : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
 libqtgui4 : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
 libzlui-qt4 : Depends: libqtcore4 (>= 4:4.7.0~beta1) but it is not going to be installed
 qdbus : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
 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_4%3a4.8.7+dfsg-7ubuntu1_amd64.deb ...
Unpacking libqtcore4:amd64 (4:4.8.7+dfsg-7ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libqtcore4_4%3a4.8.7+dfsg-7ubuntu1_amd64.deb (--unpack):
 trying to overwrite shared '/etc/xdg/Trolltech.conf', which is different from other instances of package libqtcore4:amd64
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libqtcore4_4%3a4.8.7+dfsg-7ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 17.04
Package: libqtcore4 (not installed)
ProcVersionSignature: Ubuntu 4.10.0-19.21-generic 4.10.8
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.7+dfsg-7ubuntu1, automatic)
DpkgTerminalLog:
 Preparing to unpack .../libqtcore4_4%3a4.8.7+dfsg-7ubuntu1_amd64.deb ...
 Unpacking libqtcore4:amd64 (4:4.8.7+dfsg-7ubuntu1) ...
 dpkg: error processing archive /var/cache/apt/archives/libqtcore4_4%3a4.8.7+dfsg-7ubuntu1_amd64.deb (--unpack):
  trying to overwrite shared '/etc/xdg/Trolltech.conf', which is different from other instances of package libqtcore4:amd64
ErrorMessage: trying to overwrite shared '/etc/xdg/Trolltech.conf', which is different from other instances of package libqtcore4:amd64
RelatedPackageVersions:
 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/Trolltech.conf', which is different from other instances of package libqtcore4:amd64
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Sabin RanaBhat (binranabhat) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.