This command:
addgroup --system --quiet ntp
is idempotent on default precise systems, so it's not quite clear why it fails on your system. Maybe it's possible to do some debugging on running that command.
ubuntu@ubuntu:~$ cat /etc/issue Ubuntu 12.04.5 LTS \n \l
ubuntu@ubuntu:~$ dpkg --list | grep ntp ii ntp 1:4.2.6.p3+dfsg-1ubuntu3.4 Network Time Protocol daemon and utility programs ii ntpdate 1:4.2.6.p3+dfsg-1ubuntu3.4 client for setting system time from NTP servers ubuntu@ubuntu:~$ grep ntp /etc/group ntp:x:112: ubuntu@ubuntu:~$ sudo addgroup --system --quiet ntp; echo $? 0
This command:
addgroup --system --quiet ntp
is idempotent on default precise systems, so it's not quite clear why it fails on your system. Maybe it's possible to do some debugging on running that command.
ubuntu@ubuntu:~$ cat /etc/issue
Ubuntu 12.04.5 LTS \n \l
ubuntu@ubuntu:~$ dpkg --list | grep ntp p3+dfsg- 1ubuntu3. 4 Network Time Protocol daemon and utility programs p3+dfsg- 1ubuntu3. 4 client for setting system time from NTP servers
ii ntp 1:4.2.6.
ii ntpdate 1:4.2.6.
ubuntu@ubuntu:~$ grep ntp /etc/group
ntp:x:112:
ubuntu@ubuntu:~$ sudo addgroup --system --quiet ntp; echo $?
0