Public bug reported: If one attempts to install the python3-ldap package, a number of python2 related dependencies are also pulled in for installation:
# apt install python3-ldap Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python python-ldap python-minimal python-pyasn1 python-pyasn1-modules python2.7 python2.7-minimal Suggested packages: python-doc python-tk python2.7-doc binfmt-support The following NEW packages will be installed: libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python python-ldap python-minimal python-pyasn1 python-pyasn1-modules python2.7 python2.7-minimal python3-ldap 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded. Need to get 4,202 kB of archives. After this operation, 18.3 MB of additional disk space will be used. Do you want to continue? [Y/n] n Abort. Looking at the dependencies for the package, we see: Depends: python3 (<< 3.7), python3 (>= 3.6~), python3-pyasn1 (>= 0.3.7), python3-pyasn1-modules, python3:any (>= 3.3.2-2~), python-ldap (= 3.0.0-1), libc6 (>= 2.14), libldap-2.4-2 (>= 2.4.11) So python2 is being pulled in because of the dependency on "python-ldap" It looks like this issue may be fixed in the 3.1.0-1 package via this change: 3.1.0-1 * debian/python-ldap.docs - rename to docs (avoid dependency other python variant) It would be nice if this could be fixed for Ubuntu18.04 LTS users. Thanks! # lsb_release -rd Description: Ubuntu 18.04.1 LTS Release: 18.04 ** Affects: python-ldap (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1795989 Title: Ubuntu18.04 LTS: python3-ldap package depends on python2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-ldap/+bug/1795989/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs