Após a reinicialização, tudo funcionou novamente.
Depois de atualizar de 14 para 16, estou recebendo isso:
Do you want to continue? [Y/n]
Selecting previously unselected package libqtcore4:amd64.
(Reading database ... 282007 files and directories currently installed.)
Preparing to unpack .../libqtcore4_4%3a4.8.7+dfsg-5ubuntu2_amd64.deb ...
Unpacking libqtcore4:amd64 (4:4.8.7+dfsg-5ubuntu2) ...
dpkg: error processing archive /var/cache/apt/archives/libqtcore4_4%3a4.8.7+dfsg-5ubuntu2_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)
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
/var/cache/apt/archives/libqtcore4_4%3a4.8.7+dfsg-5ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Tentando remover os resultados do pacote deb:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/libqtcore4_4%3a4.8.7+dfsg-5ubuntu2_amd64.deb
(Reading database ... 282007 files and directories currently installed.)
Preparing to unpack .../libqtcore4_4%3a4.8.7+dfsg-5ubuntu2_amd64.deb ...
Unpacking libqtcore4:amd64 (4:4.8.7+dfsg-5ubuntu2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: trying to overwrite shared '/etc/xdg/Trolltech.conf', which is different from other instances of package libqtcore4:amd64
dpkg: dependency problems prevent configuration of libqtcore4:amd64:
libqtcore4:amd64 depends on qtcore4-l10n; however:
Package qtcore4-l10n is not configured yet.
dpkg: error processing package libqtcore4:amd64 (--install):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
libqtcore4:amd64
Após a reinicialização, tudo funcionou novamente.
Eu tenho tido um problema com isso por alguns meses e essa pequena linha consertou tudo. Eu gostaria de ter lido isso mais cedo!
sudo dpkg -i --force-overwrite /var/cache/apt/archives/libqtcore4_4%3a4.8.7+dfsg-5ubuntu2_amd64.deb
Existe um rastreador Ubuntu do Launchpad para este bug . Esta é a solução postada, que também funcionou para mim:
sudo mv /etc/xdg/Trolltech.conf /etc/xdg/Trolltech.conf.old
sudo apt-get -f install