Guest User

Untitled

a guest
Jan 19th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
  2. sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
  3. sudo apt-get update
  4. sudo apt-get install jenkins
  5.  
  6. $ apt-get install jenkins
  7. Reading package lists... Done
  8. Building dependency tree
  9. Reading state information... Done
  10. Some packages could not be installed. This may mean that you have
  11. requested an impossible situation or if you are using the unstable
  12. distribution that some required packages have not yet been created
  13. or been moved out of Incoming.
  14. The following information may help to resolve the situation:
  15.  
  16. The following packages have unmet dependencies:
  17. jenkins : Depends: default-jre-headless (>= 2:1.8) but 2:1.7-52 is to be installed or
  18. java8-runtime-headless but it is not installable
  19. E: Unable to correct problems, you have held broken packages.
  20.  
  21. $ apt install -t jessie-backports openjdk-8-jre-headless ca-certificates-java
  22.  
  23. $ sudo /etc/init.d/jenkins start
  24. [FAIL] Starting Jenkins Automation Server: jenkins failed!
  25.  
  26.  
  27. $ tail -f /var/log/jenkins/jenkins.log
  28. Jenkins requires Java8 or later, but you are running 1.7.0_151-b01
  29. from /usr/lib/jvm/java-7-openjdk-amd64/jre
  30. java.lang.UnsupportedClassVersionError: 51.0
  31. at Main.main(Main.java:124)
Add Comment
Please, Sign In to add comment