Ubuntu系统里如何正确卸载oracle-j2sdk1.6(图文详解)

简介:

  问题来源

  因为,我在安装clouder manager5.X的时候,默认是需要oracle-j2sdk1.7。

  它4.X时,才是1.6的。

 

 

 

  若你还是在用clouder manager4.X版本的话,需要用到oracle-j2sdk1.6

则,见

http://download.csdn.net/download/nma_123456/8976865

 

 

 

 

  

 

   

  为此,需要卸载它,再来安装

复制代码
bigdata@ubuntucmbigdata1:/var/log/cloudera-manager-installer$ dpkg --list | grep -i jdk
ii  oracle-j2sdk1.6                                       1.6.0+update31                                      amd64        Java(TM) JDK, Standard Edition, Oracle(TM)
bigdata@ubuntucmbigdata1:/var/log/cloudera-manager-installer$ sudo apt-get remove oracle-j2sdk1.6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libstdc++5
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
  oracle-j2sdk1.6
0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded.
1 not fully installed or removed.
After this operation, 230 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 193100 files and directories currently installed.)
Removing oracle-j2sdk1.6 (1.6.0+update31) ...
Setting up cloudera-manager-server (5.11.1-1.cm5111.p0.9~trusty-cm5) ...
chown: cannot access ‘/var/lib/cloudera-scm-server/’: No such file or directory
dpkg: error processing package cloudera-manager-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 cloudera-manager-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
bigdata@ubuntucmbigdata1:/var/log/cloudera-manager-installer$ dpkg --list | grep -i jdk
bigdata@ubuntucmbigdata1:/var/log/cloudera-manager-installer$ 
复制代码

 

 

 

 

 

 

 

 

 

 

 

  解决办法

复制代码
bigdata@ubuntucmbigdata3:/usr/java$ dpkg --list | grep -i jdk
ii  oracle-j2sdk1.6                                       1.6.0+update31                                      amd64        Java(TM) JDK, Standard Edition, Oracle(TM)
iF  oracle-java7-installer                                7u80+7u60arm-0~webupd8~1                            all          Oracle Java(TM) Development Kit (JDK) 7
iU  oracle-java7-set-default                              7u80+7u60arm-0~webupd8~1                            all          Set Oracle JDK 7 as default Java
bigdata@ubuntucmbigdata3:/usr/java$ sudo apt-get remove oracle-j2sdk1.6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libntdb1 libstdc++5 python-ntdb
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  oracle-j2sdk1.6
0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded.
2 not fully installed or removed.
After this operation, 230 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 177145 files and directories currently installed.)
Removing oracle-j2sdk1.6 (1.6.0+update31) ...
Setting up oracle-java7-installer (7u80+7u60arm-0~webupd8~1) ...
Downloading Oracle Java 7...
--2017-06-26 13:01:34--  http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.2.16.218, 23.2.16.208
Connecting to download.oracle.com (download.oracle.com)|23.2.16.218|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz [following]
--2017-06-26 13:01:35--  https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 184.28.37.127, 2402:4f00:4001:197::2d3e, 2402:4f00:4001:180::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|184.28.37.127|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1498453415_f4abdac1cfd99129c88b2f3935796ed1 [following]
--2017-06-26 13:01:35--  http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1498453415_f4abdac1cfd99129c88b2f3935796ed1
Connecting to download.oracle.com (download.oracle.com)|23.2.16.218|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-06-26 13:01:36 ERROR 404: Not Found.

download failed
Oracle JDK 7 is NOT installed.
dpkg: error processing package oracle-java7-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of oracle-java7-set-default:
 oracle-java7-set-default depends on oracle-java7-installer; however:
  Package oracle-java7-installer is not configured yet.

dpkg: error processing package oracle-java7-set-default (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 oracle-java7-installer
 oracle-java7-set-default
E: Sub-process /usr/bin/dpkg returned an error code (1)
bigdata@ubuntucmbigdata3:/usr/java$ dpkg --list | grep -i jdk
iF  oracle-java7-installer                                7u80+7u60arm-0~webupd8~1                            all          Oracle Java(TM) Development Kit (JDK) 7
iU  oracle-java7-set-default                              7u80+7u60arm-0~webupd8~1                            all          Set Oracle JDK 7 as default Java
bigdata@ubuntucmbigdata3:/usr/java$ 


 
相关文章
|
14天前
|
Ubuntu Windows
【Ubuntu/Arm】Ubuntu 系统如何链接有线网络(非虚拟机)?
【Ubuntu/Arm】Ubuntu 系统如何链接有线网络(非虚拟机)?
|
19天前
|
Ubuntu NoSQL 关系型数据库
Ubuntu系统下安装常用软件
Ubuntu系统下安装常用软件
40 0
Ubuntu系统下安装常用软件
|
2月前
|
开发框架 Oracle 关系型数据库
ASP.NET实验室LIS系统源码 Oracle数据库
LIS是HIS的一个组成部分,通过与HIS的无缝连接可以共享HIS中的信息资源,使检验科能与门诊部、住院部、财务科和临床科室等全院各部门之间协同工作。 
35 4
|
3月前
|
Ubuntu 安全 网络安全
百度搜索:蓝易云【Ubuntu系统SSH服务端配置】
现在,你已经成功在Ubuntu系统上配置了SSH服务端。这将允许其他计算机通过SSH协议连接到你的Ubuntu系统,并进行远程管理和操作。请注意,远程访问有安全风险,建议在生产环境中采取必要的安全措施来保护系统。
39 3
|
3月前
|
Ubuntu 网络安全
百度搜索:蓝易云【ubuntu系统ufw开放端口教程】
现在,你已经成功在Ubuntu系统中使用ufw开放了指定的端口。请确保只开放必要的端口,并注意网络安全。
69 3
|
3月前
|
存储 Ubuntu
百度搜索:蓝易云【在ubuntu系统下安装配置onedrive步骤】
现在,你已经成功在Ubuntu系统下安装和配置了OneDrive,可以使用该工具与OneDrive云端存储进行同步。
38 0
|
3月前
|
Ubuntu
百度搜索:蓝易云【Ubuntu系统apt添加第三方PPA源教程】
现在,你已经成功在Ubuntu系统中添加了第三方PPA源。系统将会从该源获取更新和软件包。请注意,添加第三方PPA源时要确保其来源可信,以免引入不安全的软件包。
39 5
|
14天前
|
Ubuntu Linux 网络安全
【ubuntu】MobaXtem远程登录ubuntu系统(或虚拟机)
【ubuntu】MobaXtem远程登录ubuntu系统(或虚拟机)
|
2月前
|
Web App开发 前端开发 JavaScript
如何快速与呼叫中心系统CTI/API/SDK接口集成
由于呼叫中心系统涉及通信、CTI、终端设备、中继线路等技术与概念,从事信息管理系统、ERP、CRM、工单系统等的研发人员一般不是非常熟悉这部分技术,当需要提供具备呼叫中心能力的解决方案时,往往要用较多的时间来研究这些相对复杂的技术,对接过程比较长,开发调试有一定的阻力,基于此,我们提出一种更加简便高效的集成方法,可以零代码集成呼叫中心平台,实现项目快速上线。
如何快速与呼叫中心系统CTI/API/SDK接口集成