Update to 1.8

I have a problem with the update from OH 1.7.1 to 1.8. Sorry, I’m not an expert. I used this command:

wget -qO - ‘https://bintray.com/user/downloadSubjectPublicKey?username=openhab’ | sudo apt-key add -
echo "deb http://dl.bintray.com/openhab/apt-repo stable main"
sudo tee /etc/apt/sources.list.d/openhab.list

But after “sudo tee /etc/apt/sources.list.d/openhab.list” nothing happens. In putty I see the

pi@raspberrypi / $ sudo tee /etc/apt/sources.list.d/openhab.list

and then no ok or an other note. It seems that this order runs in a circle and also afte one hour I see - nothing.

That’s my system:
pi@raspberrypi / $ sudo dpkg -l|grep openhab
ii openhab-addon-binding-astro 1.7.1 all openHAB Astro Binding
ii openhab-addon-binding-weather 1.8.0 all openHAB Weather Binding
ii openhab-addon-binding-zwave 1.8.0 all openHAB ZWave Binding
ii openhab-addon-io-myopenhab 1.7.1 all my.openHAB Connection Service
ii openhab-runtime 1.7.1 all openHAB Distribution
pi@raspberrypi / $ cat /etc/issue
Raspbian GNU/Linux 7 \n \l

Any ideas why this order do not run?

the 2 last lines should be

echo "deb http://dl.bintray.com/openhab/apt-repo stable main" | sudo tee /etc/apt/sources.list.d/openhab.list

As you see, it is one line, not two, and the pipe is essential in this case - the output of the first command (echo ...) is the input of the second command (sudo tee ...).
In fact, tee appends the line deb http://dl.bintray.com/openhab/apt-repo stable main to the file /etc/apt/sources.list.d/openhab.list, which is only writable for root, hence sudo is used.

Thank you, that’s it.