[Bug 1730627] Re: xz compressed control.tar files not supported

Dan Streetman dan.streetman at canonical.com
Thu Mar 8 19:26:03 UTC 2018


verification that it fixes the problem for me, re: autopkgtest.  As that
was the same cause/problem as initial reporter's, I expect it should be
fixed for them as well.


ddstreet at thorin:~/bugs/lp1730627/verification$ pull-lp-source lsb-base trusty
pull-lp-source: Using source package 'lsb' for binary package 'lsb-base'
pull-lp-source: Found lsb 4.1+Debian11ubuntu6.2 in trusty
pull-lp-source: Good signature by Steve Langasek <steve.langasek at ubuntu.com> (0x568D30F321B2133D)
pull-lp-source: Downloading lsb_4.1+Debian11ubuntu6.2.tar.xz from archive.ubuntu.com (0.063 MiB)
dpkg-source: info: extracting lsb in lsb-4.1+Debian11ubuntu6.2     
dpkg-source: info: unpacking lsb_4.1+Debian11ubuntu6.2.tar.xz
ddstreet at thorin:~/bugs/lp1730627/verification$ autopkgtest -U lsb_4.1+Debian11ubuntu6.2.dsc -- lxd ubuntu-daily:trusty
autopkgtest [14:16:23]: version 5.1
autopkgtest [14:16:23]: host thorin.lan; command line: /usr/bin/autopkgtest -U lsb_4.1+Debian11ubuntu6.2.dsc -- lxd ubuntu-daily:trusty
...
(normal setup output)
...
autopkgtest [14:17:36]: testbed dpkg architecture: amd64
autopkgtest [14:17:38]: testbed running kernel: Linux 4.15.0-10-generic #11-Ubuntu SMP Tue Feb 13 18:23:35 UTC 2018
autopkgtest [14:17:38]: @@@@@@@@@@@@@@@@@@@@ source lsb_4.1+Debian11ubuntu6.2.dsc
autopkgtest [14:17:42]: ERROR: "dpkg --unpack /tmp/autopkgtest.Mrh8tN/autopkgtest-satdep.deb" failed with stderr "dpkg-deb: error: archive '/tmp/autopkgtest.Mrh8tN/autopkgtest-satdep.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /tmp/autopkgtest.Mrh8tN/autopkgtest-satdep.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /tmp/autopkgtest.Mrh8tN/autopkgtest-satdep.deb


using -proposed package:

ddstreet at thorin:~/bugs/lp1730627/verification$ autopkgtest --apt-pocket proposed=dpkg -U lsb_4.1+Debian11ubuntu6.2.dsc -- lxd ubuntu-daily:trusty
autopkgtest [14:19:13]: version 5.1
autopkgtest [14:19:13]: host thorin.lan; command line: /usr/bin/autopkgtest --apt-pocket proposed=dpkg -U lsb_4.1+Debian11ubuntu6.2.dsc -- lxd ubuntu-daily:trusty
...
(normal setup output)
...
Preparing to unpack .../dpkg-dev_1.17.5ubuntu5.8_all.deb ...
Unpacking dpkg-dev (1.17.5ubuntu5.8) ...
...
dpkg-buildpackage: binary only upload (no source included)
dpkg-source: info: using options from src/debian/source/options: --compression=xz
*                    SKIP no tests in this package
autopkgtest [14:24:14]: @@@@@@@@@@@@@@@@@@@@ summary
*                    SKIP no tests in this package


autopkgtest is able to continue with -proposed dpkg.

** Tags removed: verification-needed verification-needed-trusty
** Tags added: verification-done verification-done-trusty

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

Title:
  xz compressed control.tar files not supported

Status in dpkg package in Ubuntu:
  Fix Released
Status in dpkg source package in Precise:
  Won't Fix
Status in dpkg source package in Trusty:
  Fix Committed

Bug description:
  [impact]

  trusty dpkg fails when trying to extract a dpkg source package
  compressed using xz.  This breaks running autopkgtest from bionic with
  any and all trusty packages.

  [test case]

  on a bionic system, get any trusty source dpkg and run autopkgtest
  with it.  See comment 11 for an example.

  [regression potential]

  any changes to dpkg has the potential to break all package changes on
  the system, which obviously is a serious regression.  However, this
  specific change has been upstream for a very long time.  Any breakage
  would happen when dpkg is either building or extracting a deb.

  [other info]

  this affects debootstrap as well, as described in the original bug
  description:

  ---

  trusty's dpkg (1.17.5ubuntu5.7) cannot handle .deb files that contain
  control.tar files that are compressed using the xz compressor.

  Here's an example of such a case when trying to show the contents of a
  .deb file from bionic's repositories:

  dpkg-deb: error: archive './var/cache/apt/archives/ubuntu-
  minimal_1.406_amd64.deb' has premature member 'control.tar.xz' before
  'control.tar.gz', giving up

  This issue makes it currently impossible to create a bionic
  environment using debootstrap (currently from trusty-proposed).

  I have observed the issue on trusty, precisely on

  $ lsb_release -rd
  Description:	Ubuntu 14.04.5 LTS
  Release:	14.04

  using

  $ apt-cache policy dpkg
  dpkg:
    Installed: 1.17.5ubuntu5.7
    Candidate: 1.17.5ubuntu5.7
    Version table:
   *** 1.17.5ubuntu5.7 0
          500 mirror://mirrors.ubuntu.com/mirrors.txt/ trusty-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       1.17.5ubuntu5.6 0
          500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
       1.17.5ubuntu5 0
          500 mirror://mirrors.ubuntu.com/mirrors.txt/ trusty/main amd64 Packages

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



More information about the foundations-bugs mailing list