# Ansible builder fails due to RPM package

**URL:** <https://forum.ansible.com/t/ansible-builder-fails-due-to-rpm-package/43113>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [June 2, 2025, 12:03pm UTC](https://forum.ansible.com/t/ansible-builder-fails-due-to-rpm-package/43113 "2025-06-02T12:03:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorgenspange](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jorgenspange/32/9667_2.png) [@jorgenspange](https://forum.ansible.com/u/jorgenspange)\
**Post date:** [June 2, 2025, 12:03pm UTC](https://forum.ansible.com/t/ansible-builder-fails-due-to-rpm-package/43113/1 "2025-06-02T12:03:13Z")

</div>

While migrating from aap24/rhel8minimal to aap25/rhel8minimal I am having trouble with the build failing due to an RPM package which is already installed:

```auto
Running command:
  podman build -f context/Containerfile -t ansible-execution-env:latest context
...showing last 20 lines of output...
Downloading ttp-0.9.5-py2.py3-none-any.whl (85 kB)
Downloading netaddr-1.3.0-py3-none-any.whl (2.3 MB)
Downloading ciscoisesdk-2.3.1-py3-none-any.whl (4.8 MB)
Downloading requests-2.32.3-py3-none-any.whl (64 kB)
Downloading fastjsonschema-2.21.1-py3-none-any.whl (23 kB)
Downloading requests_toolbelt-1.0.0-py2.py3-none-any.whl (54 kB)
Downloading scp-0.15.0-py2.py3-none-any.whl (8.8 kB)

Installing collected packages:
  textfsm, jxmlease, fastjsonschema, ttp, requests, protobuf,
  netaddr, grpcio, ansible-pylibssh, requests-toolbelt, ciscoisesdk, scp

Attempting uninstall: requests  
  Found existing installation: requests 2.31.0

x error: uninstall-no-record-file  
x Cannot uninstall requests 2.31.0  
╰─> The package's contents are unknown: no RECORD file was found for requests.

Hint: The package was installed by RPM. You should check if it can uninstall the package.

Error: error building at STEP "RUN /output/scripts/assemble":  
      error while running runtime: exit status 1

An error occurred (rc=125), see output line(s) above for details.

```

Has anyone experienced this kind of behaviour before and found a valid work-around?

Br  
Jørgen

---

<div class="post-metadata">

**Author:** ![jorgenspange](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jorgenspange/32/9667_2.png) [@jorgenspange](https://forum.ansible.com/u/jorgenspange)\
**Post date:** [June 2, 2025, 2:10pm UTC](https://forum.ansible.com/t/ansible-builder-fails-due-to-rpm-package/43113/2 "2025-06-02T14:10:16Z")

</div>

This is the collection that is causing the trouble:

> <https://github.com/CiscoISE/ansible-ise/blob/main/requirements.txt>

Shall something be done within cisco.ise collection to fix this?

---

<div class="post-metadata">

**Author:** ![KB-perByte](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kb-perbyte/32/541_2.png) [@KB-perByte](https://forum.ansible.com/u/KB-perByte)\
**Post date:** [June 9, 2025, 10:20am UTC](https://forum.ansible.com/t/ansible-builder-fails-due-to-rpm-package/43113/3 "2025-06-09T10:20:14Z")

</div>

requests==2.31.0 yes that, or the dependency asked in by the dependent collection can solve it.
