New debian not functional


I just bought a new debian stretch mini, and apt-get is not functional from the start.

(apt-get update crashes with a weird error about random_device)

So I can’t do updates or upgrades and the thing is basically useless.

Any idea to get this running would be appreciated



I just tried to reproduce your issue but it works fine for me. Do you still have any issue?



Yes, nothing changed.

What I did :

  • buy a “debian mini strech 25G”
  • log into that server
  • execute “apt-get update”

and I get

root@redacted:~# apt-get update
Get:1 stretch/updates InRelease [94.3 kB]
Ign:2 stretch InRelease
Get:3 stretch-updates InRelease [91.0 kB]
Get:4 stretch-backports InRelease [91.8 kB]
Get:5 stretch Release [118 kB]
Get:6 stretch Release.gpg [2,434 B]
0% [1 InRelease gpgv 94.3 kB] [Connecting to (]terminate called after throwing an instance of ‘std::runtime_error’
what(): random_device::__x86_rdrand(void)

and this has nothing to do with the network. wget works perfectly.



Hello Jens,

after checking it with the concerned team, they informed me that this is a bug in apt:

The error appears because the entropy pool got dry.
It has been fixed in apt version 1.7. You can either upgrade it manually or by doing multiple pings to or something else in the background.
Adding things that do random stuff like ping of disk access or whatever generates back some entropy and allows apt to succeed.



Hi, I had upgraded to version 1.7, but it didn’t help.
Anyhow, I already gave up, can’t spend two days in getting a server running.


Hi, I have the same issue on my server! I found nothing that generates entropy (ping, reading all files on disk, running a Phoronix MP3 encoding benchmark…)

I can’t «upgrade apt manually», as the apt 1.8 package available on the Debian repository depends on so many packages not available on my Debian 9.6.

I’m stuck I can’t upgrade the Debian version because I can’t type “apt update”. Can you help me?