Install Network Time Protocol

Asked by Ross Roads

Issue 31 of Full CircleMagazine suggested installing Network Time Protocol by entering
aptitude install ntp ntpdate.

I did that in terminal, the message said:
ross@netbook:~$ aptitude install ntp ntpdate
Reading package lists... Done
Building dependency tree
Reading state information... Done
Initializing package states... Done
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
ross@netbook:~$

Is there something else/different I need to do?
Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu yelp Edit question
Assignee:
No assignee Edit question
Solved by:
Mitch Towner
Solved:
Last query:
Last reply:
Revision history for this message
Best Mitch Towner (kermiac) said :
#1

Hi Ross,
              Installing NTP requires root permissions. Please use the "sudo" command.
Please try this again using the following command:
sudo aptitude install ntp ntpdate

Revision history for this message
Mitch Towner (kermiac) said :
#2

Ross,
You may also want to have a read through Section 3 of the following Ubuntu documentation page:
https://help.ubuntu.com/community/UbuntuTime

Revision history for this message
Ross Roads (rossroads) said :
#3

Thanks Mitch