


line that is not commented out, there shoudl be a commented out deb-src line to match - uncomment that deb-src line and then run sudo apt update.

In /etc/apt/sources.list, for every line you have a deb. If you are using command line, you shouldn't be using IDLE anyways, but you can edit the sources via the Command Line by referring to this page on the Ubuntu help docs for CLI management of sources. You'll need to enable the "Source Code" option under the "Ubuntu Software" tab. If you are a GUI user, then refer to this page on the Ubuntu wiki for managing repositories in the GUI. You must adjust your repository settings here now! We need the source repos (defined by deb-src lines in /etc/apt/sources.list) enabled for the repos you have enabled. There is a way to install newer Python to work with it and use IDLE on it, but it's not straightforward, and relies on an external project (of which I have no affiliation with) called pyenv on GitHub which lets you run multiple Python installations side by side and uses shims to make sure that the version you WANT to use is available. DO NOT mess with Python that's installed on the system! THIS WILL DESTROY YOUR ABILITY TO DO ANYTHING ON THE SYSTEM! Package management, updates, everything has a Python dependent component that's dependent on the system-installed Python versions.
