Obviously you try to install the Ubuntu 14.04 LTS package installer, which is the way I recommend to you.
Please read the instructions https://www.odoo.com/documentation/9.0/setup/install.html carefully! It says:
To install Odoo 9.0 on Debian-based distribution, execute the following commands as root:
This means that you have to change to the root user by executing "sudo su" before you execute the mentioned 3 commands:
ubuntu@ip-192-168-110-153:~$ sudo su
root@ip-192-168-110-153:/home/ubuntu#
Then you execute the commands:
wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
echo "deb http://nightly.odoo.com/9.0/nightly/deb/ ./" >> /etc/apt/sources.list
apt-get update && apt-get install odoo
After that you return to your regular user by entering the command
exit
See this link for the cause of your error message: http://lightzoneproject.org/lorum/cannot-write-broken-pipe-linux-debian-install