我正在使用
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文件,我使用的是ubuntu14.04 64位。有没有人可以在这方面提供帮助,提前谢谢。
发布于 2017-08-04 22:32:06
问题似乎出在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应该可以正确升级/安装了。在此之后,apt应该会再次工作,没有错误/抱怨。
https://stackoverflow.com/questions/45438078
复制相似问题