Can't install subscription Manager software into Ubuntu20.04LTS

Problem:
can’t install subscription Manager software into Ubuntu20.04LTS
Expected outcome:
attached ubuntu 20.04 with foreman

Foreman and Proxy versions:
3.3.0
Foreman and Proxy plugin versions:
foreman-tasks 6.0.0
foreman_remote_execution 7.1.1
katello 4.5.0
Distribution and version:
Ubuntu 20.04.1 LTS

Other relevant data:

root@ubuntu-pxe:~# uname -a
Linux ubuntu-pxe.au.tr.io 5.4.0-137-generic #154-Ubuntu SMP Thu Jan 5 17:03:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu-pxe:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION=“Ubuntu 20.04.5 LTS”
root@ubuntu-pxe:~# dpkg-query -l | grep python
rc libpython3.8-minimal:amd64 3.8.10-0ubuntu1~20.04.6 amd64 Minimal subset of the Python language (version 3.8)
rc python3 3.8.2-0ubuntu2 amd64 interactive high-level object-oriented language (default python3 version)
rc python3-json-pointer 2.0-0ubuntu1 all resolve JSON pointers - Python 3.x
rc python3-jsonpatch 1.23-3 all library to apply JSON patches - Python 3.x
rc python3-jsonschema 3.2.0-0ubuntu2 all An(other) implementation of JSON Schema (Draft 3 and 4) - Python 3.x
rc python3-twisted 18.9.0-11ubuntu0.20.04.2 all Event-based framework for internet applications
rc python3.8-minimal 3.8.10-0ubuntu1~20.04.6 amd64 Minimal subset of the Python language (version 3.8)
root@ubuntu-pxe:~# apt-get install subscription-manager
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
subscription-manager : Depends: python3-subscription-manager but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@ubuntu-pxe:~# apt-get install python3-subscription-manager
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
python3-subscription-manager : Depends: python3 (>= 3.10~) but 3.8.2-0ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
root@ubuntu-pxe:~#

Added into /etc/apt/sources.list :

deb Index of /Ubuntu22LTS stable main

Hey @imtiaz

It looks like you’re trying to install subscription-manager for Ubuntu 22.04 on Ubuntu 20.04. Using http://apt.atix.de/Ubuntu20LTS/ should fix this issue.

2 Likes