lundi 13 février 2023

Insufficient Randomness on Arch Linux

I have some experience with Linux systems and finally switched to Arch Linux. The setup went fine and everything seemed to work well until this morning. Since then I encounter two problems that could have the same source, here I will briefly describe theme:

When trying to clone repositories from github (or other sources) using ssl I will get the following message on my arch setup:

fatal: unable to access 'https://github.com/random/repository/to/clone.git': Insufficient randomness

When trying to generate a key pair using ssh-keygen I receive the following error:

PRNG is not seeded

So my guess was, that this has something to do with random generators of the system and researched a lot there.

I did already recreate both

mknod /dev/random c 1 8

and

mknod /dev/urandom c 1 9

using mknod.

I installed the following packages:

  • rng-tools 6.16.1
  • jitterentropy 3.4.1
  • rtl-sdr 10.8.0

I installed Arch Linux last Friday and everything seemed to work fine. The Kernel is 6.1.10, it should be up to date. Due to the problems with the ssl connection I cannot not directly use pacman to install new packages or update the installed versions, but I is possible to download them from a mirror and install them by using pacman -U.

The entropy available seems to be stable at 256, which older pages tell me is way to low, but with the newer kernel versions is fine. I use a laptop from DELL, if the specs are relevant I can provide them. For all I read, there are a lot of old solutions but I found no matching problem and not quite relevant for more modern kernels (like using haveged, could be, but should not be necessary how I understood it).

To use root privileged to create keys or clone a git does not change a thing.

I hope anyone has an idea that will help me and I will provide any further information that could be helpful for solving the problem.




Aucun commentaire:

Enregistrer un commentaire