Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm getting a syntax error when trying to install Bumblebee (Hardware graphics switcher). I'm running Ubuntu 11.04. My computer is a Sony Vaio Z (VPCZ122Gx). The github page is here:

Bumblebee (previously called prime-ng) is the linux alternative to the Nvidia Optimus features in Windows

The syntax error is:

./ line 532: syntax error near unexpected token `['
./ line 532: ` if [ -f /usr/local/bin/bumblebee-enablecard ]'

Thanks in advance!
Andrew Hauser

share|improve this question
up vote 4 down vote accepted

There is a typo in the installer for the version of Bumblebee that you downloaded. It was fixed only a couple hours ago; update your Git repository and try installing Bumblebee again.

share|improve this answer
Thanks! That fixed the syntax error.. – Shibumi May 25 '11 at 13:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.