Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8159

hudson debian pkg install failed on ubuntu 10.04 LTS due to java-virtual-machine dependency

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • deploy-plugin
    • None
    • ubuntu 10.04 LTS

      When attempted to install debian pkg on a linux box running ubuntu 10.04 LTS according to instructions at http://jenkins-ci.org/debian/,
      caught the following errors:

      Selecting previously deselected package hudson.
      (Reading database ... 156365 files and directories currently installed.)
      Unpacking hudson (from /tmp/hudson.deb) ...
      dpkg: dependency problems prevent configuration of hudson:
      hudson depends on java-virtual-machine; however:
      Package java-virtual-machine is not installed.
      dpkg: error processing hudson (--install):
      dependency problems - leaving unconfigured
      Processing triggers for ureadahead ...

      I have checked the packages on the machine and java virtual machine, openjdk-6-jre, was already installed. Is there specific version of jvm that must be installed in advance?

          [JENKINS-8159] hudson debian pkg install failed on ubuntu 10.04 LTS due to java-virtual-machine dependency

          rwen created issue -

          Looking at other packages, maybe we should copy what eclipse does?

          http://packages.ubuntu.com/maverick/eclipse-jdt

          Kohsuke Kawaguchi added a comment - Looking at other packages, maybe we should copy what eclipse does? http://packages.ubuntu.com/maverick/eclipse-jdt

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          debian/debian/control
          http://jenkins-ci.org/commit/core/d74253c5bc4fd9ec24938e33bf4e1764a18c78dd
          Log:
          [FIXED JENKINS-8159] switch to default-jre

          Eclipse package depends on this
          <http://packages.ubuntu.com/maverick/eclipse-jdt>, so I'm doing
          monkey-see-monkey-do.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html debian/debian/control http://jenkins-ci.org/commit/core/d74253c5bc4fd9ec24938e33bf4e1764a18c78dd Log: [FIXED JENKINS-8159] switch to default-jre Eclipse package depends on this < http://packages.ubuntu.com/maverick/eclipse-jdt >, so I'm doing monkey-see-monkey-do.
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Ferenc Kovacs added a comment -

          you should update the dependency to java-runtime or java6-runtime
          both openjdk and sun jre provides that package.
          with your current change, you have to install default-jre which depends on openjdk, hence you can only install jenkins if you install openjdk :/

          Tyrael

          Ferenc Kovacs added a comment - you should update the dependency to java-runtime or java6-runtime both openjdk and sun jre provides that package. with your current change, you have to install default-jre which depends on openjdk, hence you can only install jenkins if you install openjdk :/ Tyrael

          Ferenc Kovacs added a comment - - edited

          not a proper fix

          (I commented this to the re-open action.)

          Ferenc Kovacs added a comment - - edited not a proper fix (I commented this to the re-open action.)
          Ferenc Kovacs made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          debian/debian/control
          http://jenkins-ci.org/commit/core/79afb1158372e1ea754072fbc6e0de4c4e560715
          Log:
          [FIXED JENKINS-8159] back to java-runtime

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: debian/debian/control http://jenkins-ci.org/commit/core/79afb1158372e1ea754072fbc6e0de4c4e560715 Log: [FIXED JENKINS-8159] back to java-runtime
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]

          Sorry for re-openning it one more time. But this fix should break instllation on Debian when pre-Java2 JVM is available. Fixed in https://github.com/jenkinsci/jenkins/pull/52, please take a look.

          Mykola Nikishov added a comment - Sorry for re-openning it one more time. But this fix should break instllation on Debian when pre-Java2 JVM is available. Fixed in https://github.com/jenkinsci/jenkins/pull/52 , please take a look.
          Mykola Nikishov made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

            Unassigned Unassigned
            rwen rwen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: