[Bug 2049534] Re: package python3-jwt 2.3.0-1ubuntu0.2 failed to install/upgrade: installed python3-jwt package post-installation script subprocess returned error exit status 1

Athos Ribeiro 2049534 at bugs.launchpad.net
Wed Jan 17 13:43:27 UTC 2024


Hi,

Thanks for reporting this issue.

It seems that, during the postinst script, when generating the pyc files
for the package, the installation process exited with an error because
one of the directories in the package path at /usr/lib/python3/dist-
packages/jwt does not exist.

Have you manually removed one of those directories in the path? Can you
confirm they exist in your system?

Since this seems to be an issue with your system, I am marking this as
invalid for now. Please, reset the status of this bug back to new if you
believe this is indeed a bug and provide additional information on why
you believe it is a bug.


** Changed in: pyjwt (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to pyjwt in Ubuntu.
https://bugs.launchpad.net/bugs/2049534

Title:
  package python3-jwt 2.3.0-1ubuntu0.2 failed to install/upgrade:
  installed python3-jwt package post-installation script subprocess
  returned error exit status 1

Status in pyjwt package in Ubuntu:
  Invalid

Bug description:
  when performing full os latest upgrade

  ProblemType: Package
  DistroRelease: Ubuntu 22.04
  Package: python3-jwt 2.3.0-1ubuntu0.2
  ProcVersionSignature: Ubuntu 5.15.0-1053.61~20.04.1-azure 5.15.131
  Uname: Linux 5.15.0-1053-azure x86_64
  NonfreeKernelModules: aufs
  ApportVersion: 2.20.11-0ubuntu82.5
  Architecture: amd64
  AzureImageoffer: UbuntuServer
  AzureImagepublisher: Canonical
  AzureImagesku: 18_04-lts-gen2
  AzureImageversion: 18.04.202207120
  AzureVmsize: Standard_B2ms
  CasperMD5CheckResult: unknown
  CloudArchitecture: x86_64
  CloudID: azure
  CloudName: azure
  CloudPlatform: azure
  CloudRegion: westeurope
  CloudSubPlatform: seed-dir (/var/lib/waagent)
  Date: Tue Jan 16 18:31:28 2024
  DuplicateSignature:
   package:python3-jwt:2.3.0-1ubuntu0.2
   Setting up python3-jwt (2.3.0-1ubuntu0.2) ...
   E: py3compile:212: cannot create directory /usr/lib/python3/dist-packages/jwt/__pycache__: FileNotFoundError(2, 'No such file or directory')
   [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/jwt/algorithms.py'dpkg: error processing package python3-jwt (--configure):
    installed python3-jwt package post-installation script subprocess returned error exit status 1
  ErrorMessage: installed python3-jwt package post-installation script subprocess returned error exit status 1
  PackageArchitecture: all
  Python3Details: /usr/bin/python3.10, Python 3.10.12, python3-minimal, 3.10.6-1~22.04
  PythonDetails: N/A
  RebootRequiredPkgs: Error: path contained symlinks.
  RelatedPackageVersions:
   dpkg 1.21.1ubuntu2.2
   apt  2.4.11
  SourcePackage: pyjwt
  Title: package python3-jwt 2.3.0-1ubuntu0.2 failed to install/upgrade: installed python3-jwt package post-installation script subprocess returned error exit status 1
  UpgradeStatus: Upgraded to jammy on 2024-01-16 (0 days ago)

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




More information about the Ubuntu-openstack-bugs mailing list