2022-07-19 12:34:03 |
Dimitri John Ledkov |
description |
While trying to upgrade from impish to jammy I get:
Preparing to unpack .../swtpm_0.6.1-0ubuntu5_amd64.deb ...
Unpacking swtpm (0.6.1-0ubuntu5) over (0.6.1) ...
dpkg: error processing archive /var/cache/apt/archives/swtpm_0.6.1-0ubuntu5_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/swtpm/libswtpm_libtpms.so.0.0.0', which is also in package swtpm-libs:amd64 0.6.1
Errors were encountered while processing:
/var/cache/apt/archives/swtpm_0.6.1-0ubuntu5_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I had previously installed the swtpm package using the upstream source as the package was not available for Impish.
Best regards
Heinrich |
[Impact]
* swtpm did not use to exist in ubuntu
* prior to packaging in ubuntu, it was common to compile and use swtpm debian packaging as provided by upstream
* ubuntu packaging is incompatible with upstream provided one, and upgrades to ubuntu package do not work automatically, despite same naming for some of the packaging
[Test Plan]
* build and install swtpm & swtpm-libs deb packages from https://github.com/stefanberger/swtpm
* Attempt to upgrade to ubuntu's provided swtpm
* The upgrade should automatically break/replace and remove swtpm-libs package that is not used in Ubuntu, and conflicts with swtpm package.
[Where problems could occur]
* Inverse change may be required in upstream packaging, if they wish to support upgrading from Ubuntu packages to Upstream provided ones.
[Other Info]
* Original bug report
While trying to upgrade from impish to jammy I get:
Preparing to unpack .../swtpm_0.6.1-0ubuntu5_amd64.deb ...
Unpacking swtpm (0.6.1-0ubuntu5) over (0.6.1) ...
dpkg: error processing archive /var/cache/apt/archives/swtpm_0.6.1-0ubuntu5_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/swtpm/libswtpm_libtpms.so.0.0.0', which is also in package swtpm-libs:amd64 0.6.1
Errors were encountered while processing:
/var/cache/apt/archives/swtpm_0.6.1-0ubuntu5_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I had previously installed the swtpm package using the upstream source as the package was not available for Impish.
Best regards
Heinrich |
|