$ LANG=C sudo apt-get install -f
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:
linux-headers-3.16.0-60 linux-headers-3.16.0-60-generic
linux-image-3.16.0-60-generic linux-image-extra-3.16.0-60-generic
linux-signed-image-3.16.0-60-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libqtcore4
Suggested packages:
libicu48
The following NEW packages will be installed:
libqtcore4
0 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
124 not fully installed or removed.
Need to get 0 B/1 555 kB of archives.
After this operation, 5 174 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 203111 files and directories currently installed.)
Preparing to unpack .../libqtcore4_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4.1_amd64.deb ...
Unpacking libqtcore4:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1) ...
dpkg: error processing archive /var/cache/apt/archives/libqtcore4_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4.1_amd64.deb (--unpack):
trying to overwrite shared '/etc/xdg/Trolltech.conf', which is different from other instances of package libqtcore4:amd64
Errors were encountered while processing:
/var/cache/apt/archives/libqtcore4_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Here is the log on Xubuntu 14.04.4 :
$ LANG=C sudo apt-get install -f headers- 3.16.0- 60 linux-headers- 3.16.0- 60-generic image-3. 16.0-60- generic linux-image- extra-3. 16.0-60- generic signed- image-3. 16.0-60- generic 4%3a4.8. 5+git192- g085f851+ dfsg-2ubuntu4. 1_amd64. deb ... 5+git192- g085f851+ dfsg-2ubuntu4. 1) ... apt/archives/ libqtcore4_ 4%3a4.8. 5+git192- g085f851+ dfsg-2ubuntu4. 1_amd64. deb (--unpack): Trolltech. conf', which is different from other instances of package libqtcore4:amd64 apt/archives/ libqtcore4_ 4%3a4.8. 5+git192- g085f851+ dfsg-2ubuntu4. 1_amd64. deb
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:
linux-
linux-
linux-
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libqtcore4
Suggested packages:
libicu48
The following NEW packages will be installed:
libqtcore4
0 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
124 not fully installed or removed.
Need to get 0 B/1 555 kB of archives.
After this operation, 5 174 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 203111 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/
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)