fah-issues icon indicating copy to clipboard operation
fah-issues copied to clipboard

``update-rc.d: error: no runlevel symlinks to modify, aborting!`` on Ubuntu 16.04

Open 2E0PGS opened this issue 7 years ago • 32 comments

Lintian Output:

E: fahclient: embedded-library usr/bin/FAHClient: expat
E: fahclient: embedded-library usr/bin/FAHClient: openssl
E: fahclient: embedded-library usr/bin/FAHClient: sqlite
W: fahclient: hardening-no-relro usr/bin/FAHClient
W: fahclient: hardening-no-relro usr/bin/FAHCoreWrapper
W: fahclient: package-contains-timestamped-gzip usr/share/doc/fahclient/changelog.Debian.gz
W: fahclient: package-contains-timestamped-gzip usr/share/doc/fahclient/changelog.gz
E: fahclient: duplicate-updaterc.d-calls-in-postinst FAHClient
W: fahclient: binary-without-manpage usr/bin/FAHClient
W: fahclient: binary-without-manpage usr/bin/FAHCoreWrapper
E: fahclient: maintainer-script-should-not-use-adduser-system-without-home preinst:24 'adduser --quiet --system --no-create-home --disabled-password                 $CLIENT_USER 2>/dev/null; then'
W: fahclient: init.d-script-does-not-source-init-functions etc/init.d/FAHClient

Lintian finished with exit status 1

APT-GET Output:

