New debian not functional


#1

Hello,
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
Thanks
Jens


#2

Hello,

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

Cheers,
Benedikt


#3

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 http://security.debian.org stretch/updates InRelease [94.3 kB]
Ign:2 http://deb.debian.org/debian stretch InRelease
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://deb.debian.org/debian stretch-backports InRelease [91.8 kB]
Get:5 http://deb.debian.org/debian stretch Release [118 kB]
Get:6 http://deb.debian.org/debian stretch Release.gpg [2,434 B]
0% [1 InRelease gpgv 94.3 kB] [Connecting to ppa.launchpad.net (91.189.95.83)]terminate called after throwing an instance of ‘std::runtime_error’
what(): random_device::__x86_rdrand(void)
Aborted

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

Jens


#4

Hello Jens,

after checking it with the concerned team, they informed me that this is a bug in apt:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1784796

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 google.com 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.

Benedikt


#5

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