Tuesday, January 16, 2024

virtualbox6: debian: netbeans install issues: "dpkg: warning: 'ldconfig' not found in PATH or not executable" and "pkg-deb: error: archive 'apache-netbeans_....deb' uses unknown compression for member 'control.tar.zst', giving up"

 

>PROBLEMS/SOLUTIONS


You desire to install Netbeans on a Debian O.S. using the VirtualBox v.6 because the VirtualBox v.7 fails on your current Windows 10 installation.

The first task is to download the Netbeans, and we usually do this using the last version, trying the following commands to install:

sudo apt install openjdk-17-jdk curl wget unzip
cd /home/USERNAME/Downloads
chmod 777 apache-netbeans_20-1_all.deb
dpkg -i apache-netbeans_20-1_all.deb

>PROBLEM #1

Then, the "dpkg" command throws the following error message:

dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable


>SOLUTION #1

scite /etc/profile &
export PATH=$PATH:/sbin

or

scite ~/.profile
export PATH=$PATH:/sbin

- Reboot and run dpkg command again, and you may get the problem #2.

>PROBLEM #2

Running the install command again:

dpkg -i apache-netbeans_20-1_all.deb


Returns:

pkg-deb: error: archive 'apache-netbeans_20-1_all.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive apache-netbeans_20-1_all.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2



>SOLUTION #2

Remembering that VirtualBox v.6 is no longer maintained, we need to consider a possible downgrade.
If the last Netbeans version fails with the following procedure, download a previous version, until you get compatibility. In this procedure the attempt with the v.19 was enough.

Download the Netbeans , first apply alien command to make it compatible, then run dpkg as follow:

alien apache-netbeans_19-1_all.deb
dpkg -i apache-netbeans_19-1_all.deb

And... voilà!

Now, read to run Netbeans, and  on prompt do:

netbeans &

Note: if everything goes well, the installation set the netbeans command at:

/usr/bin/netbeans &


>ENV

Windows 10
VirtualBox 6
debian 10..12
netbeans 19..20

No comments:

Post a Comment

eclipse: java: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" or Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

  >PROBLEM Using Eclipse, you try to run a simple logging test using "org.slf4j.Logger" like the sample below: package Test; im...