Installation opennebula-fireedge on Debian 11: dependency collision libnode72 nodejs

I want to install package opennebula-fireedge.
This package has dependencies for:

However libnode72 and nodejs collide, means both packages cannot coexist.

$ sudo apt-cache depends opennebula-fireedge
  Hängt ab von (vorher): opennebula-common-onecfg
  Hängt ab von: opennebula-common
  Hängt ab von: opennebula-provision-data
  Hängt ab von: nodejs
  Hängt ab von: libc6
  Hängt ab von: libgcc-s1
  Hängt ab von: libnode72
  Hängt ab von: libstdc++6
  Hängt ab von: libzmq5
  Kollidiert mit: opennebula
  Empfiehlt: opennebula-guacd

This is a fresh Debian 11 installation using default repos provided by Debian and OpenNebula.

$ sudo apt list --installed|grep libnode

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libnode72/stable,stable-security,now 12.22.5~dfsg-2~11u1 amd64  [installiert]
$ apt-cache depends libnode72
  depends on: libbrotli1
  depends on: libc-ares2
  depends on: libc6
  depends on: libgcc-s1
  depends on: libicu67
  depends on: libnghttp2-14
  depends on: libssl1.1
  depends on: libstdc++6
  depends on: libuv1
  depends on: zlib1g
  collides with: <nodejs-legacy>
  damaged: <libnode64>
  depends on: node-modern-syslog
  replace: <nodejs-legacy>

I cannot install package nodejs because this would uninstall packages libnode72 .

And I would conclude that this issue is affecting anybody who’s installing opennebula-fireedge on a fresh Debian 11.

Steps to reproduce:

  1. wget -q -O- | sudo apt-key add -
  2. echo "deb stable opennebula" | sudo tee /etc/apt/sources.list.d/opennebula.list
  3. sudo apt update
  4. sudo apt install opennebula-fireedge

Current results:

$ sudo apt install opennebula-fireedge
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 libnode72 : Kollidiert mit: nodejs-legacy
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.

Expected results:
Installation of package opennebula-fireedge completes w/o error.

There’s no reply to this issue…
Does this mean, this issue is unique to my environment?
I can’t believe this based on the analysis I shared (e.g. package dependencies).

I had the same problem and I solved it by skipping the installation of nodesource repository. If this repo is in your apt sources, remove it and try the installation of fireedge again. Check this for further information: Unable to install opennebula-fireedge on Ubuntu 20.04 · Issue #5435 · OpenNebula/one · GitHub

Thanks for sharing this solution.
After removing repo with this content
deb bullseye main
the issue is solved and installation of package opennebula-fireedge finish w/o problems.

This means the documentation for installing software using 3rs party repositories is driving into this error.

Please note that Debian11 does not require any third party repository. In that regard, the documentation is accurate, since nodesource repo is only required for Ubuntu18.04.

1 Like