How install appium in ubuntu VM

Hi

I want install appium in my VM with ubuntu. But it is giving me error with the installation

This is my circle.yml file

machine:
java:
version: openjdk8
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
ruby:

dependencies:
pre:
- git clone git@bitbucket.org:grability/xxxxx.git ~/appiumtest
- gem install bundler
- sudo apt-get update
- sudo apt-get install nodejs
- sudo apt-get install npm
- npm install -g appium
- npm install wd
- git clone git@bitbucket.org:xxxx/apk.git ~/app
- emulator -avd circleci-android24 -no-window:
background: true
parallel: true
- circle-android wait-for-boot

test:
- appium:
background: true
- sudo gem uninstall json
- cd ~/appiumtest; bundle config silence_root_warning true; yes | sudo bundle install
- cd ~/appiumtest; cucumber APPIUM_CONF=“conf/android.toml” SERVICES_MOCK_CONF=“conf/service.toml” IDS=“conf/ids.toml” features/feature.feature

Anyone have any ideas?