我正在使用
sudo apt-get install sametime-connect
并获得
Reading package lists... Done
Building dependency tree
Reading state information... Done
sametime-connect:i386 is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic
linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up jenkins (2.71) ...
Found an incorrect Java version
Java version found:
java version "1.7.0_131"
OpenJDK Runtime Environment (IcedTea 2.6.9) (7u131-2.6.9-0ubuntu0.14.04.2)
OpenJDK 64-Bit Server VM (build 24.131-b00, mixed mode)
Aborting
invoke-rc.d: initscript jenkins, action "start" failed.
dpkg: error processing package jenkins (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
jenkins
E: Sub-process /usr/bin/dpkg returned an error code (1)
我本地有.deb文件,我使用64位的ubuntu14.04。 任何人都可以在这方面提供帮助,在此先感谢。
答案 0 :(得分:0)
问题似乎与Jenkins有关:您安装的版本与java 1.7.0_131不兼容。每次使用apt-get安装另一个软件包时,都会抱怨jenkins安装已损坏。
我假设您正在运行像Ubuntu 14.04这样的Linux发行版。如果是这种情况,您应该能够通过执行以下操作来解决问题:
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
然后您需要使用以下命令更改java的默认版本:
update-java-alternatives --list
sudo update-java-alternatives --set /path/to/java-8
例如:
sudo update-java-alternatives --set /usr/lib/jvm/java-1.8.0-openjdk-amd64
现在你可以运行:
sudo apt-get upgrade
现在jenkins应该正确升级/安装。在此之后,应该再次工作,没有错误/投诉。