Setting up fahclient (7.4.4) ...
update-rc.d: error: no runlevel symlinks to modify, aborting!
dpkg: error processing package fahclient (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 fahclient
E: Sub-process /usr/bin/dpkg returned an error code (1)

2E0PGS avatar Apr 25 '17 15:04 2E0PGS

I was aware of most of those lintian warnings. duplicate-updaterc.d-calls-in-postinst is concerning and may be related. This might be relevant: http://comments.gmane.org/gmane.linux.debian.devel.mentors/52381

Which version of Ubuntu?

jcoffland avatar Apr 25 '17 21:04 jcoffland

Ubuntu 16.04.2 Unity 7.4.0

2E0PGS avatar Apr 25 '17 21:04 2E0PGS

I realize this is an old issue but it is still open and I am now experiencing this problem. Ubuntu 16.04.03 Server x64

BurntRouter avatar Oct 26 '17 19:10 BurntRouter

I need more information. What is the situation that causes this error? Is this a new install or an upgrade? What is the install command?

jcoffland avatar Oct 27 '17 17:10 jcoffland

Does running the following command and then trying to install again work?:

sudo update-rc.d FAHClient defaults

jcoffland avatar Oct 31 '17 19:10 jcoffland

I got the same problem when I installed fahclient on Ubuntu 16.04.

$ sudo dpkg -i fahclient_7.4.4_amd64.deb Selecting previously unselected package fahclient. (Reading database ... 306306 files and directories currently installed.) Preparing to unpack fahclient_7.4.4_amd64.deb ... Adding system user fahclient...done Unpacking fahclient (7.4.4) ... Setting up fahclient (7.4.4) ... update-rc.d: error: no runlevel symlinks to modify, aborting! dpkg: error processing package fahclient (--install): subprocess installed post-installation script returned error exit status 1 Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ... Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ... Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for mime-support (3.59ubuntu1) ... Processing triggers for systemd (229-4ubuntu21) ... Processing triggers for ureadahead (0.100.0-19) ... Errors were encountered while processing: fahclient

kkoyung avatar Nov 06 '17 05:11 kkoyung

@koyung Please try running the command I suggested above and report back.

jcoffland avatar Nov 10 '17 18:11 jcoffland

Yes, that command resolved the issue on my computer:

martin@dogmeat ~/Downloads % sudo dpkg --configure -a
fahclient (7.4.4) wird eingerichtet ...
update-rc.d: error: no runlevel symlinks to modify, aborting!
dpkg: Fehler beim Bearbeiten des Paketes fahclient (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
 fahclient
martin@dogmeat ~/Downloads % sudo update-rc.d FAHClient defaults
martin@dogmeat ~/Downloads % sudo dpkg --configure -a           
fahclient (7.4.4) wird eingerichtet ...

The Folding@home client is now installed

You can access the Web interface by going to:

  http://folding.stanford.edu/client/

in a browser on this computer.

For information about configuring the Folding@home client for
remote access please see the comments in:

  /etc/fahclient/config.xml

martin@dogmeat ~/Downloads % lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 17.04
Release:        17.04
Codename:       zesty

martinvonwittich avatar Nov 30 '17 11:11 martinvonwittich

Thanks. One more question. When you initially encountered this problem where you doing a fresh install or an upgrade?

jcoffland avatar Nov 30 '17 22:11 jcoffland

Thanks. One more question. When you initially encountered this problem where you doing a fresh install or an upgrade?

A fresh install.

martinvonwittich avatar Dec 01 '17 10:12 martinvonwittich

Got this error with FAH 7.5.1 beta on latest Linux Mint 18 with latest updates and the workaround sudo update-rc.d FAHClient defaults worked and FAHClient is running

informatorius avatar May 27 '18 18:05 informatorius

Ok, I figured out what's going on here. This only happens if you tell FAHClient not to start automatically.

jcoffland avatar May 29 '18 17:05 jcoffland

Yes, I did say not to start automatically.

informatorius avatar May 29 '18 18:05 informatorius

I think I also selected that option to not start automatically since it was installed on my main desktop.

Nice work to narrow that issue down.

⁣Peter Stevenson (2E0PGS) http://www.m3pgs.co.uk​

On 29 May 2018, 19:10, at 19:10, informatorius [email protected] wrote:

Yes, I did say not to start automatically.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/FoldingAtHome/fah-issues/issues/1193#issuecomment-392879669

2E0PGS avatar May 29 '18 18:05 2E0PGS

Ran into this issue on a fresh Linux Mint 19 desktop. Manually running sudo update-rc.d FAHClient defaults solved the issue, but it would be nice if you could fix the deb package to "just work".

kaefert avatar Nov 19 '18 14:11 kaefert

Same as others: fresh install on a Debian 10 Buster, kernel 4.18.10-2. Got a similar error

>sudo dpkg -i fahclient_7.5.1_amd64.deb 
Selecting previously unselected package fahclient.
(Reading database ... 337291 files and directories currently installed.)
Preparing to unpack fahclient_7.5.1_amd64.deb ...
usermod: no changes
Unpacking fahclient (7.5.1) ...
Setting up fahclient (7.5.1) ...
update-rc.d: error: no runlevel symlinks to modify, aborting!
dpkg: error processing package fahclient (--install):
 installed fahclient package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (239-15) ...
Processing triggers for desktop-file-utils (0.23-4) ...
Processing triggers for gnome-menus (3.13.3-11) ...
Processing triggers for mime-support (3.61) ...
Errors were encountered while processing:
 fahclient

But the aformentionned command sudo update-rc.d FAHClient defaults fixed it. Thanks for that

Edit: Also configured for not starting up automatically

Battleman avatar Dec 26 '18 12:12 Battleman

Also configured for not starting up automatically.

Why? FAHClient is a service which is easily managed by settings using FAHControl. If you've restarted your system with data that can be processed, it should start doing that. If you specifically configure a slot to PAUSE, it will; Also it won't download more work if you set it to FINISH.

Would you configure your system to avoid starting the printer daemon forcing you to start it manually when nothing happens when you issue a PRINT function in some program... or do you expect any incompletely printed file to resume processing after a restart?

bb30994 avatar Jan 20 '19 20:01 bb30994

This isn't the place to question why people don't want a service to start automatically. Everyone has different use cases for their systems. Some people don't want it. End of story. If the option is provided for the service not to start automatically, that option should work.

Sanaki avatar Jan 20 '19 23:01 Sanaki

Got his error. I don't want to touch my rc.d files. What should I do?

ck-kc avatar Apr 22 '19 14:04 ck-kc

Got his error. I don't want to touch my rc.d files. What should I do?

Run these commands, as stated above:

sudo update-rc.d FAHClient defaults
sudo dpkg --configure -a

martinvonwittich avatar Apr 22 '19 16:04 martinvonwittich

ran into the same issue, the command fixed it system: Linux Mint 19.2 Kernel Linux 5.0.0-25-generic #26~18.04.1-Ubuntu SMP Thu Aug 1 13:51:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux fahclient fahclient_7.5.1_amd64.deb

fresh install, trying to not start it automatically

hasezoey avatar Aug 17 '19 05:08 hasezoey

Same issue and fix on kubuntu 19.04.

transplier avatar Nov 25 '19 01:11 transplier

Same issue with Ubuntu 19.10 x86_64 - Solved with $ sudo update-rc.d FAHClient defaults Cannot install fahcontrol : Depends: python-gnome2 but it is not installable

orjanv avatar Mar 15 '20 07:03 orjanv

Confirming same issues python-support && python-gnome2 are not found

Doomsdayrs avatar Mar 22 '20 19:03 Doomsdayrs

Ubuntu 19.10 x86_64 I was almost going to abandon the idea to connect to the FoldingAtHome when I found this solution. I was installing it via Ubuntu Software and I saw the initial window settings. Then it suddenly crushed. I tried couple of times to reinstall it but always without success. It didn't show the initial window at following tries. Only when I tried install via dpkg -i I could see source of the problem.

sturfee-petrl avatar Mar 26 '20 23:03 sturfee-petrl

Had the same issue on Linux Mint 19.3 Tricia, whilst doing a fresh install. The workaround (sudo update-rc.d FAHClient defaults) before installation solves the problem

peterjasko avatar Apr 07 '20 09:04 peterjasko

What does the workaround do? Will it run the service at boot, no matter what I select during the installation of fahclient?

pcolaianni avatar Apr 08 '20 10:04 pcolaianni

Same problem on ubuntu 18.04. I wanted to remain in control as whether to start fahclient at boot, and opted for no. That apparently caused the above bug. Suggested solution of: sudo update-rc.d FAHClient defaults works, and it fixes ubuntu packaging system.

While still wanting to be in control of what is starting on my system, my best guess, without testing would be to modify the /etc/init.d/FAHClient file, line 27:

ENABLE=true

into

ENABLE=false

From the contents of the script, it is my semi-educated guess, such modified script will NOT launch fahclient at system startup.

rsimac avatar Apr 13 '20 14:04 rsimac

You can add the pause-on-start true to the client under Fahcontrol, config, expert. In my case I don't want it starting auto as I frequently use the finish command before shutting down or switching to another dual boot OS.

ipkh avatar Apr 15 '20 23:04 ipkh

From what I see this issue has been resolved with the current version. update-rc.d FAHClient defaults has been added to the package pre/post install/config scripts and neither a reinstall now a fresh install with debconf-set-selections <<< 'fahclient fahclient/autostart boolean false' causes any failure during my tests.

Tested with https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/v7.6/latest.deb, probably users of other platforms can verify and in case this issue can be closed.

MichaIng avatar May 19 '20 14:05 MichaIng