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

          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.

          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.)

          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

          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.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          debian/debian/control
          debian/debian/jenkins.postinst
          http://jenkins-ci.org/commit/core/7219e3af4b8e1f464cb034546cdb16059f1ec4d3
          Log:
          Merge branch 'rc'

          • rc:
            Fix dependency on Java2 runtime for both Debian and Ubuntu
            [FIXED JENKINS-4047] not admin, should be adm.
            [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 debian/debian/jenkins.postinst http://jenkins-ci.org/commit/core/7219e3af4b8e1f464cb034546cdb16059f1ec4d3 Log: Merge branch 'rc' rc: Fix dependency on Java2 runtime for both Debian and Ubuntu [FIXED JENKINS-4047] not admin, should be adm. [FIXED JENKINS-8159] back to java-runtime

          dogfood added a comment -

          Integrated in jenkins_main_trunk #511
          [FIXED JENKINS-8159] back to java-runtime

          Kohsuke Kawaguchi :
          Files :

          • debian/debian/control

          dogfood added a comment - Integrated in jenkins_main_trunk #511 [FIXED JENKINS-8159] back to java-runtime Kohsuke Kawaguchi : Files : debian/debian/control

          evernat added a comment -

          finally fixed according to the last comment

          evernat added a comment - finally fixed according to the last comment

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          debian/control
          http://jenkins-ci.org/commit/packaging/20d98182256dc5e783b5a16c5147fdad7fe2fb64
          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.

          Originally-From: jenkins-ci.org/commit/core/d74253c5bc4fd9ec24938e33bf4e1764a18c78dd

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: debian/control http://jenkins-ci.org/commit/packaging/20d98182256dc5e783b5a16c5147fdad7fe2fb64 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. Originally-From: jenkins-ci.org/commit/core/d74253c5bc4fd9ec24938e33bf4e1764a18c78dd

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

          Originally-From: jenkins-ci.org/commit/core/79afb1158372e1ea754072fbc6e0de4c4e560715

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: debian/control http://jenkins-ci.org/commit/packaging/ba4c094fd054d6a03d7d6a4501885251f8daf235 Log: [FIXED JENKINS-8159] back to java-runtime Originally-From: jenkins-ci.org/commit/core/79afb1158372e1ea754072fbc6e0de4c4e560715

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

              Created:
              Updated:
              Resolved: