【问题标题】:Sametime install on ubuntu giving errorSametime 在 ubuntu 上安装给出错误
【发布时间】:2017-08-01 12:39:42
【问题描述】:

我正在使用

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 位。 谁能提供这方面的帮助,在此先感谢。

【问题讨论】:

    标签: ubuntu-14.04 sametime


    【解决方案1】:

    问题似乎出在 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 应该会再次正常工作而不会出现错误/投诉。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-02-27
      • 1970-01-01
      • 1970-01-01
      • 2016-09-23
      • 1970-01-01
      • 1970-01-01
      • 2015-07-20
      • 2019-04-21
      相关资源
      最近更新 更多