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)
During installation of package ansible-core on Ubuntu 22.04 the following error occurs:
... python3. 10/dist- packages/ ansible/ module_ utils/ansible_ release. py'dpkg: error processing package ansible
Setting up ansible-core (2.12.0-1) ...
[Errno 2] No such file or directory: '/usr/lib/
-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 ae.archive. ubuntu. com/ubuntu jammy/universe amd64 Packages
ansible-core:
Installed: (none)
Candidate: 2.12.0-1
Version table:
2.12.0-1 500
500 http://
ProblemType: Package ature: Ubuntu 5.15.0- 25.25-generic 5.15.30 dules: nvidia_modeset nvidia esult: pass ansible- core:2. 12.0-1 python3. 10/dist- packages/ ansible/ module_ utils/ansible_ release. py'dpkg: error processing package ansible-core (--configure): ture: all python3. 10, Python 3.10.4, python3-minimal, 3.10.4-0ubuntu2 ersions:
DistroRelease: Ubuntu 22.04
Package: ansible-core 2.12.0-1
ProcVersionSign
Uname: Linux 5.15.0-25-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckR
Date: Fri Apr 22 14:32:17 2022
DuplicateSignature:
package:
Setting up ansible-core (2.12.0-1) ...
[Errno 2] No such file or directory: '/usr/lib/
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)
PackageArchitec
Python3Details: /usr/bin/
PythonDetails: N/A
RelatedPackageV
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)