package ansible-core 2.12.0-1 failed to install/upgrade: installed ansible-core package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ansible-core (Ubuntu) |
Invalid
|
Undecided
|
Athos Ribeiro | ||
Jammy |
Fix Released
|
Undecided
|
Athos Ribeiro |
Bug Description
[Impact]
ansible-core installs a broken symlink pointing to
/usr/lib/
dh_python injects a postinst script that pre-compiles the .py files in the package. The presence of this broken symlink leads the postinst script to fail, leaving the package installation in a failed state.
[Test Plan]
Install the package and verify that the installation process completes successfully.
[Where problems could occur]
While there are no files under /usr/lib/python3.10 for this package, it does currently ship empty directories and broken symlinks. If, for some reason, a user is checking for the presence of any of those, their scripts/workflows could break and they´d need to perform their checks against the directory without the minor version (usr/lib/python3/).
Moreover, possible previous changes in the build dependencies may introduce unexpected changes within the built package. We would need to address any of those individually.
[Other Info]
Bileto ticket: https:/
PPA with test build: https:/
[Original report]
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/
-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://
ProblemType: Package
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)
Related branches
- git-ubuntu bot: Approve
- Sergio Durigan Junior (community): Approve
- Canonical Server Reporter: Pending requested
-
Diff: 44 lines (+11/-3)3 files modifieddebian/changelog (+7/-0)
debian/control (+3/-2)
debian/tests/unit (+1/-1)
tags: | removed: need-duplicate-check |
Changed in ansible-core (Ubuntu): | |
assignee: | nobody → Athos Ribeiro (athos-ribeiro) |
tags: | added: server-todo |
Changed in ansible-core (Ubuntu Jammy): | |
status: | New → Triaged |
assignee: | nobody → Athos Ribeiro (athos-ribeiro) |
Changed in ansible-core (Ubuntu): | |
status: | Confirmed → Invalid |
description: | updated |
Changed in ansible-core (Ubuntu Jammy): | |
status: | Triaged → In Progress |
Status changed to 'Confirmed' because the bug affects multiple users.