apt update fails - 'std::runtime_error' what(): random_device::__x86_rdrand(void)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I am seeing the following error randomly on issuing sudo apt update:
Get:3 http://
0% [1 InRelease gpgv 69.9 kB] [3 InRelease 7,779 B/65.4 kB 12%]terminate called after throwing an instance of 'std::runtime_
what(): random_
Aborted
Once this occurs, it normally takes at least one, but frequently more than one reboot to resolve. It only happens on one of my systems - a self-build server based on Asrock Rack motherboard C3758D4I-4L running Ubuntu server.
I've observed the same issue on the same hardware with the Ubuntu 18.04.1 live ISO. I'm booting in Legacy mode.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: apt 1.6.3
ProcVersionSign
Uname: Linux 4.15.0-29-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
Date: Wed Aug 1 08:37:28 2018
InstallationDate: Installed on 2018-04-28 (94 days ago)
InstallationMedia: Ubuntu-Server 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
This should be a problem with not enough entropy that should have been fixed in recent kernel versions. APT 1.7 will have a fix for that, it's not backported to 1.6 yet, but it should be easily doable.
I'd say: make sure you are running the latest kernel and that you don't start apt shortly after boot.