[Bug 1955114] Re: swtpm: upgrade to jammy fails

Dimitri John Ledkov 1955114 at bugs.launchpad.net
Tue Jul 19 12:34:03 UTC 2022


** Description changed:

+ [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
+  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
+  /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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to swtpm in Ubuntu.
https://bugs.launchpad.net/bugs/1955114

Title:
  swtpm: upgrade to jammy fails

Status in swtpm package in Ubuntu:
  New
Status in swtpm source package in Jammy:
  Triaged
Status in swtpm source package in Kinetic:
  New

Bug description:
  [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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/swtpm/+bug/1955114/+subscriptions




More information about the foundations-bugs mailing list