Guest User

Untitled

a guest
Jun 20th, 2025
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 11.35 KB | None | 0 0
  1. #
  2. # Adding repository
  3. #
  4. Ign:1 https://foremandirectlyurltogetsubscriptoin-managereasily/pulp/content/a/Library/custom/Ubuntu_24-04/apt_atix_de_stable stable InRelease
  5. Ign:2 https:/foremandirectlyurltogetsubscriptoin-managereasily/pulp/content/a/Library/custom/Ubuntu_24-04/noble noble InRelease
  6. Hit:3 https:/foremandirectlyurltogetsubscriptoin-managereasily/pulp/content/a/Library/custom/Ubuntu_24-04/apt_atix_de_stable stable Release
  7. Hit:4 https:/foremandirectlyurltogetsubscriptoin-managereasily/a/Library/custom/Ubuntu_24-04/noble noble Release
  8. Ign:5 https:/foremandirectlyurltogetsubscriptoin-managereasily/a/Library/custom/Ubuntu_24-04/apt_atix_de_stable stable Release.gpg
  9. Ign:6 https://foremandirectlyurltogetsubscriptoin-managereasily/pulp/content/a/Library/custom/Ubuntu_24-04/noble noble Release.gpg
  10. Reading package lists... Done
  11. #
  12. # Running registration
  13. #
  14. Debug-Hello
  15. + apt-get -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' install -y subscription-manager
  16. Reading package lists... Done
  17. Building dependency tree... Done
  18. Reading state information... Done
  19. The following additional packages will be installed:
  20.   apt-transport-go-katello libfsverity0 liblua5.3-0 librpm9t64 librpmbuild9t64 librpmio9t64 librpmsign9t64 python-dmidecode-data python3-dateutil python3-decorator
  21.   python3-dmidecode python3-iniparse python3-libxml2 python3-rpm python3-subscription-manager rpm-common virt-what
  22. Suggested packages:
  23.   python3-subscription-manager-doc
  24. The following NEW packages will be installed:
  25.   apt-transport-go-katello libfsverity0 liblua5.3-0 librpm9t64 librpmbuild9t64 librpmio9t64 librpmsign9t64 python-dmidecode-data python3-dateutil python3-decorator
  26.   python3-dmidecode python3-iniparse python3-libxml2 python3-rpm python3-subscription-manager rpm-common subscription-manager virt-what
  27. 0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
  28. Need to get 0 B/3406 kB of archives.
  29. After this operation, 12.1 MB of additional disk space will be used.
  30. dpkg: error: need an action option
  31.  
  32. Type dpkg --help for help about installing and deinstalling packages [*];
  33. Use 'apt' or 'aptitude' for user-friendly package management;
  34. Type dpkg -Dhelp for a list of dpkg debug flag values;
  35. Type dpkg --force-help for a list of forcing options;
  36. Type dpkg-deb --help for help about manipulating *.deb files;
  37.  
  38. Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
  39. E: Sub-process /usr/bin/dpkg returned an error code (2)
  40. + echo Debug-Novars
  41. Debug-Novars
  42. + apt-get -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -y subscription-manager
  43. Reading package lists... Done
  44. Building dependency tree... Done
  45. Reading state information... Done
  46. The following additional packages will be installed:
  47.   apt-transport-go-katello libfsverity0 liblua5.3-0 librpm9t64 librpmbuild9t64 librpmio9t64 librpmsign9t64 python-dmidecode-data python3-dateutil python3-decorator
  48.   python3-dmidecode python3-iniparse python3-libxml2 python3-rpm python3-subscription-manager rpm-common virt-what
  49. Suggested packages:
  50.   python3-subscription-manager-doc
  51. The following NEW packages will be installed:
  52.   apt-transport-go-katello libfsverity0 liblua5.3-0 librpm9t64 librpmbuild9t64 librpmio9t64 librpmsign9t64 python-dmidecode-data python3-dateutil python3-decorator
  53.   python3-dmidecode python3-iniparse python3-libxml2 python3-rpm python3-subscription-manager rpm-common subscription-manager virt-what
  54. 0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
  55. Need to get 0 B/3406 kB of archives.
  56. After this operation, 12.1 MB of additional disk space will be used.
  57. Selecting previously unselected package apt-transport-go-katello.
  58. (Reading database ... 128225 files and directories currently installed.)
  59. Preparing to unpack .../00-apt-transport-go-katello_0.1.0-1_amd64.deb ...
  60. Unpacking apt-transport-go-katello (0.1.0-1) ...
  61. Selecting previously unselected package libfsverity0:amd64.
  62. Preparing to unpack .../01-libfsverity0_1.5-1.1build3_amd64.deb ...
  63. Unpacking libfsverity0:amd64 (1.5-1.1build3) ...
  64. Selecting previously unselected package liblua5.3-0:amd64.
  65. Preparing to unpack .../02-liblua5.3-0_5.3.6-2build2_amd64.deb ...
  66. Unpacking liblua5.3-0:amd64 (5.3.6-2build2) ...
  67. Selecting previously unselected package librpmio9t64.
  68. Preparing to unpack .../03-librpmio9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
  69. Unpacking librpmio9t64 (4.18.2+dfsg-2.1build2) ...
  70. Selecting previously unselected package librpm9t64.
  71. Preparing to unpack .../04-librpm9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
  72. Unpacking librpm9t64 (4.18.2+dfsg-2.1build2) ...
  73. Selecting previously unselected package librpmbuild9t64.
  74. Preparing to unpack .../05-librpmbuild9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
  75. Unpacking librpmbuild9t64 (4.18.2+dfsg-2.1build2) ...
  76. Selecting previously unselected package librpmsign9t64.
  77. Preparing to unpack .../06-librpmsign9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
  78. Unpacking librpmsign9t64 (4.18.2+dfsg-2.1build2) ...
  79. Selecting previously unselected package python-dmidecode-data.
  80. Preparing to unpack .../07-python-dmidecode-data_3.12.3-2build1_all.deb ...
  81. Unpacking python-dmidecode-data (3.12.3-2build1) ...
  82. Selecting previously unselected package python3-dateutil.
  83. Preparing to unpack .../08-python3-dateutil_2.8.2-3ubuntu1_all.deb ...
  84. Unpacking python3-dateutil (2.8.2-3ubuntu1) ...
  85. Selecting previously unselected package python3-decorator.
  86. Preparing to unpack .../09-python3-decorator_5.1.1-5_all.deb ...
  87. Unpacking python3-decorator (5.1.1-5) ...
  88. Selecting previously unselected package python3-libxml2:amd64.
  89. Preparing to unpack .../10-python3-libxml2_2.9.14+dfsg-1.3ubuntu3_amd64.deb ...
  90. Unpacking python3-libxml2:amd64 (2.9.14+dfsg-1.3ubuntu3) ...
  91. Selecting previously unselected package python3-dmidecode.
  92. Preparing to unpack .../11-python3-dmidecode_3.12.3-2build1_amd64.deb ...
  93. Unpacking python3-dmidecode (3.12.3-2build1) ...
  94. Selecting previously unselected package python3-iniparse.
  95. Preparing to unpack .../12-python3-iniparse_0.5-2_all.deb ...
  96. Unpacking python3-iniparse (0.5-2) ...
  97. Selecting previously unselected package rpm-common.
  98. Preparing to unpack .../13-rpm-common_4.18.2+dfsg-2.1build2_amd64.deb ...
  99. Unpacking rpm-common (4.18.2+dfsg-2.1build2) ...
  100. Selecting previously unselected package python3-rpm.
  101. Preparing to unpack .../14-python3-rpm_4.18.2+dfsg-2.1build2_amd64.deb ...
  102. Unpacking python3-rpm (4.18.2+dfsg-2.1build2) ...
  103. Selecting previously unselected package virt-what.
  104. Preparing to unpack .../15-virt-what_1.25-2_amd64.deb ...
  105. Unpacking virt-what (1.25-2) ...
  106. Selecting previously unselected package python3-subscription-manager.
  107. Preparing to unpack .../16-python3-subscription-manager_1.30.5-2_amd64.deb ...
  108. Unpacking python3-subscription-manager (1.30.5-2) ...
  109. Selecting previously unselected package subscription-manager.
  110. Preparing to unpack .../17-subscription-manager_1.30.5-2_all.deb ...
  111. Unpacking subscription-manager (1.30.5-2) ...
  112. Setting up virt-what (1.25-2) ...
  113. Setting up python-dmidecode-data (3.12.3-2build1) ...
  114. Setting up apt-transport-go-katello (0.1.0-1) ...
  115. Setting up libfsverity0:amd64 (1.5-1.1build3) ...
  116. Setting up python3-libxml2:amd64 (2.9.14+dfsg-1.3ubuntu3) ...
  117. Setting up python3-decorator (5.1.1-5) ...
  118. Setting up python3-dmidecode (3.12.3-2build1) ...
  119. Setting up liblua5.3-0:amd64 (5.3.6-2build2) ...
  120. Setting up python3-dateutil (2.8.2-3ubuntu1) ...
  121. Setting up python3-iniparse (0.5-2) ...
  122. Setting up librpmio9t64 (4.18.2+dfsg-2.1build2) ...
  123. Setting up librpm9t64 (4.18.2+dfsg-2.1build2) ...
  124. Setting up librpmbuild9t64 (4.18.2+dfsg-2.1build2) ...
  125. Setting up rpm-common (4.18.2+dfsg-2.1build2) ...
  126. Setting up librpmsign9t64 (4.18.2+dfsg-2.1build2) ...
  127. Setting up python3-rpm (4.18.2+dfsg-2.1build2) ...
  128. Setting up python3-subscription-manager (1.30.5-2) ...
  129. Created symlink /etc/systemd/system/basic.target.wants/rhsm-facts.service -> /usr/lib/systemd/system/rhsm-facts.service.
  130. Created symlink /etc/systemd/system/basic.target.wants/rhsm.service -> /usr/lib/systemd/system/rhsm.service.
  131. Created symlink /etc/systemd/system/multi-user.target.wants/rhsmcertd.service -> /usr/lib/systemd/system/rhsmcertd.service.
  132. Setting up subscription-manager (1.30.5-2) ...
  133. Processing triggers for libc-bin (2.39-0ubuntu8.4) ...
  134. Processing triggers for man-db (2.12.0-4build2) ...
  135. Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
  136. Scanning processes...
  137. Scanning linux images...
  138.  
  139. Running kernel seems to be up-to-date.
  140.  
  141. No services need to be restarted.
  142.  
  143. No containers need to be restarted.
  144.  
  145. No user sessions are running outdated binaries.
  146.  
  147. No VM guests are running outdated hypervisor (qemu) binaries on this host.
  148. + command -v subscription-manager
  149. + [ -x /usr/sbin/subscription-manager ]
  150. + subscription-manager unregister
  151. This system is currently not registered.
  152. + true
  153. + subscription-manager clean
  154. All local data removed
  155. + [ -f /etc/debian_version ]
  156. + KATELLO_SERVER_CA_CERT=/etc/rhsm/ca/katello-server-ca.pem
  157. + mkdir -p /etc/rhsm/ca
  158. + touch /etc/rhsm/ca/katello-server-ca.pem
  159. + chmod 644 /etc/rhsm/ca/katello-server-ca.pem
  160. + KATELLO_SERVER_CA_CERT=/etc/rhsm/ca/katello-server-ca.pem
  161. + [ -f /etc/rhsm/ca/katello-server-ca.pem ]
  162. + cat
  163. + [ -f /etc/debian_version ]
  164. + CA_TRUST_ANCHORS=/usr/local/share/ca-certificates/
  165. + cp /etc/rhsm/ca/katello-server-ca.pem /usr/local/share/ca-certificates/
  166. + [ -f /etc/debian_version ]
  167. + update-ca-certificates
  168. Updating certificates in /etc/ssl/certs...
  169. 0 added, 0 removed; done.
  170. Running hooks in /etc/ca-certificates/update.d...
  171. done.
  172. + command -v subscription-manager
  173. + [ -x /usr/sbin/subscription-manager ]
  174. + echo subscription-manager is already installed!
  175. subscription-manager is already installed!
  176. + apt-get -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -o APT::Get::Upgrade-Allow-New='true' upgrade -y subscription-manager
  177. + [ -f /etc/rhsm/rhsm.conf ]
  178. + test -f /etc/rhsm/rhsm.conf.bak
  179. + cp /etc/rhsm/rhsm.conf /etc/rhsm/rhsm.conf.bak
  180. + 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
  181. + subscription-manager config --rhsm.package_profile_on_trans=1
  182. + subscription-manager config --rhsm.report_package_profile=1
  183. + grep --quiet full_refresh_on_yum /etc/rhsm/rhsm.conf
  184. + sed -i s/full_refresh_on_yum\s*=.*$/full_refresh_on_yum = 1/g /etc/rhsm/rhsm.conf
  185. + systemctl try-restart yggdrasil
  186. + true
  187. + subscription-manager register --force --org=org--activationkey=Ubuntu_24-04
  188. The system has been registered with ID: a-c-d-b-e
  189. The registered system name is: vcdubt001.virtualcenter.lan
  190. + + bashregister_katello_host
  191.  
  192. + subscription-manager identity
  193. + grep --max-count 1 --only-matching \([[:xdigit:]]\{8\}-[[:xdigit:]]\{4\}-[[:xdigit:]]\{4\}-[[:xdigit:]]\{4\}-[[:xdigit:]]\{12\}\)
  194. + UUID=08b7e36f-1148-4db7-b58c-3d98525c6cae
  195. + 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
  196. ERROR: unauthorized
  197. JWT SSO: Expired JWT token.
  198. + cleanup_and_exit
  199. + rm -f /tmp/tmp.36cBrbo2Um
  200. + exit
  201. root@testmachine:/usr/scripts# echo $?
  202. 0
  203.  
Advertisement
Add Comment
Please, Sign In to add comment