dpkg ugrade error - files in qtermwidget5-data also in old qtermwidget-l10n

Bug #1864170 reported by Rik Mills
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
qtermwidget (Ubuntu)
Fix Released
Critical
Unassigned
Focal
Fix Released
Critical
Unassigned

Bug Description

On upgrading the packages produced from qtermwidget source from 0.14.1-0ubuntu3 to the synced 0.14.1-2, there is a file overwrite error by dpkg.

Unpacking qtermwidget5-data (0.14.1-2) over (0.14.1-0ubuntu3) ...
dpkg: error processing archive /var/cache/apt/archives/qtermwidget5-data_0.14.1-2_all.deb (--unpack):
 trying to overwrite '/usr/share/qtermwidget5/translations/qtermwidget_ca.qm', which is also in package qtermwidget-l10n 0.14.1-0ubuntu3
Errors were encountered while processing:
 /var/cache/apt/archives/qtermwidget5-data_0.14.1-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

The sync from debian means the qtermwidget-l10n no longer exists, but as it is present on a system before upgrade containing files now in the new -data package, and there is nothing to tell dpkg that it needs to process removal of the l10n file before installing the new -data ones, the overwrite error can occur.

Changed in qtermwidget (Ubuntu):
status: New → Confirmed
Revision history for this message
Christopher Dudley (chrisdudley.inchrist) wrote :

sudo apt-get autoremove
[sudo] password for christopher:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libqtermwidget5-0 : Depends: qtermwidget5-data (= 0.14.1-2) but 0.14.1-0ubuntu3 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
christopher@christopher-laptop:~$ sudo apt --fix-broken install
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:
  fonts-hack-ttf libiptc0
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  qtermwidget5-data
The following packages will be upgraded:
  qtermwidget5-data
1 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
1 not fully installed or removed.
Need to get 0 B/19.8 kB of archives.
After this operation, 54.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 320560 files and directories currently installed.)
Preparing to unpack .../qtermwidget5-data_0.14.1-2_all.deb ...
Unpacking qtermwidget5-data (0.14.1-2) over (0.14.1-0ubuntu3) ...
dpkg: error processing archive /var/cache/apt/archives/qtermwidget5-data_0.14.1-
2_all.deb (--unpack):
 trying to overwrite '/usr/share/qtermwidget5/translations/qtermwidget_ca.qm', w
hich is also in package qtermwidget-l10n 0.14.1-0ubuntu3
Errors were encountered while processing:
 /var/cache/apt/archives/qtermwidget5-data_0.14.1-2_all.deb
libdvd-pkg: Package libdvdcss2-1.4.2-1 was removed, stop processing...
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
ԜаӀtеr Ⅼарсһуnѕkі (wxl) wrote :

Just to update with some observations:

 * This is in part due to the fact that vorlon sync'd qtermwidget 0.14.1-2, dropping all the Ubuntu changes.
 * Version 0.7.1-3 added a recommendation for qtermwidget-l10n and has never been dropped.
 * lxqt-l10n was deprecated in 2018, just before the 0.9.0 release of qtermwidget.
 * Version 0.14.0 moved translations from lxqt-l10n to qtermwidget.
 * Version 0.14.0-0ubuntu1 moved translations into a new qtermwidget-l10n package in the qtermwidget source package. (25 Jan 2019)
 * Version 0.14.0-1 moved translations into the existing qtermwidget-data binary package (27 Jan 2019)
 * lxqt-l10n was removed from Debian in February 2019.

So ultimately there was a difference in how Debian and Ubuntu dealt with this. And also, Debian is all messed up.

Rik Mills (rikmills)
Changed in qtermwidget (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Alf Gaida (agaida) wrote :

there was never a qtermwidged-l10n package - have a look at lxqt-l10n - there was a qterminal-l10n package, the widget package was planned. So the only thing that is messed up is Ubuntu - and the packaging is marked as $fooubuntu - but the recommendation to a package that not exist in debian is a nice catch - will fix it :)

Revision history for this message
Rik Mills (rikmills) wrote :

Yep, Ubuntu added a qterminal-l10n package in this upload, which never happened in Debian.

https://launchpad.net/ubuntu/+source/qtermwidget/0.14.0-0ubuntu1

Looks like that was done in Ubuntu shortly ahead of Debian packaging the same version, and Lubuntu and Debian chose different paths. Ubuntu put the new translation files in a new qterminal-l10n, while Debian/alf chose to put them in the -data package. Since that divergence, there had (until now) been no sync or merge from debian, so it never caused an issue.

Revision history for this message
Manfred Hampl (m-hampl) wrote :

What about adding

breaks qtermwidget-l10n
replaces qtermwidget-l10n

into the control file for qtermwidget5-data

Revision history for this message
Fritz Hudnut (este-el-paz) wrote :

Also ran into this problem this morning, kind of like "quicksand" in that it won't run "autoremove" and -f install also errors out . . . a conundrum within a conundrum . . . in Lu 20.04 . . .

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtermwidget - 0.14.1-3ubuntu1

---------------
qtermwidget (0.14.1-3ubuntu1) focal; urgency=medium

  * debian/control: Add Breaks/Replaces on qtermwidget-l10n to
    qtermwidget5-data. Fixes upgrade from 0.14.1-0ubuntu3 or earlier.
    (LP: #1864170)

 -- Rik Mills <email address hidden> Tue, 25 Feb 2020 16:24:33 +0000

Changed in qtermwidget (Ubuntu Focal):
status: Confirmed → Fix Released
Revision history for this message
Fritz Hudnut (este-el-paz) wrote :

Jut ran a basic apt update/dist-upgrade this AM in Lu 20.04 and it again errored out . . . .

[CODE] Reading package lists... Done
Building dependency tree
Reading state information... Done
300 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libqtermwidget5-0 : Depends: qtermwidget5-data (= 0.14.1-3) but 0.14.1-0ubuntu3 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). [/CODE]

Revision history for this message
Rik Mills (rikmills) wrote :

This is fixed for an normal upgrade, but if you have previously tried to upgrade (before the fix) and got into a broken state, then you will still need to do some apt/dpkg fix/force type foo to get out of that hole.

Revision history for this message
Fritz Hudnut (este-el-paz) wrote :

@Rik Mills:

Yep, after I ran that and posted it, because previously when I ran "--fix-broken" it didn't fix it so I posted the data . . . I then right-clicked on the "!" applet and "launch package manager" and this time it showed the broken package as being able to "upgrade" . . . so I ran that . . . had some stuff to do, logged out. When I came back I couldn't log back in, went to TTY and ran the fresh upgrade and back into the GUI, seems like we're past this hiccough in the system. : - )

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.