Fixes: #48055 * add compatibility for new networkmanager library * update debian/ubuntu docs * move import gi into try