Comment 0 for bug 1969917

Revision history for this message
maznio (maznio-gmail) wrote :

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)