Incorrect package rename handling causes file overwrite errors on upgrade

Bug #1628781 reported by Timo Jyrinki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Terminal App
Fix Released
Undecided
Unassigned

Bug Description

I got a report from an user that he gets the following error messages when upgrading:

---
Preparing to unpack .../qml-module-pamauthentication0.1_0.7ubuntu1-0~215~ubuntu16.04.1_amd64.deb ...
Unpacking qml-module-pamauthentication0.1:amd64 (0.7ubuntu1-0~215~ubuntu16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/qml-module-pamauthentication0.1_0.7ubuntu1-0~215~ubuntu16.04.1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/qt5/qml/com/ubuntu/PamAuthentication/libPamAuthentication.so', which is also in package qtdeclarative5-pamauthentication0.1:amd64 0.7ubuntu1-0~211~ubuntu16.04.1
Selecting previously unselected package qml-module-qmltermwidget1.0:amd64.
Preparing to unpack .../qml-module-qmltermwidget1.0_0.7ubuntu1-0~215~ubuntu16.04.1_amd64.deb ...
Unpacking qml-module-qmltermwidget1.0:amd64 (0.7ubuntu1-0~215~ubuntu16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/qml-module-qmltermwidget1.0_0.7ubuntu1-0~215~ubuntu16.04.1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/qt5/qml/QMLTermWidget/kb-layouts/kb-layouts.qrc', which is also in package qtdeclarative5-qmltermwidget1.0:amd64 0.7ubuntu1-0~211~ubuntu16.04.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
---

When renaming packages like here from qtdeclarative5-qmltermwidget1.0 to qml-module-qmltermwidget1.0 and the pamauthentication package, you need to provide a transitional package with the old name that then is Breaks + Replaced by the new package name, see example at bug #1342031.

summary: - Incorrect transitional package handling causes file overwrite errors on
+ Incorrect package rename handling causes file overwrite errors on
upgrade
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-terminal-app at revision 217, scheduled for release in ubuntu-terminal-app, milestone 2014-12-11

Changed in ubuntu-terminal-app:
status: New → Fix Committed
Changed in ubuntu-terminal-app:
status: Fix Committed → Fix Released
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.