: Sub-process /usr/bin/dpkg returned an error code (1)

Bug #1462621 reported by James
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
qt4-x11 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After xubuntu standard update it failed with a libqtcore4 error
tried terminal sudo apt-get install -f
got another error

in synaptic Package Manager did a update

 I got this error :

(synaptic:3987): GLib-CRITICAL **: g_child_watch_add_full: assertion 'pid > 0' failed
(Reading database ... 893340 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) over (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
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)
A package failed to install. Trying to recover:

system still trying to update it seems like it installs the correct Package I think it's to do with the removal of the old that the problem comes in

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: libqtcore4 4:4.8.5+git192-g085f851+dfsg-2ubuntu4
ProcVersionSignature: Ubuntu 3.13.0-54.91-generic 3.13.11-ckt20
Uname: Linux 3.13.0-54-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
CurrentDesktop: XFCE
Date: Sat Jun 6 14:05:11 2015
InstallationDate: Installed on 2013-03-06 (822 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: qt4-x11
UpgradeStatus: Upgraded to trusty on 2014-05-16 (386 days ago)

Revision history for this message
James (jflight-bump) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qt4-x11 (Ubuntu):
status: New → Confirmed
Revision history for this message
draco (draco31-fr) wrote :

Hi,

Same problem today for me.
To solve this, I need to manually backup the file :
  sudo mv /etc/xdg/Trolltech.conf{,.old}
Then fix the update :
  sudo apt-get install -f

After this, the file is not created, so I don't understand why dpkg complains about the overwrite of the file.
If needed, you could rename the backup to restore the file :
  sudo mv /etc/xdg/Trolltech.conf{.old,}

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.