Error installing Java on Vero V

I receive an error message attempting to install Java from the OSMC GUI on my Vero V. Here’s what I get when attempting from the command line:

osmc@vero-v-fr:~$ sudo apt install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up openjdk-11-jre-headless:armhf (11.0.21+9-1~deb11u1) ...
update-alternatives: using /usr/lib/jvm/java-11-openjdk-armhf/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: error: error creating symbolic link '/usr/share/man/man1/java.1.gz.dpkg-tmp': No such file or directory
dpkg: error processing package openjdk-11-jre-headless:armhf (--configure):
 installed openjdk-11-jre-headless:armhf package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of openjdk-11-jre:armhf:
 openjdk-11-jre:armhf depends on openjdk-11-jre-headless (= 11.0.21+9-1~deb11u1); however:
  Package openjdk-11-jre-headless:armhf is not configured yet.

dpkg: error processing package openjdk-11-jre:armhf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-jre:
 default-jre depends on openjdk-11-jre; however:
  Package openjdk-11-jre:armhf is not configured yet.

dpkg: error processing package default-jre (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 openjdk-11-jre-headless:armhf
 openjdk-11-jre:armhf
 default-jre
E: Sub-process /usr/bin/dpkg returned an error code (1)

And:

osmc@vero-v-fr:~$ sudo dpkg --configure -a
Setting up openjdk-11-jre-headless:armhf (11.0.21+9-1~deb11u1) ...
update-alternatives: using /usr/lib/jvm/java-11-openjdk-armhf/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: error: error creating symbolic link '/usr/share/man/man1/java.1.gz.dpkg-tmp': No such file or directory
dpkg: error processing package openjdk-11-jre-headless:armhf (--configure):
 installed openjdk-11-jre-headless:armhf package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of openjdk-11-jre:armhf:
 openjdk-11-jre:armhf depends on openjdk-11-jre-headless (= 11.0.21+9-1~deb11u1); however:
  Package openjdk-11-jre-headless:armhf is not configured yet.

dpkg: error processing package openjdk-11-jre:armhf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-jre:
 default-jre depends on openjdk-11-jre; however:
  Package openjdk-11-jre:armhf is not configured yet.

dpkg: error processing package default-jre (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 openjdk-11-jre-headless:armhf
 openjdk-11-jre:armhf
 default-jre

Try these commands in ssh-session:

sudo mkdir /usr/share/man/man1
sudo apt --fix-broken install

That should fix it for you.

It a consequence of OSMC’s “fit into a small SD card”, that DEV’s along time a go chose to remove the man pages in OSMC. It has been discussed lately but nothing has yet been decided.

1 Like

That worked like a charm. Thanks very much!

You are most welcome, hope you get a lot of enjoyment of your VeroV.

I must say, now that I’ve had a little time with the device, my expectations have been exceeded! Everything is snappier and more responsive, Blu-Ray menu support for ISO images seems greatly improved vs the 4k+, and 4K/HDR/3D/Atmos content all working flawlessly. I love it! Kudos to the team.

2 Likes

Thanks for your kind words. Most appreciated.

This is solved for new installations now:

Sam

1 Like