error processing package oracle-java8-installer问题解决

ubuntu通过ppa源安装jdk时遇到如下问题:

download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)

问题原因:

版本不匹配

解决办法:

执行以下命令

cd /var/lib/dpkg/info
sudo sed -i ‘s|JAVA_VERSION=8u151|JAVA_VERSION=8u162|‘ oracle-java8-installer.*
sudo sed -i ‘s|PARTNER_URL=http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/|PARTNER_URL=http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/|‘ oracle-java8-installer.*
sudo sed -i ‘s|SHA256SUM_TGZ="c78200ce409367b296ec39be4427f020e2c585470c4eed01021feada576f027f"|SHA256SUM_TGZ="68ec82d47fd9c2b8eb84225b6db398a72008285fafc98631b1ff8d2229680257"|‘ oracle-java8-installer.*
sudo sed -i ‘s|J_DIR=jdk1.8.0_151|J_DIR=jdk1.8.0_162|‘ oracle-java8-installer.*

再重新安装

sudo apt install oracle-java8-installer
sudo apt install oracle-java8-set-default

参考:

https://stackoverflow.com/questions/43587635/dpkg-error-processing-package-oracle-java8-installer-configure

见第二个回答,由用户hrvoj3e发布

原文地址:https://www.cnblogs.com/VeryGoodVeryGood/p/8318105.html

时间: 2024-11-09 00:51:17

error processing package oracle-java8-installer问题解决的相关文章

dpkg: error processing package bluez (--configure) 解决方法【转】

转自:http://blog.csdn.net/heray1990/article/details/47803541 在 Ubuntu 执行 sudo apt-get upgrade 时,出现了如下的报错: Setting up bluez (4.101-0ubuntu13.1) ... reload: Job is not running: dbus invoke-rc.d: initscript dbus, action "force-reload" failed. start:

如何解决dpkg: error processing install-info

正在设置 install-info (5.2.0.dfsg.1-2) ... /etc/environment: line 2: CLASS_PATH: command not found dpkg: error processing package install-info (--configure): 子进程 已安装 post-installation 脚本 返回了错误号 127 E: Sub-process /usr/bin/dpkg returned an error code (1)

ArcSDE Post失败:"error connecting to oracle: O".

错误:ArcSDE安装后,Post失败 环境:win7 64,oracle10g(32位),arcsde10.0(32位) 表现:"error connecting to oracle: 0". 问题解决 经过反复测试发现问题:安装路径空格问题 在WIN7 64位时,安装arcsde32位不能安装在C:\Program Files这样的有空格的文件夹里. 但是,在WIN7 32位时不存在这个问题,可以安装在C:\Program Files中. 注意1:有人认为以及部分网上资料,WIN7

dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured

dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured start: Job failed to start invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing mysql-server-5.5 (--configure): subprocess inst

java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration$ThymeleafDefaultConfiguration.templateEngine

2018-12-25 22:58:28.023 DEBUG 2204 --- [ restartedMain] c.c.c.a.CrawlerAutohomeApplication : Running with Spring Boot v2.1.1.RELEASE, Spring v5.1.3.RELEASE 2018-12-25 22:58:28.039 INFO 2204 --- [ restartedMain] c.c.c.a.CrawlerAutohomeApplication : No

hadoop错误DataXceiver error processing WRITE_BLOCK operation

错误: DataXceiver error processing WRITE_BLOCK operation 原因:     文件操作超租期,实际上就是data stream操作过程中文件被删掉了. 解决办法: 修改hdfs-site.xml (针对2.x版本,1.x版本属性名应该是:dfs.datanode.max.xcievers): <property> <name>dfs.datanode.max.transfer.threads</name> <valu

Hive: TApplicationException: Internal error processing get_partition_names 错误的解决方法

有时候,某些非常规的操作会导致将要建立数据库/表与保存在metastore里的数据库/表的信息发生冲突,导致无法建立相应的数据库/表.举个例子:如果没有使用常规的drop database/table去删除一个数据库或是表,而是直接在hdfs上删除了相应的文件夹或文件,比如:/user/hive/warehouse/xxxxx.db,然后当你重新试图使用建库脚本建库时,有可能会报出: FAILED: Execution Error, return code 1 from org.apache.h

python-glanceclient - error &quot;No package &#39;libffi&#39; found

[[email protected] /]# yum install python-pip -y pip install python-novaclientpip install python-ceilometerclientpip install python-cinderclientpip install python-glanceclient   - has error when i installpip install python-heatclientpip install pytho

Jenkins使用jenkins-cli.jar进行远程调用时出现“ERROR: No such job &#39;test&#39;”的问题解决(Windows)

网上最提倡的解决办法是用SSH的key进行登录,但是我发觉Linux上非常容易实现,但是Windows压根不知道在哪里设置. 原文:https://issues.jenkins-ci.org/browse/JENKINS-12543 国外参考:http://stackoverflow.com/questions/21609589/jenkins-cli-build-on-cloudbees-no-such-job 国内参考:http://www.lai18.com/content/6214326