Unable to install FAHControl on Ubuntu 20.04

The Python 2 is now deprecated, so its parts got removed from Ubuntu 20.04 LTS.

But the python-gtk2 may be downloaded manually and then proceed with installation of fahcontrol by:

cd ~/Downloads
wget -c https://download.foldingathome.org/releases/public/release/fahcontrol/debian-stable-64bit/v7.6/fahcontrol_7.6.21-1_all.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
sudo apt-get install ./python-gtk2_2.24.0-5.1ubuntu2_amd64.deb ./fahcontrol_7.6.21-1_all.deb

For 21.10 the command list is longer:

cd ~/Downloads
wget -c https://download.foldingathome.org/releases/public/release/fahcontrol/debian-stable-64bit/v7.6/fahcontrol_7.6.21-1_all.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/main/p/pycairo/python-cairo_1.16.2-1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pygobject-2/python-gobject-2_2.28.6-12ubuntu3_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb
sudo apt-get install ./python-cairo_1.16.2-1_amd64.deb ./python-gobject-2_2.28.6-12ubuntu3_amd64.deb ./python-gtk2_2.24.0-5.1ubuntu2_amd64.deb ./libffi6_3.2.1-8_amd64.deb ./fahcontrol_7.6.21-1_all.deb

Instead of force-installing deprecated Python2 packages, you could go forward with a Python3 fork of FAHControl (see this discussion), which works fine for me. The Readme describes as precondition:

apt install python3-stdeb python3-gi python3-all python3-six debhelper dh-python gir1.2-gtk-3.0

I reduced this quite a bit, as not all packages are needed (e.g. python3-stdeb and debhelper are only needed for packaging, and some other packages were already installed) – and ended up with apt install python3-all being sufficient. YMMV, but what definitely suffices is

apt install python3-gi python3-all python3-six dh-python gir1.2-gtk-3.0

Following that, either download and apt install the only existing *.deb file (dating back to 4/2020) – or install the latest version from source, which is what I did:

git clone https://github.com/cdberkstresser/fah-control.git
cd fah-control
echo "version = '7.7.0'" > fah/Version.py
./FAHControl

(instead of git clone you can of course also download and unpack the archive).

Now, to get FAHControl into your application menu, adjust FAHControl.desktop (the path for Exec, TryExec and Icon), then copy it to ~/.local/share/applications, and you are done. From time to time, check for updates (e.g. git pull origin master when you cloned from Git) to get the latest fixes.