Bootstrap problem

I am unable to bootstrap my ubuntu node .
Following command I have used to bootstrap
knife bootstrap username@i.p.address --bootstrap-proxy 10.28.24.76:8080 -P xxxxx -N “node_name” --sudo

The error I am getting is dpkg: error: requested operation requires superuser privilege

Please help me out. I am stuck

I usually use:

Knife bootstrap x.x.x.x -r runlist -E environment -N nodename -x sshuser -P sshpassword --sudo

The user you are using is not root, and the --sudo doesn’t seem to be working. You may want to rearrange the arguments (I don’t think they are position sensitive, but you never know) and put the --sudo earlier. Also check the log files on the node if there is any error sudo-related, and check the sudoers file to make sure the user can actually sudo.

Kevin Keane
Whom the IT Pros Call
The NetTech
http://www.4nettech.com
Our values: Privacy, Liberty, Justice
See https://www.4nettech.com/corp/the-nettech-values.html