[Bug 2038648] Re: package sosreport 4.4-1ubuntu0.18.04.1 failed to install/upgrade: installed sosreport package post-installation script subprocess returned error exit status 1

Arif Ali 2038648 at bugs.launchpad.net
Tue May 14 17:36:12 UTC 2024


** Description changed:

+ [impact]
+ 
  This is what I got when I tried do-release-upgrade from 16.04 to 18.04
  
  Setting up sosreport (4.4-1ubuntu0.18.04.1) ...
    File "/usr/lib/python3/dist-packages/sos/report/plugins/gcp.py", line 99
      f"Failed to communicate with Metadata Server "
                                                   ^
  SyntaxError: invalid syntax
  
  dpkg: error processing package sosreport (--configure):
   installed sosreport package post-installation script subprocess returned error exit status 1
  Errors were encountered while processing:
   sosreport
  ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/sosreport.0.crash'
- Exception during pm.DoInstall():  E:Sub-process /usr/bin/dpkg returned an error code (1)
+ Exception during pm.DoInstall(): E:Sub-process /usr/bin/dpkg returned an error code (1)
  
  ProblemType: Package
  DistroRelease: Ubuntu 16.04
  Package: sosreport 4.4-1ubuntu0.18.04.1
  ProcVersionSignature: Ubuntu 4.15.0-213.224-generic 4.15.18
  Uname: Linux 4.15.0-213-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.29
  AptOrdering: NULL: ConfigurePending
  Architecture: amd64
- Date: Fri Oct  6 11:34:34 2023
+ Date: Fri Oct 6 11:34:34 2023
  Ec2AMI: ami-1e749f67
  Ec2AMIManifest: (unknown)
  Ec2AvailabilityZone: eu-west-1a
  Ec2InstanceType: m3.xlarge
  Ec2Kernel: unavailable
  Ec2Ramdisk: unavailable
  ErrorMessage: installed sosreport package post-installation script subprocess returned error exit status 1
  Python3Details: /usr/bin/python3.5, Python 3.5.2, python3-minimal, 3.5.1-3
  PythonDetails: /usr/bin/python2.7, Python 2.7.17, python-minimal, 2.7.15~rc1-1
  RelatedPackageVersions:
   dpkg 1.19.0.5ubuntu2.4
-  apt  1.6.17
+  apt 1.6.17
  SourcePackage: sosreport
  Title: package sosreport 4.4-1ubuntu0.18.04.1 failed to install/upgrade: installed sosreport package post-installation script subprocess returned error exit status 1
  UpgradeStatus: Upgraded to xenial on 2023-10-06 (0 days ago)
+ 
+ [ Test Plan ]
+ 
+ The bug is not easily reproducible, and has been tested by many people within
+ the team.
+ 
+ One process that has been a form of testing it so add the bionic repo to a
+ xenial machine, and try upgrading sosreport. When this is done we see the above
+ error. This is the only test scenario we have that are able to test.
+ 
+ Then we can enabled -proposed pocket or the PPA with the change, and do the same
+ upgrade, and we should not face the same problem.
+ 
+ [ Where problems could occur ]
+ 
+ * The package may not install
+ * The package may not have the right dependencies
+ * There could be other factors in play that the above that we may not have seen entirely
+ 
+ [ Other Info ]
+ 
+ The proposed fix adds "X-Python3-Version: >= 3.6" to the control file, and this
+ is based on the upstream dependency, and that 3.6 and above are supported. This
+ would be reflected in all packages for consistency. As per the discussion in
+ this bug the upstream project is due to move to Python 3.8 later in the year for
+ releases greater than 4.8.0. This line would follow suite in a future SRU when
+ we do a release from upstream SRU.

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2038648

Title:
  package sosreport 4.4-1ubuntu0.18.04.1 failed to install/upgrade:
  installed sosreport package post-installation script subprocess
  returned error exit status 1

Status in sosreport package in Ubuntu:
  Invalid
Status in sosreport source package in Bionic:
  In Progress

Bug description:
  [impact]

  This is what I got when I tried do-release-upgrade from 16.04 to 18.04

  Setting up sosreport (4.4-1ubuntu0.18.04.1) ...
    File "/usr/lib/python3/dist-packages/sos/report/plugins/gcp.py", line 99
      f"Failed to communicate with Metadata Server "
                                                   ^
  SyntaxError: invalid syntax

  dpkg: error processing package sosreport (--configure):
   installed sosreport package post-installation script subprocess returned error exit status 1
  Errors were encountered while processing:
   sosreport
  ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/sosreport.0.crash'
  Exception during pm.DoInstall(): E:Sub-process /usr/bin/dpkg returned an error code (1)

  ProblemType: Package
  DistroRelease: Ubuntu 16.04
  Package: sosreport 4.4-1ubuntu0.18.04.1
  ProcVersionSignature: Ubuntu 4.15.0-213.224-generic 4.15.18
  Uname: Linux 4.15.0-213-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.29
  AptOrdering: NULL: ConfigurePending
  Architecture: amd64
  Date: Fri Oct 6 11:34:34 2023
  Ec2AMI: ami-1e749f67
  Ec2AMIManifest: (unknown)
  Ec2AvailabilityZone: eu-west-1a
  Ec2InstanceType: m3.xlarge
  Ec2Kernel: unavailable
  Ec2Ramdisk: unavailable
  ErrorMessage: installed sosreport package post-installation script subprocess returned error exit status 1
  Python3Details: /usr/bin/python3.5, Python 3.5.2, python3-minimal, 3.5.1-3
  PythonDetails: /usr/bin/python2.7, Python 2.7.17, python-minimal, 2.7.15~rc1-1
  RelatedPackageVersions:
   dpkg 1.19.0.5ubuntu2.4
   apt 1.6.17
  SourcePackage: sosreport
  Title: package sosreport 4.4-1ubuntu0.18.04.1 failed to install/upgrade: installed sosreport package post-installation script subprocess returned error exit status 1
  UpgradeStatus: Upgraded to xenial on 2023-10-06 (0 days ago)

  [ Test Plan ]

  The bug is not easily reproducible, and has been tested by many people within
  the team.

  One process that has been a form of testing it so add the bionic repo to a
  xenial machine, and try upgrading sosreport. When this is done we see the above
  error. This is the only test scenario we have that are able to test.

  Then we can enabled -proposed pocket or the PPA with the change, and do the same
  upgrade, and we should not face the same problem.

  [ Where problems could occur ]

  * The package may not install
  * The package may not have the right dependencies
  * There could be other factors in play that the above that we may not have seen entirely

  [ Other Info ]

  The proposed fix adds "X-Python3-Version: >= 3.6" to the control file, and this
  is based on the upstream dependency, and that 3.6 and above are supported. This
  would be reflected in all packages for consistency. As per the discussion in
  this bug the upstream project is due to move to Python 3.8 later in the year for
  releases greater than 4.8.0. This line would follow suite in a future SRU when
  we do a release from upstream SRU.

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




More information about the Ubuntu-sponsors mailing list