Failed to start rng-tools

New to Debian (Or Linux in general)? Ask your questions here!

Failed to start rng-tools

Postby r00t87 » 2020-04-20 06:57

Hi all,

I installed rng-tools now but i received this error after installation. This tool was working before re-format. I made a fresh installation and now it is not working anymore. Any help would be appreciated.

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
rng-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 43.1 kB of archives.
After this operation, 124 kB of additional disk space will be used.
Get:1 tor+http://vwakviie2ienjx6t.onion/debian buster/main amd64 rng-tools amd64 2-unofficial-mt.14-1+b2 [43.1 kB]
Fetched 43.1 kB in 11s (3,770 B/s)
Selecting previously unselected package rng-tools.
(Reading database ... 202707 files and directories currently installed.)
Preparing to unpack .../rng-tools_2-unofficial-mt.14-1+b2_amd64.deb ...
Unpacking rng-tools (2-unofficial-mt.14-1+b2) ...
Setting up rng-tools (2-unofficial-mt.14-1+b2) ...
Job for rng-tools.service failed because the control process exited with error code.
See "systemctl status rng-tools.service" and "journalctl -xe" for details.
invoke-rc.d: initscript rng-tools, action "start" failed.
● rng-tools.service
Loaded: loaded (/etc/init.d/rng-tools; generated)
Active: failed (Result: exit-code) since Mon 2020-04-20 10:25:27 +03; 11ms ago
Docs: man:systemd-sysv-generator(8)
Process: 25315 ExecStart=/etc/init.d/rng-tools start (code=exited, status=1/FAILURE)

Apr 20 10:25:27 debian systemd[1]: Starting rng-tools.service...
Apr 20 10:25:27 debian rng-tools[25315]: Starting Hardware RNG entropy gatherer daemon: (Hardware RNG device inode not found)
Apr 20 10:25:27 debian rng-tools[25315]: /etc/init.d/rng-tools: Cannot find a hardware RNG device to use.
Apr 20 10:25:27 debian systemd[1]: rng-tools.service: Control process exited, code=exited, status=1/FAILURE
Apr 20 10:25:27 debian systemd[1]: rng-tools.service: Failed with result 'exit-code'.
Apr 20 10:25:27 debian systemd[1]: Failed to start rng-tools.service.
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for systemd (241-7~deb10u3) ...

systemctl status rng-tools

systemctl status rng-tools
● rng-tools.service
Loaded: loaded (/etc/init.d/rng-tools; generated)
Active: failed (Result: exit-code) since Mon 2020-04-20 10:25:27 +03; 2min 38s ago
Docs: man:systemd-sysv-generator(8)

journalctl -u rng-tools

-- Logs begin at Wed 2020-04-15 10:32:09 +03, end at Mon 2020-04-20 10:43:38 +03. --
Apr 20 10:25:27 debian systemd[1]: Starting rng-tools.service...
Apr 20 10:25:27 debian rng-tools[25315]: Starting Hardware RNG entropy gatherer daemon: (Hardware RNG device inode not found)
Apr 20 10:25:27 debian rng-tools[25315]: /etc/init.d/rng-tools: Cannot find a hardware RNG device to use.
Apr 20 10:25:27 debian systemd[1]: rng-tools.service: Control process exited, code=exited, status=1/FAILURE
Apr 20 10:25:27 debian systemd[1]: rng-tools.service: Failed with result 'exit-code'.
Apr 20 10:25:27 debian systemd[1]: Failed to start rng-tools.service.
r00t87
 
Posts: 10
Joined: 2020-04-19 11:44

Re: Failed to start rng-tools

Postby r00t87 » 2020-04-20 07:01

I solved the issue with this.

Add the /dev/urandom path to the rng config file:

sudo echo "HRNGDEVICE=/dev/urandom" >> /etc/default/rng-tools
r00t87
 
Posts: 10
Joined: 2020-04-19 11:44


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable