Public bug reported:

During installation of package ansible-core on Ubuntu 22.04 the
following error occurs:

...
Setting up ansible-core (2.12.0-1) ...                                          
                                                                      
[Errno 2] No such file or directory: 
'/usr/lib/python3.10/dist-packages/ansible/module_utils/ansible_release.py'dpkg:
 error processing package ansible
-core (--configure):                                                            
                                                                      
 installed ansible-core package post-installation script subprocess returned 
error exit status 1                                                      
Processing triggers for man-db (2.10.2-1) ...                                   
                                                                      
Errors were encountered while processing:                                       
                                                                      
 ansible-core                                                                   
                                                                      
E: Sub-process /usr/bin/dpkg returned an error code (1)

Installing package `ansible` (without `-core`) works.

Additional info:

$ lsb_release -rd
Description:    Ubuntu 22.04 LTS
Release:        22.04

$ apt-cache policy ansible-core
ansible-core:
  Installed: (none)
  Candidate: 2.12.0-1
  Version table:
     2.12.0-1 500
        500 http://ae.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: ansible-core 2.12.0-1
ProcVersionSignature: Ubuntu 5.15.0-25.25-generic 5.15.30
Uname: Linux 5.15.0-25-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: pass
Date: Fri Apr 22 14:32:17 2022
DuplicateSignature:
 package:ansible-core:2.12.0-1
 Setting up ansible-core (2.12.0-1) ...
 [Errno 2] No such file or directory: 
'/usr/lib/python3.10/dist-packages/ansible/module_utils/ansible_release.py'dpkg:
 error processing package ansible-core (--configure):
  installed ansible-core package post-installation script subprocess returned 
error exit status 1
ErrorMessage: installed ansible-core package post-installation script 
subprocess returned error exit status 1
InstallationDate: Installed on 2022-04-20 (1 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Beta amd64 (20220329.1)
PackageArchitecture: all
Python3Details: /usr/bin/python3.10, Python 3.10.4, python3-minimal, 
3.10.4-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2
 apt  2.4.5
SourcePackage: ansible-core
Title: package ansible-core 2.12.0-1 failed to install/upgrade: installed 
ansible-core package post-installation script subprocess returned error exit 
status 1
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ansible-core (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-package jammy need-duplicate-check

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

Title:
  package ansible-core 2.12.0-1 failed to install/upgrade: installed
  ansible-core package post-installation script subprocess returned
  error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ansible-core/+bug/1969917/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to