Public bug reported: On Ubuntu 17.04 I noticed a variation between system time and hardware time.
I ran hwclock to sync them and got: hwclock: Warning: unrecognized third line in adjtime file (Expected: `UTC' or `LOCAL' or nothing.) my system is running util-linux: Installed: 2.29-1ubuntu2 Candidate: 2.29-1ubuntu2 Version table: *** 2.29-1ubuntu2 500 500 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 Packages 100 /var/lib/dpkg/status I looked in /etc/adjtime; it does have 'UTC' on the third line... There is a similar report and proposed solution at: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=706693 This reporter believed that the problem was a missing newline on the end of the third line. -There is no newline after 'UTC' in /etc/adjtime on my system. -Manually adding a newline does make the warning not appear when invoking hwclock, as suggested by the above report. -However, the proposed solution (adding a final \n to the printf line in hwclock.sh) is already present in my /etc/init.d/hwclock.sh. ProblemType: Bug DistroRelease: Ubuntu 17.04 Package: util-linux 2.29-1ubuntu2 ProcVersionSignature: Ubuntu 4.10.0-24.28-generic 4.10.15 Uname: Linux 4.10.0-24-generic x86_64 ApportVersion: 2.20.4-0ubuntu4.1 Architecture: amd64 CurrentDesktop: Unity:Unity7 Date: Tue Jun 27 04:50:29 2017 InstallationDate: Installed on 2015-11-18 (586 days ago) InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417) SourcePackage: util-linux UpgradeStatus: Upgraded to zesty on 2017-04-19 (68 days ago) ** Affects: util-linux (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug hwclock util-linux zesty ** Summary changed: - hwclock creates incorrect /etc/adjtime + incorrect /etc/adjtime ** Tags added: hwclock util-linux -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to util-linux in Ubuntu. https://bugs.launchpad.net/bugs/1700743 Title: incorrect /etc/adjtime Status in util-linux package in Ubuntu: New Bug description: On Ubuntu 17.04 I noticed a variation between system time and hardware time. I ran hwclock to sync them and got: hwclock: Warning: unrecognized third line in adjtime file (Expected: `UTC' or `LOCAL' or nothing.) my system is running util-linux: Installed: 2.29-1ubuntu2 Candidate: 2.29-1ubuntu2 Version table: *** 2.29-1ubuntu2 500 500 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 Packages 100 /var/lib/dpkg/status I looked in /etc/adjtime; it does have 'UTC' on the third line... There is a similar report and proposed solution at: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=706693 This reporter believed that the problem was a missing newline on the end of the third line. -There is no newline after 'UTC' in /etc/adjtime on my system. -Manually adding a newline does make the warning not appear when invoking hwclock, as suggested by the above report. -However, the proposed solution (adding a final \n to the printf line in hwclock.sh) is already present in my /etc/init.d/hwclock.sh. ProblemType: Bug DistroRelease: Ubuntu 17.04 Package: util-linux 2.29-1ubuntu2 ProcVersionSignature: Ubuntu 4.10.0-24.28-generic 4.10.15 Uname: Linux 4.10.0-24-generic x86_64 ApportVersion: 2.20.4-0ubuntu4.1 Architecture: amd64 CurrentDesktop: Unity:Unity7 Date: Tue Jun 27 04:50:29 2017 InstallationDate: Installed on 2015-11-18 (586 days ago) InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417) SourcePackage: util-linux UpgradeStatus: Upgraded to zesty on 2017-04-19 (68 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1700743/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp