[Bug 1870316] Re: 'sudo hwclock -s' fails with 'settimeofday() failed: Invalid argument'
Mauricio Faria de Oliveira
mfo at canonical.com
Thu Apr 2 15:14:10 UTC 2020
Rik, thanks for reporting this bug.
You're right, it's a regression in hwclock between glibc 2.30/2.31.
It's fixed in util-linux upstream; preparing a debdiff for Focal.
...
$ lsb_release -cs
focal
Older glibc:
---
$ dpkg -s util-linux libc6 | grep ^Version:
Version: 2.34-0.1ubuntu8
Version: 2.30-0ubuntu3
$ sudo hwclock -s
$ echo $?
0
Newer glibc:
---
$ sudo apt install libc6
.
The following packages will be upgraded:
libc-bin libc-dev-bin libc6 libc6-dev locales
.
$ dpkg -s util-linux libc6 | grep ^Version:
Version: 2.34-0.1ubuntu8
Version: 2.31-0ubuntu6
$ sudo hwclock -s
hwclock: settimeofday() failed: Invalid argument
$ echo $?
1
Upstream:
---
This is fixed with this upstream commit.
Preparing a debdiff for Focal.
ubuntu at focal:~/util-linux$ sudo ./hwclock -s
$ echo $?
0
commit cd781c405be82540484da3bfe3d3f17a39b8eb5c
Author: J William Piggott <elseifthen at gmx.com>
Date: Fri Feb 21 20:03:47 2020 -0500
hwclock: make glibc 2.31 compatible
** Changed in: util-linux (Ubuntu)
Status: New => Confirmed
** Changed in: util-linux (Ubuntu)
Importance: Undecided => Medium
** Changed in: util-linux (Ubuntu)
Importance: Medium => High
** Changed in: util-linux (Ubuntu)
Assignee: (unassigned) => Mauricio Faria de Oliveira (mfo)
** Tags added: sts-sponsor-mfo
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1870316
Title:
'sudo hwclock -s' fails with 'settimeofday() failed: Invalid argument'
Status in util-linux package in Ubuntu:
Confirmed
Bug description:
In Focal VM.
util-linux: 2.34-0.1ubuntu8
$ sudo hwclock -s
[sudo] password for focal:
hwclock: settimeofday() failed: Invalid argument
Result should be syncing the time to the RTC, which until recently
(possibly before glibc update) worked.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: util-linux 2.34-0.1ubuntu8
ProcVersionSignature: Ubuntu 5.4.0-18.22-generic 5.4.24
Uname: Linux 5.4.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu22
Architecture: amd64
CurrentDesktop: KDE
Date: Thu Apr 2 11:20:45 2020
InstallationDate: Installed on 2019-12-24 (99 days ago)
InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Alpha amd64 (20191224)
SourcePackage: util-linux
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1870316/+subscriptions
More information about the foundations-bugs
mailing list