You are not logged in.

#1 2012-01-20 03:36:32

pottzie
Member
Registered: 2010-05-08
Posts: 117

[solved] Pacman upgrade says "not enough random bytes."

Here's what I got when pacman upgraded:

gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: Generating pacman keychain master key...

Not enough random bytes available.  Please do some other work to give
the OS a chance to collect more entropy! (Need 280 more bytes)
...........+++++
........+++++
gpg: key 0690A807 marked as ultimately trusted
gpg: Done
==> Updating trust database...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u


Is this what's supposed to happen, and am I OK to go ahead and run pacman -Syu?

Last edited by pottzie (2012-01-20 04:11:19)

Offline

#2 2012-01-20 03:51:38

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,648

Re: [solved] Pacman upgrade says "not enough random bytes."

Everything is fine.  Entropy is a measure of the disorder of things.  In the generation of random numbers, entropy is good.  For the heat death of the universe, entropy is bad.

To create really random numbers, do things with your computer that will generate random results.  Examples: time between keystrokes typed by a human, time to get a block of data from the Internet, time for a printer to print a page of data, ...

Your computer knows how to gather entropy, just use it for other things while your are waiting.  If everything your machine is doing is deterministic, the entropy is low.

Do some browsing and the key generation will finish sooner.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2012-01-20 04:10:07

pottzie
Member
Registered: 2010-05-08
Posts: 117

Re: [solved] Pacman upgrade says "not enough random bytes."

Thanks. Just ran -Syu, and all seemed to work as it should.
Solved. Thanks again.

Offline

#4 2012-01-20 04:26:00

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: [solved] Pacman upgrade says "not enough random bytes."

Note you'll often see this requirement for entropy in contexts where strong encryption or digital signatures are required.

Eg, work through some tutorials on how to use GnuPG to generate RSA key pairs, or (iirc) how to do passwordless ssh, and you'll again encounter this need to generate entropy.

Last edited by /dev/zero (2012-01-20 04:26:20)

Offline

#5 2012-01-23 14:08:27

yoko
Member
From: Southeastern United States
Registered: 2010-01-25
Posts: 6

Re: [solved] Pacman upgrade says "not enough random bytes."

I have a headless machine for which I have no idea how to generate entropy for the key init.  Anyone know how I might work that out?

Offline

#6 2012-01-23 14:16:07

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,648

Re: [solved] Pacman upgrade says "not enough random bytes."

ssh into it and list some directories, do some maintenance, update your pacman repositories, ....


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2012-01-24 22:53:51

ultramancool
Member
Registered: 2008-02-23
Posts: 3

Re: [solved] Pacman upgrade says "not enough random bytes."

Why the hell is this necessary? Less-than-random keys can be used just fine for this purpose, it's ridiculous. The most it should need should be ~32 bytes to seed fortuna or yarrow with a 256 bit key.

Last edited by ultramancool (2012-01-24 22:56:05)

Offline

#8 2012-01-24 23:05:54

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [solved] Pacman upgrade says "not enough random bytes."

So you traveled all the way from 2008 to tell us this?

Offline

Board footer

Powered by FluxBB