Missing package python3-M2Crypto on bootstrap repo for SLE15 SP0
This document (000020352) is provided subject to the disclaimer at the end of this document.
Environment
Situation
ERROR: package 'python3-M2Crypto' not found
Resolution
To fix this, you need to customize the mgr_bootstrap_data.py file.
In folder "/usr/share/susemanager/" copy original file to new one:
cp mgr_bootstrap_data.py mgr_bootstrap_data_custom.py
then add following line to your "/etc/rhn/rhn.conf" file:
server.susemanager.bootstrap_repo_datamodule = mgr_bootstrap_data_custom.py
and edit created "mgr_bootstrap_data_custom.py" file in folder "/usr/share/susemanager/" as following:
# SLE15 SP0 NON LTSS BOOTSTRAP FIX: # - Copy "PKGLIST15_SALT" to "PKGLIST15_SALT_FIX" # - Remove lines in "PKGLIST15_SALT_FIX": "python3-M2Crypto" , "python3-distro" # - Edit "DATA" section for various architectures: PKGLIST15_SALT_FIX = [ "libpgm-5_2-0", "libsodium23", "libzmq5", "python3-Babel", "python3-certifi", "python3-chardet", "python3-idna", "python3-Jinja2", "python3-MarkupSafe", "python3-msgpack", "python3-psutil", "python3-py", "python3-pytz", "python3-PyYAML", "python3-pyzmq", "python3-requests", "python3-rpm", "python3-simplejson", "python3-six", "python3-urllib3", "timezone", "salt", "python3-salt", "salt-minion", ] --- 'SLE-15-aarch64' : { 'PDID' : [1589, 2053, 1709], 'BETAPDID' : [1925], 'PKGLIST' : PKGLIST15_TRAD + ONLYSLE15 + PKGLIST15_SALT_FIX + PKGLIST15SP0SP1_SALT + PKGLIST15_X86_ARM, 'DEST' : '/srv/www/htdocs/pub/repositories/sle/15/0/bootstrap/' }, 'SLE-15-ppc64le' : { 'PDID' : [1588, 2054, 1710], 'BETAPDID' : [1926], 'PKGLIST' : PKGLIST15_TRAD + ONLYSLE15 + PKGLIST15_SALT_FIX + PKGLIST15SP0SP1_SALT + PKGLIST15_PPC, 'DEST' : '/srv/www/htdocs/pub/repositories/sle/15/0/bootstrap/' }, 'SLE-15-s390x' : { 'PDID' : [1587, 2055, 1711], 'BETAPDID' : [1927], 'PKGLIST' : PKGLIST15_TRAD + ONLYSLE15 + PKGLIST15_SALT_FIX + PKGLIST15SP0SP1_SALT + PKGLIST15_Z, 'DEST' : '/srv/www/htdocs/pub/repositories/sle/15/0/bootstrap/' }, 'SLE-15-x86_64' : { 'PDID' : [1576, 2056, 1712], 'BETAPDID' : [1928], 'PKGLIST' : PKGLIST15_TRAD + ONLYSLE15 + PKGLIST15_SALT_FIX + PKGLIST15SP0SP1_SALT + PKGLIST15_X86_ARM, 'DEST' : '/srv/www/htdocs/pub/repositories/sle/15/0/bootstrap/' },
Once this is done, run again bootstrap script (e.g. for x86_64 architecture):
# mgr-create-bootstrap-repo -d -f -c SLE-15-x86_64
Cause
Status
Additional Information
SUSE provides common package list for all SLE15 products. If python3-M2Crypto package is removed from list in the edited file "mgr_bootstrap_data_custom.py", the error will disappear for SLE15 GA without LTSS, but SP1 and SP2 will not generate a correct bootstrap repository anymore.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020352
- Creation Date: 29-Jul-2021
- Modified Date:29-Jul-2021
-
- SUSE Manager Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com