Debian10: /etc/cron.daily/rhsmd: /usr/lib/x86_64-linux-gnu/rhsmd: not found

On Debian 10 with subscription manager 1.28.21-1 there is a cron job which doesn’t.

python-subscription-manager 1.28.21-1 installs the cron file /etc/cron.daily/rhsmd which only calls

/usr/lib/x86_64-linux-gnu/rhsmd -s

which doesn’t exist. Were is that supposed to come from?

I can not find the rhsmd file in cron.daily. Can you help me in which deb package I can find it?

I have installed that from apt.atix.de not too long ago.

$ dpkg -S /etc/cron.daily/rhsmd 
python-subscription-manager: /etc/cron.daily/rhsmd
$ dpkg -l python-subscription-manager
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                        Version      Architecture Description
+++-===========================-============-============-====================================
ii  python-subscription-manager 1.28.21-1    amd64        RHSM subscription-manager (Python 2)

Can you have a look at the latest version which is available on apt.atix.de if the cron.daily/rhsmd is in the debian package, too?

This is the latest version for debian 10 on apt.atix.de. I have ran an apt reinstall but no change.

If I open the python-subscription-manager deb package, there is no file cron.daily/rhsmd

I guess it was in there in a older version. I don’t really know debian/deb packages:

# dpkg -s python-subscription-manager
Package: python-subscription-manager
Status: install ok installed
Priority: optional
Section: unknown
Installed-Size: 5449
Maintainer: ATIX Team <info@atix.de>
Architecture: amd64
Source: subscription-manager
Version: 1.28.21-1
Depends: python (<< 2.8), python (>= 2.7~), python-dateutil, python-ethtool, python-iniparse, python-six, python:any (<< 2.8), python:any (>= 2.7~), python-dbus, python-rpm, virt-what, python-debian, python-apt, python-gobject, python-decorator, apt-transport-katello
Suggests: python-subscription-manager-doc
Conffiles:
 /etc/dbus-1/system.d/com.redhat.RHSM1.Facts.conf 4438cfda558c3fd03cf435e25a1e3fb2
 /etc/dbus-1/system.d/com.redhat.RHSM1.conf 739255e5712eac580b28df85b091a36a
 /etc/logrotate.d/subscription-manager 9b6b117bd83e19b5441cb0c3e8330288
 /etc/rhsm/ca/redhat-entitlement-authority.pem f734c81376c19d1f4e3f7c0e034b8f19
 /etc/rhsm/logging.conf 131fe186bbd071842bcc79d594c30802
 /etc/rhsm/pluginconf.d/container_content.ContainerContentPlugin.conf b3f9f07b9b95f14a8d9cd44392022a97
 /etc/rhsm/pluginconf.d/ostree_content.OstreeContentPlugin.conf 5c92246be23816fcfd55bb3a9f976086
 /etc/rhsm/rhsm.conf b24aac6cdfcaa01c8be710c9625689ce
 /etc/xdg/autostart/rhsm-icon.desktop 4f68e39f0b493b4ed77c6564136153c2
 /etc/yum/pluginconf.d/product-id.conf ba1268312e8c0d42be3187035cfca891
 /etc/yum/pluginconf.d/search-disabled-repos.conf a9a7bc7aa44ff7841b10e753986d1df3
 /etc/yum/pluginconf.d/subscription-manager.conf 97f46e2cecb266b18180aee3fb630492
 /etc/bash_completion.d/rct 15f1d71b355349cb36f0589bf2e79820 obsolete
 /etc/bash_completion.d/rhn-migrate-classic-to-rhsm ed68abfa9906f6c67c0e08a776df53e9 obsolete
 /etc/bash_completion.d/rhsm-debug da3252e80136282c57a89653e93c2dcb obsolete
 /etc/bash_completion.d/rhsm-icon 25da60e07b48ad1a452546c9dc5531ea obsolete
 /etc/bash_completion.d/rhsmcertd db99c6b3114de8e9a1f2acc5bf570cfa obsolete
 /etc/bash_completion.d/subscription-manager e3e48371ded7be977b9b2141b2f1c2b2 obsolete
 /etc/bash_completion.d/subscription-manager-gui dadaca6a845a17d3180b16aa021929c1 obsolete
 /etc/cron.daily/rhsmd e5c3bad2a84e0f6d55bbca479d165ae9 obsolete
 /etc/dbus-1/system.d/com.redhat.SubscriptionManager.conf 47841ab9393fcfe81c87900932bedead obsolete
Description: RHSM subscription-manager (Python 2)
 .
 RHSM is client side software that allows hosts to register with Red Hat
 subscription management services. In particular, this package is intended to
 enable Debian and Ubuntu hosts to register with the Foreman/Katello content
 management system.
 .
 This package installs the library for Python 2.
Homepage: https://github.com/candlepin/subscription-manager

It’s obsolete. I have installed python-subscription-manager_1.25.1-4_amd64.deb in July and upgraded two weeks ago to the latest version.

Then I would recommend to remove the old version, make sure the cron.daily/rhsmd is gone and try the new version.

I already have the latest version installed. 1.28.21-1 is the latest version.

@quba42 Is it possible to clean that up? I guess the cron job is obsolete?

/etc/cron.daily/rhsmd:
/etc/cron.daily/rhsmd: 5: /etc/cron.daily/rhsmd: /usr/lib/x86_64-linux-gnu/rhsmd: not found
run-parts: /etc/cron.daily/rhsmd exited with return code 127
# dpkg-query --show python-subscription-manager
python-subscription-manager	1.28.21-1
# dpkg-query --listfiles python-subscription-manager | grep rhsmd
/etc/cron.daily/rhsmd