# Bootstrap problem

**URL:** <https://discourse.chef.io/t/bootstrap-problem/10777>\
**Category:** Chef Infra (archive)\
**Created:** [April 14, 2017, 9:28am UTC](https://discourse.chef.io/t/bootstrap-problem/10777 "2017-04-14T09:28:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aparna11jha](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@aparna11jha](https://discourse.chef.io/u/aparna11jha)\
**Post date:** [April 14, 2017, 9:28am UTC](https://discourse.chef.io/t/bootstrap-problem/10777/1 "2017-04-14T09:28:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chemminger](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/chemminger/32/1747_2.png) [@chemminger](https://discourse.chef.io/u/chemminger)\
**Post date:** [April 14, 2017, 11:26pm UTC](https://discourse.chef.io/t/bootstrap-problem/10777/2 "2017-04-14T23:26:21Z")

</div>

I usually use:

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

---

<div class="post-metadata">

**Author:** ![kkeane](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kkeane](https://discourse.chef.io/u/kkeane)\
**Post date:** [April 15, 2017, 12:20am UTC](https://discourse.chef.io/t/bootstrap-problem/10777/3 "2017-04-15T00:20:14Z")

</div>

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](http://www.4nettech.com)  
Our values: Privacy, Liberty, Justice  
See [https://www.4nettech.com/corp/the-nettech-values.html](https://www.4nettech.com/corp/the-nettech-values.html)
