dpkg ugrade error - files in qtermwidget5-data also in old qtermwidget-l10n
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/
trying to overwrite '/usr/share/
Errors were encountered while processing:
/var/cache/
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 |
Changed in qtermwidget (Ubuntu): | |
importance: | Undecided → Critical |
sudo apt-get autoremove christopher- laptop: ~$ sudo apt --fix-broken install 5-data_ 0.14.1- 2_all.deb ... apt/archives/ qtermwidget5- data_0. 14.1- qtermwidget5/ translations/ qtermwidget_ ca.qm', w apt/archives/ qtermwidget5- data_0. 14.1-2_ all.deb
[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@
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 .../qtermwidget
Unpacking qtermwidget5-data (0.14.1-2) over (0.14.1-0ubuntu3) ...
dpkg: error processing archive /var/cache/
2_all.deb (--unpack):
trying to overwrite '/usr/share/
hich is also in package qtermwidget-l10n 0.14.1-0ubuntu3
Errors were encountered while processing:
/var/cache/
libdvd-pkg: Package libdvdcss2-1.4.2-1 was removed, stop processing...
E: Sub-process /usr/bin/dpkg returned an error code (1)