I'm trying to install folding at home, and running into an issue with FAHControl package
$ sudo dpkg -i fahcontrol_7.5.1-1_all.deb
Selecting previously unselected package fahcontrol.
(Reading database ... 318495 files and directories currently installed.)
Preparing to unpack fahcontrol_7.5.1-1_all.deb ...
Unpacking fahcontrol (7.5.1-1) ...
dpkg: dependency problems prevent configuration of fahcontrol:
fahcontrol depends on python-gnome2; however:
Package python-gnome2 is not installed.
dpkg: error processing package fahcontrol (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu1) ...
Processing triggers for mime-support (3.63ubuntu1) ...
Errors were encountered while processing:
fahcontrol
I don't see python-gnome2 available for eoan, so what is the best way to proceed?
I see in the installation guide that FAHControl isn't required, but would be nice to get it working.
Best Answer
The work-around mentioned in the link above to
sudo apt-mark manual python-gnome2
will not work for 19.10 because that package does not exist in the ubuntu repo :(Forcing the deps with
--force-depends
does not work for the same reason,python-gnome2
does not exist.This is worked on my Ubuntu 19.10 Desktop...YMMV
Step 1 (prerequisites)
Make sure you have these packages installed
Step 2 (create control file)
Now we need to trick Ubuntu into thinking it has
python-gnome2
. To do this we will use "equivs". Lot's of good docs on it, but here's a brief rundown:This creates a DEB control file called
python-gnome2
(see example below) in the current directory that you will need to edit. Or you can use this one...feel free to put in your own name/email and stuff...leave everything elseStep 3 (edit control file)
Using any text editor change the created control file like this. It will be in your current directory (assuming your working from the terminal) and will be called
python-gnome2
Step 4 (build a fake package)
Then build a fake package with the control file you just edited
This will create a DEB package in the current directory called
python-gnome2_42_all.deb
...assuming your control file looks like the sample above.Step 5 (install)
Now you can install your fake package and
fahcontrol
successfully and your Apt tree will not be broken. Run these commands from the current directory.Note: If you downloaded
fahcontrol_7.5.1-1_all.deb
file to say your Downloads directory, then you would need to install it from there e.g.Step 6 (save the world!)
Then run it like this from the terminal
Or use from your application launcher. Mine looks like this
Hope that helps!