FoldingAtHome / fah-issues

49 stars 9 forks source link

FAHClient - Ubuntu Server 22.04 - latest.deb - fahclient.postinst - No such file or directory #1725

Closed doritoes closed 6 months ago

doritoes commented 6 months ago

Installing F@H on Ubuntu Server 22.04 LTS (minimal packages) fails when installing following official instructions: https://foldingathome.org/faqs/installation-guides/linux/manual-installation-optional-advanced/terminal-installation-for-debian-mint-ubuntu/

Instructions:

wget https://download.foldingathome.org/releases/public/release/fahclient/debian-testing-64bit/v7.4/fahclient_7.4.4_amd64.deb
sudo dpkg -i --force-depends fahclient_7.4.4_amd64.deb

Error:

/var/lib/dpkg/info/fahclient.postinst: line 40: /usr/share/doc/fahclient/sample-config.xml: No such file or directory
dpkg: error processing package fahclient (--install):
 installed fahclient package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 fahclient

Also fails the latest package: wget https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/v7.6/latest.deb

Troubleshooting unpacking the .deb file:

sample-config.xml is in the .deb file, but hasn't been copied to /usr/share/doc/fahclient

$ ls /usr/share/doc/fahclient/
changelog.Debian.gz  changelog.gz  copyright

Addition symptoms: dkpg is unhappy every time I use apt

Errors were encountered while processing:

fahclient needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1)



You can try 
- sudo apt purge -y fahclient
- sudo dpkg --configure -a
- sudo apt --fix-broken install
But you will get
- sh: 0: getcwd() failed: No such file or directory
doritoes commented 6 months ago

Did repeated testing and found the simplest solution is to not use the "minimal" packages installation.

dpkg doesn't handle dependencies well. I was not able to identify the packages to make it work. Closing as works with workaround