Latest Ubuntu 17.10 Desktop ISO image ships without Python 2

Dec 11, 2017 15:20 GMT  ·  By

Ubuntu devs are currently working on removing the Python 2 interpreter from the Ubuntu repositories as end of life was announced upstream for the year 2020.

Canonical's Matthias Klose informed the Ubuntu community in a mailing list announcement last week that getting the Python 2 interpreter demoted from Ubuntu has been an ongoing task for the last few releases, and that Ubuntu 17.10 (Artful Aardvark) is the first to ship with a Desktop ISO image that doesn't contain Python2.

However, the next step for them is to prepare to move the Python 2 packages to the "universe" repository in the next few months before the release of the Ubuntu 18.04 LTS (Bionic Beaver) operating system in April 2018. While Python 2 will be supported for only two more years, Ubuntu 18.04 is an LTS (Long Term Support) release supported for five years, until 2023.

"Getting Python2 demoted has been an ongoing task for several Ubuntu releases, now finally having a desktop CD image in Ubuntu 17.10 which ships without a Python2 interpreter," wrote Matthias Klose. "The next step is to get Python2 demoted to universe, before finally in the far future it can be removed entirely from the archive."

About 35 issues need to be resolved before demoting Python 2 to universe

Before demoting the Python 2 interpreter to the "universe" repositories, the Ubuntu developers need to fix about 35 issues, ensuring the OpenStack package builds against Python 3, as well as any other remaining packages that still rely on Python 2. Also, they need to remove or update any Python 2 package in the Ubuntu seeds.

Other than that, they also need to make sure no new Python 2 packages land in the main software repositories of Ubuntu 18.04 LTS (Bionic Beaver). Once Python 2 will be available in the "universe" repo, users will need to enable it if they want to install any software package dependent on the Python 2 interpreter.

According to Matthias Klose, it's unlikely that Python 2 will be demoted in time for Ubuntu 18.04 LTS, but the goal right now is to ensure at least OpenStack is using Python 3. It remains to be seen if they will manage to achieve this massive goal until the release of Ubuntu 18.04 LTS on April 26, 2018. Fingers crossed!