FoldingAtHome / fah-issues

49 stars 9 forks source link

install problem in ubu 20.4 osbolet paquet #1637

Open philivy opened 3 years ago

philivy commented 3 years ago

yoshi@yoshi-desktop:~/deb$ sudo dpkg -i fahcontrol_7.6.21-1_all.deb Sélection du paquet fahcontrol précédemment désélectionné. (Lecture de la base de données... 190938 fichiers et répertoires déjà installés.) Préparation du dépaquetage de fahcontrol_7.6.21-1_all.deb ... Dépaquetage de fahcontrol (7.6.21-1) ... dpkg: des problèmes de dépendances empêchent la configuration de fahcontrol : fahcontrol dépend de python ; cependant : Le paquet python n'est pas installé. fahcontrol dépend de python-gtk2 | python-gnome2 ; cependant : Le paquet python-gtk2 n'est pas installé. Le paquet python-gnome2 n'est pas installé.

dpkg: erreur de traitement du paquet fahcontrol (--install) : problèmes de dépendances - laissé non configuré Traitement des actions différées (« triggers ») pour gnome-menus (3.36.0-1ubuntu1) ... Traitement des actions différées (« triggers ») pour desktop-file-utils (0.24-1ubuntu3) ... Traitement des actions différées (« triggers ») pour mime-support (3.64ubuntu1) ... Des erreurs ont été rencontrées pendant l'exécution : fahcontrol yoshi@yoshi-desktop:~/deb$ sudo dpkg -i fahviewer_7.6.21_amd64.deb Sélection du paquet fahviewer précédemment désélectionné. (Lecture de la base de données... 190972 fichiers et répertoires déjà installés.) Préparation du dépaquetage de fahviewer_7.6.21_amd64.deb ... Dépaquetage de fahviewer (7.6.21) ... dpkg: des problèmes de dépendances empêchent la configuration de fahviewer : fahviewer dépend de libgl1-mesa-glx ; cependant : Le paquet libgl1-mesa-glx n'est pas installé. fahviewer dépend de freeglut3 ; cependant : Le paquet freeglut3 n'est pas installé.

dpkg: erreur de traitement du paquet fahviewer (--install) : problèmes de dépendances - laissé non configuré Traitement des actions différées (« triggers ») pour gnome-menus (3.36.0-1ubuntu1) ... Traitement des actions différées (« triggers ») pour desktop-file-utils (0.24-1ubuntu3) ... Traitement des actions différées (« triggers ») pour mime-support (3.64ubuntu1) ... Des erreurs ont été rencontrées pendant l'exécution : fahviewer

davidhcefx commented 3 years ago

What do you mean by "osbolet paquet"? Does "ubu" stands for Ubuntu?

casep commented 2 years ago

Hi, I'm having the same issue after updating to Ubuntu Bullseye

$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

python2 is no longer available

$ sudo apt install ./fahcontrol_7.6.21-1_all.deb 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'fahcontrol' instead of './fahcontrol_7.6.21-1_all.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 fahcontrol : Depends: python-gtk2 but it is not installable or
                       python-gnome2 but it is not installable
E: Unable to correct problems, you have held broken packages.
anand-bhat commented 2 years ago

Have you tried the manual steps in https://foldingathome.org/support/faq/installation-guides/linux/manual-installation-advanced/?lng=en to address dependency issues with python 2.6? Note: Disregard the instructions for 7.4.4 -- you can substitute 7.6.21 as that's the latest available version for FAH.

casep commented 2 years ago

That is not a solution, it will allow to install the package, but then it will fail to launch. The root problem is that python2 is not available on bullseye.

$ sudo dpkg -i --force-depends fahcontrol_7.6.21-1_all.deb
Selecting previously unselected package fahcontrol.
(Reading database ... 114161 files and directories currently installed.)
Preparing to unpack fahcontrol_7.6.21-1_all.deb ...
Unpacking fahcontrol (7.6.21-1) ...
dpkg: fahcontrol: dependency problems, but configuring anyway as you requested:
 fahcontrol depends on python; however:
  Package python is not installed.
 fahcontrol depends on python-gtk2 | python-gnome2; however:
  Package python-gtk2 is not installed.
  Package python-gnome2 is not installed.

Setting up fahcontrol (7.6.21-1) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for gnome-menus (3.36.0-1) ...
Processing triggers for mailcap (3.69) ...

Once installed it will fail to launch.

$ FAHControl 
-bash: /usr/bin/FAHControl: /usr/bin/python: bad interpreter: No such file or directory
3quarterscolon commented 1 year ago

I'm having this same problem. This seems to have been a thing for a long time. The only way to fix it on the user end appears to be manually editing the dependencies to use the correct packages, which I doubt most people are comfortable doing.

Edit: Problem can be solved by downloading from this experimental python 3.0 repo. This also had a problem (see below), but I solved by replacing the offending line with a snippet of code I found on the internet (can't find the source)

Traceback (most recent call last):
  File "/usr/bin/FAHControl", line 25, in <module>
    from fah import FAHControl, load_fahcontrol_db
  File "/usr/lib/python3/dist-packages/fah/__init__.py", line 25, in <module>
    from . import util
  File "/usr/lib/python3/dist-packages/fah/util/__init__.py", line 24, in <module>
    from .OrderedDict import *
  File "/usr/lib/python3/dist-packages/fah/util/OrderedDict.py", line 23, in <module>
    from collections import MutableMapping as DictMixin
ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
# replace "from collections import MutableMapping as DictMixin"
import sys
if sys.version_info[:2] >= (3, 8):
    from collections.abc import MutableMapping as DictMixin
else:
    from collections import MutableMapping as DictMixin