Problems upgrading system

Hi Everyone,
I am switching from FHEM to openhab. I am still configuring the system and creating all the rules to make openhab work as well as my FHEM. I just tried to upgrade my rasperry pi running piVCCU and openhab. During the process i get following system output:

pi@homeHAB:~ $ sudo apt-get update && sudo apt-get upgrade  
OK:1 http://ftp.debian.org/debian stretch-backports InRelease
OK:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease            
OK:3 http://ppa.launchpad.net/webupd8team/java/ubuntu trusty InRelease     
OK:4 http://archive.raspberrypi.org/debian stretch InRelease               
Ign:5 https://dl.bintray.com/openhab/apt-repo2 stable InRelease            
Holen:6 https://dl.bintray.com/openhab/apt-repo2 stable Release [6.051 B]
OK:6 https://dl.bintray.com/openhab/apt-repo2 stable Release
OK:7 https://www.pivccu.de/piVCCU stable InRelease       
Paketlisten werden gelesen... Fertig
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.        
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
Die folgenden Pakete sind zurückgehalten worden:
 pivccu-modules-dkms python-gpiozero python3-gpiozero python3-thonny sense-emu-tools
Die folgenden Pakete werden durch eine ÄLTERE VERSION ERSETZT (Downgrade):
 nodejs-doc
0 aktualisiert, 0 neu installiert, 1 durch eine ältere Version ersetzt, 0 zu entfernen und 5 nicht aktualisiert.
Es müssen noch 0 B von 775 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
(Lese Datenbank ... 169033 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../nodejs-doc_8.11.1~dfsg-2~bpo9+1_all.deb ...
Entpacken von nodejs-doc (8.11.1~dfsg-2~bpo9+1) über (8.11.1~dfsg-2~bpo9+1) ...
nodejs-doc (8.11.1~dfsg-2~bpo9+1) wird eingerichtet ...

Weird is, that after this, the update/upgrade process shows the exact same output. It seems like raspian doesn’t actually downgrade nodejs-doc as needed.

Does anyone have an idea?
Thanks!

What's that?                                          ^^^^^^

the correct command would be

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

or, even simpler (I hope it’s a current raspbian image)

sudo apt update && sudo apt -y full-upgrade

This would perform an upgrade with the option to install new software, if needed.

sorry, but for some reason my copy & paste out of my terminal caused the "  "
here it is correct:
pi@homeHAB:~ $ sudo apt-get update && apt-get upgrade
OK:1 http://ftp.debian.org/debian stretch-backports InRelease
OK:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
OK:3 http://ppa.launchpad.net/webupd8team/java/ubuntu trusty InRelease
OK:4 http://archive.raspberrypi.org/debian stretch InRelease
Ign:5 https://dl.bintray.com/openhab/apt-repo2 stable InRelease
Holen:6 https://dl.bintray.com/openhab/apt-repo2 stable Release [6.051 B]
OK:6 https://dl.bintray.com/openhab/apt-repo2 stable Release
OK:7 https://www.pivccu.de/piVCCU stable InRelease
Paketlisten werden gelesen… Fertig
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen… Fertig
Paketaktualisierung (Upgrade) wird berechnet… Fertig
Die folgenden Pakete sind zurückgehalten worden:
pivccu-modules-dkms python-gpiozero python3-gpiozero python3-thonny sense-emu-tools
Die folgenden Pakete werden durch eine ÄLTERE VERSION ERSETZT (Downgrade):
nodejs-doc
0 aktualisiert, 0 neu installiert, 1 durch eine ältere Version ersetzt, 0 zu entfernen und 5 nicht aktualisiert.
Es müssen noch 0 B von 775 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
(Lese Datenbank … 169033 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von …/nodejs-doc_8.11.1~dfsg-2~bpo9+1_all.deb …
Entpacken von nodejs-doc (8.11.1~dfsg-2~bpo9+1) über (8.11.1~dfsg-2~bpo9+1) …
nodejs-doc (8.11.1~dfsg-2~bpo9+1) wird eingerichtet …

Ah, ok. As I don’t use nodejs, I can’t confirm if this is correct or not. At least it’s only nodejs-doc, so this should not have any effects.

Ok, good to know. But it seems to prevent the system to upgrade some other packages, doesn’t it?

Die folgenden Pakete sind zurückgehalten worden:
pivccu-modules-dkms python-gpiozero python3-gpiozero python3-thonny sense-emu-tools

no, that’s not because of the downgrade. There are special commands to pin a version, I’m not very familiar with that part of apt (or apt-get). These commands will prevent upgrades to that package. Sometimes there are dependencies for or to other packets, so the other software will prevent an upgrade for this packets.
you can lookup those dependencies by using apt-cache:

apt-cache rdepends pivccu-modules-dkms python-gpiozero python3-gpiozero python3-thonny sense-emu-tools

(I don’t know if you can use all packets at once, so maybe split them up:

apt-cache rdepends pivccu-modules-dkms 
...
apt-cache rdepends python-gpiozero
... result of command
apt-cache rdepends python3-gpiozero 
... result of command
apt-cache rdepends python3-thonny 
... result of command
apt-cache rdepends sense-emu-tools
... result of command

and the same for the other direction:

apt-cache depends sense-emu-tools

unfortunately this doesn’t make me much smarter. but that’s just me :frowning:

pivccu-modules-dkms
Reverse Depends:
 pivccu
 pivccu3
 pivccu3
 pivccu3
 pivccu-modules-raspberrypi
 pivccu
 pivccu
 debmatic
 debmatic
 debmatic
python-gpiozero
Reverse Depends:
 picap
python3-gpiozero
Reverse Depends:
 mu-editor
 python3-skygate
 python3-pytrack
 picap
python3-thonny
Reverse Depends:
sense-emu-tools
Reverse Depends:
 python-pisense
 python3-sense-emu
 python3-pisense
 python-sense-emu

Me either :wink:

Any suggestions on this issue?

Hi everyone,
I’m still looking for a solution on this. Would be very nice if anyone could help.

As this is totaly unrelated to openHAB, you should ask this in a node-js or raspbian community.