title: Vagrant - SSH command responded with a non-zero exit status
body: <p>I'm getting this error running for the first time <code>vagrant up</code>. Can't figure out what's wrong when executing the task: "TASK [server : Install Extra Packages]". 
  Throws the error:</p>
  
  <p><strong>The SSH command responded with a non-zero exit status. Vagrant
  assumes that this means the command failed. The output for this command
  should be in the log above. Please read the output to determine what
  went wrong.</strong></p>
  
  <p>Below the log:</p>
  
  <pre><code>==&gt; default: stdin: is not a tty
  ==&gt; default: Ign http://archive.ubuntu.com trusty InRelease
  ==&gt; default: Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
  ==&gt; default: Get:2 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
  ==&gt; default: Get:3 http://security.ubuntu.com trusty-security/main Sources [120 kB]
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports InRelease
  ==&gt; default: Hit http://archive.ubuntu.com trusty Release.gpg
  ==&gt; default: Get:4 http://archive.ubuntu.com trusty-updates/main Sources [384 kB]
  ==&gt; default: Get:5 http://security.ubuntu.com trusty-security/universe Sources [45.8 kB]
  ==&gt; default: Get:6 http://security.ubuntu.com trusty-security/main amd64 Packages [547 kB]
  ==&gt; default: Get:7 http://archive.ubuntu.com trusty-updates/restricted Sources [5,888 B]
  ==&gt; default: Get:8 http://security.ubuntu.com trusty-security/universe amd64 Packages [144 kB]
  ==&gt; default: Get:9 http://archive.ubuntu.com trusty-updates/universe Sources [169 kB]
  ==&gt; default: Get:10 http://security.ubuntu.com trusty-security/main Translation-en [301 kB]
  ==&gt; default: Get:11 http://archive.ubuntu.com trusty-updates/multiverse Sources [7,522 B]
  ==&gt; default: Get:12 http://archive.ubuntu.com trusty-updates/main amd64 Packages [918 kB]
  ==&gt; default: Get:13 http://security.ubuntu.com trusty-security/universe Translation-en [85.0 kB]
  ==&gt; default: Get:14 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [16.4 kB]
  ==&gt; default: Get:15 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [388 kB]
  ==&gt; default: Get:16 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [14.0 kB]
  ==&gt; default: Get:17 http://archive.ubuntu.com trusty-updates/main Translation-en [445 kB]
  ==&gt; default: Get:18 http://archive.ubuntu.com trusty-updates/multiverse Translation-en [7,340 B]
  ==&gt; default: Get:19 http://archive.ubuntu.com trusty-updates/restricted Translation-en [3,842 B]
  ==&gt; default: Get:20 http://archive.ubuntu.com trusty-updates/universe Translation-en [205 kB]
  ==&gt; default: Get:21 http://archive.ubuntu.com trusty-backports/main Sources [9,632 B]
  ==&gt; default: Get:22 http://archive.ubuntu.com trusty-backports/restricted Sources [28 B]
  ==&gt; default: Get:23 http://archive.ubuntu.com trusty-backports/universe Sources [35.2 kB]
  ==&gt; default: Get:24 http://archive.ubuntu.com trusty-backports/multiverse Sources [1,898 B]
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/main amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/restricted amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/universe amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/main Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/multiverse Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/restricted Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/universe Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty Release
  ==&gt; default: Get:25 http://archive.ubuntu.com trusty/main Sources [1,064 kB]
  ==&gt; default: Get:26 http://archive.ubuntu.com trusty/restricted Sources [5,433 B]
  ==&gt; default: Get:27 http://archive.ubuntu.com trusty/universe Sources [6,399 kB]
  ==&gt; default: Get:28 http://archive.ubuntu.com trusty/multiverse Sources [174 kB]
  ==&gt; default: Hit http://archive.ubuntu.com trusty/main amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty/universe amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty/main Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty/multiverse Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty/restricted Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty/universe Translation-en
  ==&gt; default: Ign http://archive.ubuntu.com trusty/main Translation-en_US
  ==&gt; default: Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US
  ==&gt; default: Ign http://archive.ubuntu.com trusty/restricted Translation-en_US
  ==&gt; default: Ign http://archive.ubuntu.com trusty/universe Translation-en_US
  ==&gt; default: Fetched 11.6 MB in 10s (1,147 kB/s)
  ==&gt; default: Reading package lists...
  ==&gt; default: Reading package lists...
  ==&gt; default: Building dependency tree...
  ==&gt; default: Reading state information...
  ==&gt; default: software-properties-common is already the newest version.
  ==&gt; default: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  ==&gt; default: gpg: 
  ==&gt; default: keyring `/tmp/tmp5w8ex696/secring.gpg' created
  ==&gt; default: gpg: 
  ==&gt; default: keyring `/tmp/tmp5w8ex696/pubring.gpg' created
  ==&gt; default: gpg: 
  ==&gt; default: requesting key 7BB9C367 from hkp server keyserver.ubuntu.com
  ==&gt; default: gpg: 
  ==&gt; default: /tmp/tmp5w8ex696/trustdb.gpg: trustdb created
  ==&gt; default: gpg: 
  ==&gt; default: key 7BB9C367: public key "Launchpad PPA for Ansible, Inc." imported
  ==&gt; default: gpg: 
  ==&gt; default: Total number processed: 1
  ==&gt; default: gpg: 
  ==&gt; default:               imported: 1
  ==&gt; default:   (RSA: 1)
  ==&gt; default: OK
  ==&gt; default: Hit http://security.ubuntu.com trusty-security InRelease
  ==&gt; default: Ign http://archive.ubuntu.com trusty InRelease
  ==&gt; default: Get:1 http://ppa.launchpad.net trusty InRelease [16.0 kB]
  ==&gt; default: Hit http://security.ubuntu.com trusty-security/main Sources
  ==&gt; default: Hit http://archive.ubuntu.com trusty-updates InRelease
  ==&gt; default: Hit http://security.ubuntu.com trusty-security/universe Sources
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports InRelease
  ==&gt; default: Get:2 http://ppa.launchpad.net trusty/main amd64 Packages [525 B]
  ==&gt; default: Hit http://security.ubuntu.com trusty-security/main amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty Release.gpg
  ==&gt; default: Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
  ==&gt; default: Get:3 http://ppa.launchpad.net trusty/main Translation-en [322 B]
  ==&gt; default: Hit http://archive.ubuntu.com trusty-updates/main Sources
  ==&gt; default: Hit http://security.ubuntu.com trusty-security/main Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty-updates/restricted Sources
  ==&gt; default: Hit http://security.ubuntu.com trusty-security/universe Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty-updates/universe Sources
  ==&gt; default: Hit http://archive.ubuntu.com trusty-updates/multiverse Sources
  ==&gt; default: Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty-updates/restricted amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty-updates/main Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/main Sources
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/restricted Sources
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/universe Sources
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/multiverse Sources
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/main amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/restricted amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/universe amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/main Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/multiverse Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/restricted Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty-backports/universe Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty Release
  ==&gt; default: Hit http://archive.ubuntu.com trusty/main Sources
  ==&gt; default: Hit http://archive.ubuntu.com trusty/restricted Sources
  ==&gt; default: Hit http://archive.ubuntu.com trusty/universe Sources
  ==&gt; default: Hit http://archive.ubuntu.com trusty/multiverse Sources
  ==&gt; default: Hit http://archive.ubuntu.com trusty/main amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty/universe amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
  ==&gt; default: Hit http://archive.ubuntu.com trusty/main Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty/multiverse Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty/restricted Translation-en
  ==&gt; default: Hit http://archive.ubuntu.com trusty/universe Translation-en
  ==&gt; default: Ign http://archive.ubuntu.com trusty/main Translation-en_US
  ==&gt; default: Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US
  ==&gt; default: Ign http://archive.ubuntu.com trusty/restricted Translation-en_US
  ==&gt; default: Ign http://archive.ubuntu.com trusty/universe Translation-en_US
  ==&gt; default: Fetched 16.8 kB in 4s (3,720 B/s)
  ==&gt; default: Reading package lists...
  ==&gt; default: Reading package lists...
  ==&gt; default: Building dependency tree...
  ==&gt; default: Reading state information...
  ==&gt; default: The following extra packages will be installed:
  ==&gt; default:   python-jinja2 python-markupsafe python-paramiko python-setuptools sshpass
  ==&gt; default: Suggested packages:
  ==&gt; default:   python-jinja2-doc
  ==&gt; default: The following NEW packages will be installed:
  ==&gt; default:   ansible python-jinja2 python-markupsafe python-paramiko python-setuptools
  ==&gt; default:   sshpass
  ==&gt; default: 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
  ==&gt; default: Need to get 2,129 kB of archives.
  ==&gt; default: After this operation, 15.0 MB of additional disk space will be used.
  ==&gt; default: Get:1 http://ppa.launchpad.net/ansible/ansible/ubuntu/ trusty/main ansible all 2.2.0.0-1ppa~trusty [1,608 kB]
  ==&gt; default: Get:2 http://archive.ubuntu.com/ubuntu/ trusty/main python-markupsafe amd64 0.18-1build2 [14.3 kB]
  ==&gt; default: Get:3 http://archive.ubuntu.com/ubuntu/ trusty/main python-jinja2 all 2.7.2-2 [161 kB]
  ==&gt; default: Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main python-paramiko all 1.10.1-1git1build1 [106 kB]
  ==&gt; default: Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-setuptools all 3.3-1ubuntu2 [230 kB]
  ==&gt; default: Get:6 http://archive.ubuntu.com/ubuntu/ trusty/universe sshpass amd64 1.05-1 [10.5 kB]
  ==&gt; default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
  ==&gt; default: Fetched 2,129 kB in 1s (2,109 kB/s)
  ==&gt; default: Selecting previously unselected package python-markupsafe.
  ==&gt; default: (Reading database ... 63004 files and directories currently installed.)
  ==&gt; default: Preparing to unpack .../python-markupsafe_0.18-1build2_amd64.deb ...
  ==&gt; default: Unpacking python-markupsafe (0.18-1build2) ...
  ==&gt; default: Selecting previously unselected package python-jinja2.
  ==&gt; default: Preparing to unpack .../python-jinja2_2.7.2-2_all.deb ...
  ==&gt; default: Unpacking python-jinja2 (2.7.2-2) ...
  ==&gt; default: Selecting previously unselected package python-paramiko.
  ==&gt; default: Preparing to unpack .../python-paramiko_1.10.1-1git1build1_all.deb ...
  ==&gt; default: Unpacking python-paramiko (1.10.1-1git1build1) ...
  ==&gt; default: Selecting previously unselected package python-setuptools.
  ==&gt; default: Preparing to unpack .../python-setuptools_3.3-1ubuntu2_all.deb ...
  ==&gt; default: Unpacking python-setuptools (3.3-1ubuntu2) ...
  ==&gt; default: Selecting previously unselected package sshpass.
  ==&gt; default: Preparing to unpack .../sshpass_1.05-1_amd64.deb ...
  ==&gt; default: Unpacking sshpass (1.05-1) ...
  ==&gt; default: Selecting previously unselected package ansible.
  ==&gt; default: Preparing to unpack .../ansible_2.2.0.0-1ppa~trusty_all.deb ...
  ==&gt; default: Unpacking ansible (2.2.0.0-1ppa~trusty) ...
  ==&gt; default: Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
  ==&gt; default: Setting up python-markupsafe (0.18-1build2) ...
  ==&gt; default: Setting up python-jinja2 (2.7.2-2) ...
  ==&gt; default: Setting up python-paramiko (1.10.1-1git1build1) ...
  ==&gt; default: Setting up python-setuptools (3.3-1ubuntu2) ...
  ==&gt; default: Setting up sshpass (1.05-1) ...
  ==&gt; default: Setting up ansible (2.2.0.0-1ppa~trusty) ...
  ==&gt; default: [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and 
  ==&gt; default: make sure become_method is 'sudo' (default).
  ==&gt; default: This feature will be removed in a 
  ==&gt; default: future release. Deprecation warnings can be disabled by setting 
  ==&gt; default: deprecation_warnings=False in ansible.cfg.
  ==&gt; default: 
  ==&gt; default: PLAY [all] *********************************************************************
  ==&gt; default: 
  ==&gt; default: TASK [setup] *******************************************************************
  ==&gt; default: ok: [192.168.10.15]
  ==&gt; default: 
  ==&gt; default: TASK [server : Update apt] *****************************************************
  ==&gt; default: changed: [192.168.10.15]
  ==&gt; default: 
  ==&gt; default: TASK [server : Install System Packages] ****************************************
  ==&gt; default: changed: [192.168.10.15] =&gt; (item=[u'curl', u'wget', u'python-software-properties'])
  ==&gt; default: 
  ==&gt; default: TASK [server : Install Extra Packages] *****************************************
  ==&gt; default: failed: [192.168.10.15] (item=[u'server.packages']) =&gt; {"failed": true, "item": ["server.packages"], "msg": "No package matching 'server.packages' is available"}
  ==&gt; default:    to retry, use: --limit @/vagrant/ansible/playbook.retry
  ==&gt; default: 
  ==&gt; default: PLAY RECAP *********************************************************************
  ==&gt; default: 192.168.10.15              : ok=3    changed=2    unreachable=0    failed=1   
  The SSH command responded with a non-zero exit status. Vagrant
  assumes that this means the command failed. The output for this command
  should be in the log above. Please read the output to determine what
  went wrong.
  </code></pre>
  
  <p>main.yml were appears "server.packages"</p>
  
  <pre><code>- name: Install Extra Packages
    sudo: yes
    apt: pkg={{ item }} state=latest
    with_items: server.packages
    when: server.packages is defined
  </code></pre>
  
  <p>The virtual machine comes from a configuraiton built in Phansible.com</p>