]> git.apps.os.sepia.ceph.com Git - ragweed.git/commitdiff
on ubuntu 20.04 the `python3-distro-info` package causes error wip-58510-and-58549
authormkogan <mkogan@mkPT3620.usersys.redhat.com>
Mon, 30 Jan 2023 17:20:32 +0000 (19:20 +0200)
committerCasey Bodley <cbodley@redhat.com>
Mon, 30 Jan 2023 19:45:55 +0000 (14:45 -0500)
`Invalid version: '0.23ubuntu1' (package: distro-info)`
during bootstrap executing the command:
`./virtualenv/bin/python setup.py develop`

ref:
https://bugs.launchpad.net/ubuntu/+source/distro-info/+bug/1991606/comments/18

Fixes: https://tracker.ceph.com/issues/58549
Signed-off-by: mkogan <mkogan@ibm.com>
bootstrap

index 5478ff566e7d5dd02339a9ee6b75a10972e20850..e48ac9606aebde220e0552b887bcaf7ccfcea734 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -13,6 +13,7 @@ if [ -f /etc/debian_version ]; then
         echo "$0: missing required DEB packages. Installing via sudo." 1>&2
         sudo apt-get -y install $missing
     fi
+    sudo apt-get remove -y python3-distro-info
 fi
 if [ -f /etc/redhat-release ]; then
     for package in python3-pip python3-virtualenv python3-devel libevent-devel libxml2-devel libxslt-devel zlib-devel; do