[Bug 553237] Re: awk errors and invalid /etc/default/adjtimex

Savvas Radevic vicedar at gmail.com
Wed Apr 7 12:43:16 BST 2010


Bret, try these packages:
64-bit: https://launchpad.net/~medigeek/+archive/experimental/+files/adjtimex_1.28-1ubuntu1_amd64.deb
32-bit: https://launchpad.net/~medigeek/+archive/experimental/+files/adjtimex_1.28-1ubuntu1_i386.deb

It still happens. I have no idea what triggers it, but the sanity check
is to blame.

Here's my command log:
$ sudo rm /etc/default/adjtimex 

$ sudo adjtimexconfig 
Comparing clocks (this will take 70 sec)...done.
awk: BEGIN{print ((to-10000)*100 + override)./65536.)*.0864}
awk:                                        ^ syntax error
awk: BEGIN{print ((to-10000)*100 + override)./65536.)*.0864}
awk:                                          ^ unterminated regexp
awk: cmd. line:1: BEGIN{print ((to-10000)*100 + override)./65536.)*.0864}
awk: cmd. line:1:                                                        ^ unexpected newline or end of string
Adjusting system time by  sec/day to agree with CMOS clock...done.

$ cat /etc/default/adjtimex
#  /etc/default/adjtimex - configuration file for adjtimex(8)
#
#  you may adjust these values manually or by calling /usr/sbin/adjtimexconfig
#
#  This file is sourced by /etc/init.d/adjtimex
#
TICK=to
FREQ=override).

$ sudo aptitude purge adjtimex
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
The following packages will be REMOVED:
  adjtimex{p} 
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 176kB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 197728 files and directories currently installed.)
Removing adjtimex ...
Purging configuration files for adjtimex ...
removing debconf db entries
removed debconf db entries
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Writing extended state information... Done

$ sudo aptitude clean
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done

$ sudo apt-get install adjtimex
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  adjtimex
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 58.2kB of archives.
After this operation, 176kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ lucid/universe adjtimex 1.28-1 [58.2kB]
Fetched 58.2kB in 26s (2,219B/s)                                                                                
Preconfiguring packages ...
Selecting previously deselected package adjtimex.
(Reading database ... 197718 files and directories currently installed.)
Unpacking adjtimex (from .../adjtimex_1.28-1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up adjtimex (1.28-1) ...
update-rc.d: warning: adjtimex start runlevel arguments (S) do not match LSB Default-Start values (2 3 4 5)
update-rc.d: warning: adjtimex stop runlevel arguments (none) do not match LSB Default-Stop values (0 1 6)
Regulating system clock...done.
Comparing clocks (this will take 70 sec)...done.
awk: BEGIN{print ((to-10000)*100 + override)./65536.)*.0864}
awk:                                        ^ syntax error
awk: BEGIN{print ((to-10000)*100 + override)./65536.)*.0864}
awk:                                          ^ unterminated regexp
awk: cmd. line:1: BEGIN{print ((to-10000)*100 + override)./65536.)*.0864}
awk: cmd. line:1:                                                        ^ unexpected newline or end of string
Adjusting system time by  sec/day to agree with CMOS clock...done.


$ sudo adjtimex --adjust
                                      --- current ---   -- suggested --
cmos time     system-cmos  error_ppm   tick      freq    tick      freq
1270640189       1.252710
1270640199       1.352441     9973.1  10000         0
1270640209       1.452065     9962.4  10000         0    9900   2464687
1270640219       1.551696     9963.1  10000         0    9900   2417812
1270640229       1.655592    10389.6  10000         0    9896    682212

ERROR: required correction is greater than plus/minus 500 parts 
per million, quitting (use --force-adjust to override).


** Changed in: adjtimex (Ubuntu)
       Status: Incomplete => New

-- 
awk errors and invalid /etc/default/adjtimex
https://bugs.launchpad.net/bugs/553237
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.

Status in “adjtimex” package in Ubuntu: New
Status in “adjtimex” package in Debian: New

Bug description:
Binary package hint: adjtimex
Package version: 1.28-1

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu lucid (development branch)
Release:	10.04
Codename:	lucid


Bug report exists for debian too: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557949

I have the same problem on Ubuntu 10.04 (lucid, still under testing).
This error makes this package unusable.

It looks like that "Correctly apply +-500 ppm sanity check" applied for version 1.28 is causing problems.
Also, bug #559882 ( http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559882 ) seems to be a duplicate of this one.

I have the same problem:

$ sudo aptitude install adjtimex
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
  adjtimex
0 packages upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 0B/58.2kB of archives. After unpacking 176kB will be used.
Writing extended state information... Done
Preconfiguring packages ...
Selecting previously deselected package adjtimex.
(Reading database ... 167625 files and directories currently installed.)
Unpacking adjtimex (from .../adjtimex_1.28-1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up adjtimex (1.28-1) ...
update-rc.d: warning: adjtimex start runlevel arguments (S) do not match LSB Default-Start values (2 3 4 5)
update-rc.d: warning: adjtimex stop runlevel arguments (none) do not match LSB Default-Stop values (0 1 6)
Regulating system clock...done.
Comparing clocks (this will take 70 sec)...done.
awk: BEGIN{print ((to-10000)*100 + override)./65536.)*.0864}
awk:                                        ^ syntax error
awk: BEGIN{print ((to-10000)*100 + override)./65536.)*.0864}
awk:                                          ^ unterminated regexp
awk: cmd. line:1: BEGIN{print ((to-10000)*100 + override)./65536.)*.0864}
awk: cmd. line:1:                                                        ^ unexpected newline or end of string
Adjusting system time by  sec/day to agree with CMOS clock...done.

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

$ sudo adjtimex --adjust
                                      --- current ---   -- suggested --
cmos time     system-cmos  error_ppm   tick      freq    tick      freq
1270121506    -124.142183
1270121516    -123.957160    18502.3  10000         0
1270121526    -123.772238    18492.2  10000         0    9815    511312
1270121536    -123.571375    20086.3  10000         0    9799    897037
1270121546    -123.386457    18491.8  10000         0    9815    537875

ERROR: required correction is greater than plus/minus 500 parts
per million, quitting (use --force-adjust to override).

$ sudo adjtimex --adjust --force-adjust
                                      --- current ---   -- suggested --
cmos time     system-cmos  error_ppm   tick      freq    tick      freq
1270121703    -120.372324
1270121713    -120.187284    18504.0  10000         0
1270121723    -119.986438    20084.6  10000         0    9799   1009537
1270121733    -119.801500    18493.8  10000         0    9815    406625
1270121743    -119.596560    20494.0  10000         0    9795    392687

WARNING: required correction is greater than plus/minus 500 parts
per million, but adjusting anyway per your request.
1270121753    -119.627563    -3100.3   9795    392687    9826    412337
1270121763    -119.639954    -1239.1   9795    392687    9807   2955737
1270121773    -119.652301    -1234.7   9795    392687    9807   2666674

WARNING: required correction is greater than plus/minus 500 parts
per million, but adjusting anyway per your request.







More information about the Ubuntu-sponsors mailing list