How to install java?

  • Hi very new to openmediavault please bare with me... Currently testing and came across a problem when trying to install a plugin. I am getting an error that a dependency is missing java 7 so I tried to follow a couple of guides and keep coming up against problems. The last code I used in my ssh is:-



    Could someone walk me through what I am doing wrong.


    • Offizieller Beitrag

    First of all, I wouldn't use PPAs.
    Second of all, if you do add a repo, put it in its own file in /etc/apt/sources.list.d/ instead of /etc/apt/sources.list
    Finally, do you need oracle java or will openjdk work? apt-get install openjdk-7-jre-headless would be a lightweight install.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • On trying headless


    • Offizieller Beitrag

    Did you remove the repo you added?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Delete these from your /etc/apt/sources.list


    Code
    “deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main”
    “deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main”


    Then do a "apt-get update".

    • Offizieller Beitrag

    As root:


    rm -f /etc/apt/sources.list.d/webupd8team-java.list
    nano /etc/apt/sources.list
    remove lines with launchpad in them.
    ctrl-o to save
    ctrl-x to exit
    apt-get update

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • 4th post down same error


    On the Give results of:dpkg -l | grep java


    Code
    root@ubuntu:~# dpkg -l | grep java
    ii  libjavascript-minifier-xs-perl                              0.09-1+b2                          amd64        XS based JavaScript minifier
  • It wants to install the 2016d version but your pinning is off for some reason. They both should be 500. Something in your sources is causing this.


    You did apt-get update so I don't think it is your sources.list file. It is probably something in one of the files in the sources.d folder.

  • Give me results of this:


    cat /etc/apt/sources.list.d/omv-extras-org-stoneburner.list



    You could try to disable all the OMV Extras repos temporarily. Then do an "apt-get update" and run the policy command again:
    apt-cache policy tzdata-java


    See if the pinning is 500 for both packages then. If you get 500 for both of them it will install. Then you could re-enable the repos that you had before.


    I know the zfs repo causes a pinning issue with emby or mono.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!