title: Installing WKHTMLtoPDF 0.12.x 64 bit on Ubuntu 12.04.5 (Dreamhost VPS)
body: <p>I'm trying to install WKHTMLtoPDf 0.12.x on a Dreamhost VPS running Ubuntu 12.04.5.  I found a realatively new <a href="https://askubuntu.com/questions/556667/how-to-install-wkhtmltopdf-0-12-1-on-ubuntu-server">resource</a> and it seems like it should be pretty straight forward:</p>
  
  <pre><code>sudo add-apt-repository ppa:pov/wkhtmltopdf
  sudo apt-get update
  sudo apt-get install wkhtmltopdf 
  </code></pre>
  
  <p>But, it tells me the user I'm SSH'd in with using Putty is not in the Sudoers file, and the incident will be reported.</p>
  
  <p>Is this the right way to install wkhtmltopdf on the Dreamhost VPS? and if so how do you add a user to the sudoers file?</p>
  
  <p>I'm not overly savy with SSH commands or servers so any explanations would be best at a high-level.</p>
  
  <p><strong>UPDATE</strong> </p>
  
  <p>Dreamhost was able to help me get on the sudoers list with no issues, but the commands listed above don't seem to work.  I'm at root after typing:</p>
  
  <pre><code>sudo -s
  </code></pre>
  
  <p>But now </p>
  
  <pre><code>add-apt-repository ppa:pov/wkhtmltopdf
  ERROR - add-apt-repository: command not found
  </code></pre>
  
  <p>and</p>
  
  <pre><code>apt-get ppa:pov/wkhtmltopdf (also tried it with just wkhtmltopdf)
  ERROR - Invalid operation ppa:pov/wkhtmltopdf
  </code></pre>
  
  <p>I also tried</p>
  
  <pre><code>apt-get install wkhtmltopdf
  </code></pre>
  
  <p>Which installed wkhtmltopdf, but it installed version 0.9.9.3, which is super old.  How do I update this?  Or just get rid of it?</p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>To remove the package and all its dependencies I used this <a href="https://gist.github.com/ermand/67a4ce7cf01f380c7e84" rel="nofollow noreferrer">resource</a>:</p>
  
  <pre><code>apt-get remove --purge wkhtmltopdf
  </code></pre>
  
  <p>and then as suggested by the command prompt ran autoremove afterwards to remove the dependencies.</p>
  
  <pre><code>apt-get autoremove
  </code></pre>
  
  <p><strong>UPDATE 3</strong></p>
  
  <p>Okay, so through a coordinated effect this bit of <a href="http://lifeonubuntu.com/ubuntu-missing-add-apt-repository-command/" rel="nofollow noreferrer">help</a> was found, so using:</p>
  
  <pre><code>apt-get install software-properties-common python-software-properties
  </code></pre>
  
  <p>I can now use </p>
  
  <pre><code>add-apt-repository ppa:pov/wkhtmltopdf
  </code></pre>
  
  <p>And that allows the use of all the commands above (minus sudo if you typed "sudo -s")</p>
  
  <p><strong>BUT</strong> now I'm sitting in front of a freaky pink screen that is asking me to install Grub?  and I have no idea what I should do?  Should I say yes or no?  Why?  </p>
  
  <p><strong>UPDATE 4</strong></p>
  
  <p>I SSH'd in using another shell to check if you have grub installed or not and by typing:</p>
  
  <pre><code>grub-install -v
  </code></pre>
  
  <p>I have 1.99-21ubuntu3.17, so I thought I'd hit no, but then it just keeps asking me to if I want to install Grub, which apparently is issue with this version of Ubuntu.  So I was forced to hit yes and everything seems to be working.  </p>
  
  <p>In case this was a bad decision to hit yes let me know.</p>