Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress Modern WordPress Workflow The Staging Server Staging Hosting

Scott Paterson
Scott Paterson
26,869 Points

Woosh issue with running the ServerPilot Installer

Soo when I run this code

(test -e /usr/bin/wget || (sudo apt-get update && sudo apt-get -y install wget)) && \ sudo wget -nv -O serverpilot-installer.py https://download.serverpilot.io/serverpilot-installer.py && \ sudo python serverpilot-installer.py \ --server-id=vavJBplJUGOr8xBH \ --server-apikey=H768CNWvsMsEjsc0ouQp3GZYgUqhow29cCzg7xPK7zY

I get sudo: apt-get: command not found

And so it does not install so currently stuck and not sure the way forward :S

any help please?

Jesse Petersen
Jesse Petersen
Treehouse Guest Teacher

ServePilot is ONLY for 64-bit Ubuntu 14.04 and with that installed on a fresh VPS, it will work right out of the gate. If you have an existing disk image that isn't 64-bit Ubuntu 14.04, then you need to make a backup of the data and use 64-bit Ubuntu 14.04.

1 Answer

apt-get is a package manager for linux, and should be installed.

What Operating System/Distro/Version are you running on your staging server?

I think server pilot is only compatible with 64-bit Ubuntu 14.04

Scott Paterson
Scott Paterson
26,869 Points

Hi David

I am on a Mac with Yosemite version 10.10.3 just updated now , ah I missed that part about Ubuntu well never sunk in to my mind.

I see.. if you don't have a VPS or your like me and your VPS has some other sort of management like cPanel and want to follow along I recommend trying to setup an Ubuntu Virtual Machine, that's what I'm using on my mac.

Virtual Box

Ubuntu Server Download

Looks like you can use WP-CLI straight on Mac OS X

Scott Paterson
Scott Paterson
26,869 Points

Thanks for your help David, Managed the WP-CLI on the mac no problem, will look into the setting up the virtual box and ubuntu, cause some off the stuff I am doing here is new its overwhelming and probably been confusing myself a little, been fine on command line type stuff so far probably need to watch this course over a few times lol.