Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Adding repository
- #
- Ign:1 https://foremandirectlyurltogetsubscriptoin-managereasily/pulp/content/a/Library/custom/Ubuntu_24-04/apt_atix_de_stable stable InRelease
- Ign:2 https:/foremandirectlyurltogetsubscriptoin-managereasily/pulp/content/a/Library/custom/Ubuntu_24-04/noble noble InRelease
- Hit:3 https:/foremandirectlyurltogetsubscriptoin-managereasily/pulp/content/a/Library/custom/Ubuntu_24-04/apt_atix_de_stable stable Release
- Hit:4 https:/foremandirectlyurltogetsubscriptoin-managereasily/a/Library/custom/Ubuntu_24-04/noble noble Release
- Ign:5 https:/foremandirectlyurltogetsubscriptoin-managereasily/a/Library/custom/Ubuntu_24-04/apt_atix_de_stable stable Release.gpg
- Ign:6 https://foremandirectlyurltogetsubscriptoin-managereasily/pulp/content/a/Library/custom/Ubuntu_24-04/noble noble Release.gpg
- Reading package lists... Done
- #
- # Running registration
- #
- Debug-Hello
- + apt-get -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' install -y subscription-manager
- Reading package lists... Done
- Building dependency tree... Done
- Reading state information... Done
- The following additional packages will be installed:
- apt-transport-go-katello libfsverity0 liblua5.3-0 librpm9t64 librpmbuild9t64 librpmio9t64 librpmsign9t64 python-dmidecode-data python3-dateutil python3-decorator
- python3-dmidecode python3-iniparse python3-libxml2 python3-rpm python3-subscription-manager rpm-common virt-what
- Suggested packages:
- python3-subscription-manager-doc
- The following NEW packages will be installed:
- apt-transport-go-katello libfsverity0 liblua5.3-0 librpm9t64 librpmbuild9t64 librpmio9t64 librpmsign9t64 python-dmidecode-data python3-dateutil python3-decorator
- python3-dmidecode python3-iniparse python3-libxml2 python3-rpm python3-subscription-manager rpm-common subscription-manager virt-what
- 0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
- Need to get 0 B/3406 kB of archives.
- After this operation, 12.1 MB of additional disk space will be used.
- dpkg: error: need an action option
- Type dpkg --help for help about installing and deinstalling packages [*];
- Use 'apt' or 'aptitude' for user-friendly package management;
- Type dpkg -Dhelp for a list of dpkg debug flag values;
- Type dpkg --force-help for a list of forcing options;
- Type dpkg-deb --help for help about manipulating *.deb files;
- Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
- E: Sub-process /usr/bin/dpkg returned an error code (2)
- + echo Debug-Novars
- Debug-Novars
- + apt-get -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -y subscription-manager
- Reading package lists... Done
- Building dependency tree... Done
- Reading state information... Done
- The following additional packages will be installed:
- apt-transport-go-katello libfsverity0 liblua5.3-0 librpm9t64 librpmbuild9t64 librpmio9t64 librpmsign9t64 python-dmidecode-data python3-dateutil python3-decorator
- python3-dmidecode python3-iniparse python3-libxml2 python3-rpm python3-subscription-manager rpm-common virt-what
- Suggested packages:
- python3-subscription-manager-doc
- The following NEW packages will be installed:
- apt-transport-go-katello libfsverity0 liblua5.3-0 librpm9t64 librpmbuild9t64 librpmio9t64 librpmsign9t64 python-dmidecode-data python3-dateutil python3-decorator
- python3-dmidecode python3-iniparse python3-libxml2 python3-rpm python3-subscription-manager rpm-common subscription-manager virt-what
- 0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
- Need to get 0 B/3406 kB of archives.
- After this operation, 12.1 MB of additional disk space will be used.
- Selecting previously unselected package apt-transport-go-katello.
- (Reading database ... 128225 files and directories currently installed.)
- Preparing to unpack .../00-apt-transport-go-katello_0.1.0-1_amd64.deb ...
- Unpacking apt-transport-go-katello (0.1.0-1) ...
- Selecting previously unselected package libfsverity0:amd64.
- Preparing to unpack .../01-libfsverity0_1.5-1.1build3_amd64.deb ...
- Unpacking libfsverity0:amd64 (1.5-1.1build3) ...
- Selecting previously unselected package liblua5.3-0:amd64.
- Preparing to unpack .../02-liblua5.3-0_5.3.6-2build2_amd64.deb ...
- Unpacking liblua5.3-0:amd64 (5.3.6-2build2) ...
- Selecting previously unselected package librpmio9t64.
- Preparing to unpack .../03-librpmio9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
- Unpacking librpmio9t64 (4.18.2+dfsg-2.1build2) ...
- Selecting previously unselected package librpm9t64.
- Preparing to unpack .../04-librpm9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
- Unpacking librpm9t64 (4.18.2+dfsg-2.1build2) ...
- Selecting previously unselected package librpmbuild9t64.
- Preparing to unpack .../05-librpmbuild9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
- Unpacking librpmbuild9t64 (4.18.2+dfsg-2.1build2) ...
- Selecting previously unselected package librpmsign9t64.
- Preparing to unpack .../06-librpmsign9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
- Unpacking librpmsign9t64 (4.18.2+dfsg-2.1build2) ...
- Selecting previously unselected package python-dmidecode-data.
- Preparing to unpack .../07-python-dmidecode-data_3.12.3-2build1_all.deb ...
- Unpacking python-dmidecode-data (3.12.3-2build1) ...
- Selecting previously unselected package python3-dateutil.
- Preparing to unpack .../08-python3-dateutil_2.8.2-3ubuntu1_all.deb ...
- Unpacking python3-dateutil (2.8.2-3ubuntu1) ...
- Selecting previously unselected package python3-decorator.
- Preparing to unpack .../09-python3-decorator_5.1.1-5_all.deb ...
- Unpacking python3-decorator (5.1.1-5) ...
- Selecting previously unselected package python3-libxml2:amd64.
- Preparing to unpack .../10-python3-libxml2_2.9.14+dfsg-1.3ubuntu3_amd64.deb ...
- Unpacking python3-libxml2:amd64 (2.9.14+dfsg-1.3ubuntu3) ...
- Selecting previously unselected package python3-dmidecode.
- Preparing to unpack .../11-python3-dmidecode_3.12.3-2build1_amd64.deb ...
- Unpacking python3-dmidecode (3.12.3-2build1) ...
- Selecting previously unselected package python3-iniparse.
- Preparing to unpack .../12-python3-iniparse_0.5-2_all.deb ...
- Unpacking python3-iniparse (0.5-2) ...
- Selecting previously unselected package rpm-common.
- Preparing to unpack .../13-rpm-common_4.18.2+dfsg-2.1build2_amd64.deb ...
- Unpacking rpm-common (4.18.2+dfsg-2.1build2) ...
- Selecting previously unselected package python3-rpm.
- Preparing to unpack .../14-python3-rpm_4.18.2+dfsg-2.1build2_amd64.deb ...
- Unpacking python3-rpm (4.18.2+dfsg-2.1build2) ...
- Selecting previously unselected package virt-what.
- Preparing to unpack .../15-virt-what_1.25-2_amd64.deb ...
- Unpacking virt-what (1.25-2) ...
- Selecting previously unselected package python3-subscription-manager.
- Preparing to unpack .../16-python3-subscription-manager_1.30.5-2_amd64.deb ...
- Unpacking python3-subscription-manager (1.30.5-2) ...
- Selecting previously unselected package subscription-manager.
- Preparing to unpack .../17-subscription-manager_1.30.5-2_all.deb ...
- Unpacking subscription-manager (1.30.5-2) ...
- Setting up virt-what (1.25-2) ...
- Setting up python-dmidecode-data (3.12.3-2build1) ...
- Setting up apt-transport-go-katello (0.1.0-1) ...
- Setting up libfsverity0:amd64 (1.5-1.1build3) ...
- Setting up python3-libxml2:amd64 (2.9.14+dfsg-1.3ubuntu3) ...
- Setting up python3-decorator (5.1.1-5) ...
- Setting up python3-dmidecode (3.12.3-2build1) ...
- Setting up liblua5.3-0:amd64 (5.3.6-2build2) ...
- Setting up python3-dateutil (2.8.2-3ubuntu1) ...
- Setting up python3-iniparse (0.5-2) ...
- Setting up librpmio9t64 (4.18.2+dfsg-2.1build2) ...
- Setting up librpm9t64 (4.18.2+dfsg-2.1build2) ...
- Setting up librpmbuild9t64 (4.18.2+dfsg-2.1build2) ...
- Setting up rpm-common (4.18.2+dfsg-2.1build2) ...
- Setting up librpmsign9t64 (4.18.2+dfsg-2.1build2) ...
- Setting up python3-rpm (4.18.2+dfsg-2.1build2) ...
- Setting up python3-subscription-manager (1.30.5-2) ...
- Created symlink /etc/systemd/system/basic.target.wants/rhsm-facts.service -> /usr/lib/systemd/system/rhsm-facts.service.
- Created symlink /etc/systemd/system/basic.target.wants/rhsm.service -> /usr/lib/systemd/system/rhsm.service.
- Created symlink /etc/systemd/system/multi-user.target.wants/rhsmcertd.service -> /usr/lib/systemd/system/rhsmcertd.service.
- Setting up subscription-manager (1.30.5-2) ...
- Processing triggers for libc-bin (2.39-0ubuntu8.4) ...
- Processing triggers for man-db (2.12.0-4build2) ...
- Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
- Scanning processes...
- Scanning linux images...
- Running kernel seems to be up-to-date.
- No services need to be restarted.
- No containers need to be restarted.
- No user sessions are running outdated binaries.
- No VM guests are running outdated hypervisor (qemu) binaries on this host.
- + command -v subscription-manager
- + [ -x /usr/sbin/subscription-manager ]
- + subscription-manager unregister
- This system is currently not registered.
- + true
- + subscription-manager clean
- All local data removed
- + [ -f /etc/debian_version ]
- + KATELLO_SERVER_CA_CERT=/etc/rhsm/ca/katello-server-ca.pem
- + mkdir -p /etc/rhsm/ca
- + touch /etc/rhsm/ca/katello-server-ca.pem
- + chmod 644 /etc/rhsm/ca/katello-server-ca.pem
- + KATELLO_SERVER_CA_CERT=/etc/rhsm/ca/katello-server-ca.pem
- + [ -f /etc/rhsm/ca/katello-server-ca.pem ]
- + cat
- + [ -f /etc/debian_version ]
- + CA_TRUST_ANCHORS=/usr/local/share/ca-certificates/
- + cp /etc/rhsm/ca/katello-server-ca.pem /usr/local/share/ca-certificates/
- + [ -f /etc/debian_version ]
- + update-ca-certificates
- Updating certificates in /etc/ssl/certs...
- 0 added, 0 removed; done.
- Running hooks in /etc/ca-certificates/update.d...
- done.
- + command -v subscription-manager
- + [ -x /usr/sbin/subscription-manager ]
- + echo subscription-manager is already installed!
- subscription-manager is already installed!
- + apt-get -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -o APT::Get::Upgrade-Allow-New='true' upgrade -y subscription-manager
- + [ -f /etc/rhsm/rhsm.conf ]
- + test -f /etc/rhsm/rhsm.conf.bak
- + cp /etc/rhsm/rhsm.conf /etc/rhsm/rhsm.conf.bak
- + subscription-manager config --server.hostname=testmachine --server.port=443 --server.prefix=/rhsm --rhsm.repo_ca_cert=/etc/rhsm/ca/katello-server-ca.pem --rhsm.baseurl=https://foreman/pulp/content
- + subscription-manager config --rhsm.package_profile_on_trans=1
- + subscription-manager config --rhsm.report_package_profile=1
- + grep --quiet full_refresh_on_yum /etc/rhsm/rhsm.conf
- + sed -i s/full_refresh_on_yum\s*=.*$/full_refresh_on_yum = 1/g /etc/rhsm/rhsm.conf
- + systemctl try-restart yggdrasil
- + true
- + subscription-manager register --force --org=org--activationkey=Ubuntu_24-04
- The system has been registered with ID: a-c-d-b-e
- The registered system name is: vcdubt001.virtualcenter.lan
- + + bashregister_katello_host
- + subscription-manager identity
- + grep --max-count 1 --only-matching \([[:xdigit:]]\{8\}-[[:xdigit:]]\{4\}-[[:xdigit:]]\{4\}-[[:xdigit:]]\{4\}-[[:xdigit:]]\{12\}\)
- + UUID=08b7e36f-1148-4db7-b58c-3d98525c6cae
- + curl --silent --show-error https://vcdfor001.virtualcenter.lan/register --cacert /etc/rhsm/ca/katello-server-ca.pem --request POST --header Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.ehum.secret-baaa--data uuid=a-c-b-b58c-d--data host[build]=false --data host[organization_id]=1 --data host[location_id]=2 --data packages=subscription-manager katello-upload-profile katello-host-tools-tracer Today-I-Patched-Package --data update_packages=false
- ERROR: unauthorized
- JWT SSO: Expired JWT token.
- + cleanup_and_exit
- + rm -f /tmp/tmp.36cBrbo2Um
- + exit
- root@testmachine:/usr/scripts# echo $?
- 0
Advertisement
Add Comment
Please, Sign In to add comment