Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

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

Open
2E0PGS opened this issue Apr 25, 2017 · 32 comments
Open
Labels
3.Component - FAHClient Reported issue relates to FAHClient. 3.Component - Installer Reported issue relates to the installer. 4.OS - Debian Reported issue occurs on Debian based OS (Debian, Mint, Ubuntu).

Comments

@2E0PGS
Copy link

2E0PGS commented Apr 25, 2017

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)
@jcoffland jcoffland changed the title fahclient ubuntu .deb Lintian warnings on .deb Apr 25, 2017
@jcoffland jcoffland added the 3.Component - FAHClient Reported issue relates to FAHClient. label Apr 25, 2017
@jcoffland jcoffland changed the title Lintian warnings on .deb update-rc.d: error: no runlevel symlinks to modify, aborting! on Ubuntu Apr 25, 2017
@jcoffland
Copy link
Member

jcoffland commented Apr 25, 2017

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?

@2E0PGS
Copy link
Author

2E0PGS commented Apr 25, 2017

Ubuntu 16.04.2
Unity 7.4.0

@jcoffland jcoffland changed the title update-rc.d: error: no runlevel symlinks to modify, aborting! on Ubuntu update-rc.d: error: no runlevel symlinks to modify, aborting! on Ubuntu 16.04 Apr 25, 2017
@BurntRouter
Copy link

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

@jcoffland
Copy link
Member

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
Copy link
Member

jcoffland commented Oct 31, 2017

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

sudo update-rc.d FAHClient defaults

@jcoffland jcoffland added 1.Type - Defect Reported issue is a defect. Linux 3.Component - Installer Reported issue relates to the installer. and removed 1.Type - Defect Reported issue is a defect. labels Oct 31, 2017
@kkoyung
Copy link

kkoyung commented Nov 6, 2017

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

@jcoffland
Copy link
Member

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

@martinvonwittich
Copy link

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

@jcoffland
Copy link
Member

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

@martinvonwittich
Copy link

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

A fresh install.

@informatorius
Copy link

informatorius commented May 27, 2018

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

@jcoffland
Copy link
Member

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

@informatorius
Copy link

Yes, I did say not to start automatically.

@2E0PGS
Copy link
Author

2E0PGS commented May 29, 2018 via email

@kaefert
Copy link

kaefert commented Nov 19, 2018

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".

@Battleman
Copy link

Battleman commented Dec 26, 2018

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

@bb30994
Copy link

bb30994 commented Jan 20, 2019

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?

@Sanaki
Copy link

Sanaki commented Jan 20, 2019

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.

@ck-kc
Copy link

ck-kc commented Apr 22, 2019

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

@martinvonwittich
Copy link

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

@hasezoey
Copy link

hasezoey commented Aug 17, 2019

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

@transplier
Copy link

Same issue and fix on kubuntu 19.04.

@orjanv
Copy link

orjanv commented Mar 15, 2020

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

@Doomsdayrs
Copy link

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

@sturfee-petrl
Copy link

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.

@peterjasko
Copy link

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

@pcolaianni
Copy link

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

@rsimac
Copy link

rsimac commented Apr 13, 2020

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.

@ipkh
Copy link

ipkh commented Apr 15, 2020

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.

@MichaIng
Copy link

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.

@PantherX PantherX added 4.OS - Debian Reported issue occurs on Debian based OS (Debian, Mint, Ubuntu). and removed Linux labels May 22, 2020
@lalala548
Copy link

update-rc.d: error: unable to read /etc/init.d/FAHClient

@MichaIng
Copy link

That file should exist, what does the following show?

ls -l /etc/init.d/FAHClient

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3.Component - FAHClient Reported issue relates to FAHClient. 3.Component - Installer Reported issue relates to the installer. 4.OS - Debian Reported issue occurs on Debian based OS (Debian, Mint, Ubuntu).
Projects
None yet
Development

No branches or pull requests