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've setup an Ubuntu server using Virtualbox and Vagrant using these instructions:

I played around with the OS using the command line for a while and since I'm new to all things linux I decided to install the Ubuntu desktop using these commands:

sudo apt-get update  
sudo apt-get install ubuntu-desktop --no-install-recommends  

Before installing the desktop everything worked like it should from a command line. After installing the desktop gui it looks like things are missing or unable to be found. For example going to a command line and typing in "bundle install" results in the error The program 'bundle' is currently not installed. You can install it by typing ...

Does installing a desktop gui on a ubuntu server screw around with existing installed files or did the "environment variables" get jacked with?

What files should I check to fix this?

share|improve this question
up vote 1 down vote accepted

When you did a sudo apt-get install ubuntu-desktop it would have listed the actions to be performed in terms of installing new packages, upgrading existing packages and removal of conflicting packages if applicable. Did you see anything in that to suspect removal?

Normally, installing 'ubuntu-desktop' metapackage shouldn't in any way affect something like 'bundle'. I don't know how the VM provided by discourse is setup. If it is using some thing like RVM ( you might have to activate the settings of RVM into your shell before you can use the stuff installed within RVM.

share|improve this answer
The install scrolled by so fast and there was no way to scroll back up once it was done. Is the command 'bundle' apart of the Ubuntu OS or is this apart of ruby or some other program? – TugboatCaptain Apr 8 '13 at 23:32
'bundle' is a program that can be installed using your system's package manager apt-get install bundler in debian and its derivatives. But there is also something called 'gem' which works as a package manager for ruby modules/gems. So a gem install bundler could also be used to install bundler. Normally installing stuff on system-wide ruby is not such a good idea. So people use stuff like RVM ( to create isolated ruby environments and install the ruby gems inside that using gem install command – Guruprasad Apr 9 '13 at 17:09
@StrandedPirate In the future, do apt-get --dry-run install ubuntu-desktop | less to scroll over the list of modifications without applying them. – ignis Apr 18 '13 at 14:11

I had to add the following to the .bashrc file in my home directory. This modifies the environment PATH variable for all consoles to include the bin directory for ruby. There's probably more paths needed as well to fix bundler and others.

share|improve this answer

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.