From 8248d0befc9a4e5f43df57a096da3418e4852cb7 Mon Sep 17 00:00:00 2001 From: Julien Fortin Date: Tue, 17 Dec 2019 17:37:40 +0100 Subject: [PATCH] debian: postinst: add work-around to manually install python3-ipaddr python3 ipaddress behave differently from python2-ipaddr, this is a serious problem for us since it breaks most of the ip addresses code. The work around install the python3-ipaddr via pip3 (and installs pip3 if necessary). The workaround will stay in the code util the ipaddress issue is fixed. Signed-off-by: Julien Fortin --- debian/ifupdown2.postinst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/ifupdown2.postinst b/debian/ifupdown2.postinst index 3689256..9f2ddd5 100644 --- a/debian/ifupdown2.postinst +++ b/debian/ifupdown2.postinst @@ -92,6 +92,14 @@ case "$1" in process_udev chmod +x /usr/share/ifupdown2/__main__.py postinst_remove_diverts + + #### WORK AROUND + # We have to manually install pip3 + apt-get install python3-pip -y + sleep 1 + pip3 install wheel + pip3 install setuptools + pip3 install ipaddr ;; abort-upgrade|abort-remove|abort-deconfigure)