"sudo apt-get update && sudo apt-get upgrade" failing due to missing permission

I am trying to install node.js side by side with openhab.
To prepare the installation I entered

sudo apt-get update && sudo apt-get upgrade

Unfortunately I am receiving a “not allowed” error related to openhab.package.
It is probably a pretty trivial error but forgive me I am still pretty unexperienced with Linux.
(running Jessie on Raspberry Pi 3).

pi@localhost:~ $ sudo apt-get update && sudo apt-get upgrade
Ign http://dl.bintray.com stable InRelease
OK   http://ppa.launchpad.net xenial InRelease                             
OK   http://mirrordirector.raspbian.org jessie InRelease                   
Ign http://dl.bintray.com stable Release.gpg                               
OK   http://archive.raspberrypi.org jessie InRelease                       
Ign http://dl.bintray.com stable Release                                   
OK   http://ppa.launchpad.net xenial/main Sources                              
OK   http://ppa.launchpad.net xenial/main armhf Packages                       
OK   http://ppa.launchpad.net xenial/main Translation-en                       
Fehl http://dl.bintray.com stable/main armhf Packages                          
  405  Not Allowed
Ign http://dl.bintray.com stable/main Translation-de_DE                        
Ign http://dl.bintray.com stable/main Translation-de                           
Ign http://dl.bintray.com stable/main Translation-en                           
OK   http://mirrordirector.raspbian.org jessie/main armhf Packages          
OK   http://archive.raspberrypi.org jessie/main armhf Packages     
OK   http://mirrordirector.raspbian.org jessie/contrib armhf Packages
OK   http://mirrordirector.raspbian.org jessie/non-free armhf Packages      
OK   http://archive.raspberrypi.org jessie/ui armhf Packages                
OK   http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-de_DE               
Ign http://archive.raspberrypi.org jessie/main Translation-de          
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-de_DE
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-de
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-de_DE
Ign http://mirrordirector.raspbian.org jessie/main Translation-de
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-de_DE
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-de
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en          
Ign http://archive.raspberrypi.org jessie/ui Translation-de_DE                 
Ign http://archive.raspberrypi.org jessie/ui Translation-de
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-de_DE
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-de               
Ign http://archive.raspberrypi.org jessie/ui Translation-en                    
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
W: Fehlschlag beim Holen von http://dl.bintray.com/openhab/apt-repo2/dists/stable/main/binary-armhf/Packages  405  Not Allowed

Did you add the key?

First, add the openHAB 2 Bintray repository key to your package manager and allow Apt to use the HTTPS Protocol:

wget -qO - ‘https://bintray.com/user/downloadSubjectPublicKey?username=openhab’ | sudo apt-key add -
sudo apt-get install apt-transport-https

http://docs.openhab.org/installation/linux.html#package-repository-installation

I thought I had but I repeated the procedure.

~ $ wget -qO - 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' | sudo apt-key add -

OK
pi@localhost:~ $ sudo apt-get install apt-transport-https
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
apt-transport-https ist schon die neueste Version.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 109 nicht aktualisiert.
`

until here it looks ok.
But the entering ‘sudo apt-get updates’ showed the same error as before.

this command resolved my problem

echo 'deb https://dl.bintray.com/openhab/apt-repo2 stable main' | sudo tee /etc/apt/sources.list.d/openhab2.list
deb https://dl.bintray.com/openhab/apt-repo2 stable main

Hi @Marty56, some time ago, Bintray stopped accepting HTTP requests, so downloads must be completed over HTTPS, unfortunately the difference is subtle when reading it again in the docs, but makes all the difference as you found out.