Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No package oracle-j2sdk1.7 available?

I am running following command for cloudera installation

 ./cloudera-manager-installer.bin

After accepting oracle license i getting error installation failed for logs go to 2.install-oracle-j2sdk1.7.log

following is contents of the log file

Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.syringanetworks.net
 * extras: mirror.sanctuaryhost.com
 * updates: centos.corenetworks.net
Setting up Install Process
No package oracle-j2sdk1.7 available.
Error: Nothing to do

anyone has this type of error ? give suggestions ?

like image 977
sandip divekar Avatar asked Feb 28 '14 09:02

sandip divekar


2 Answers

On CentOS 6.4 I needed

yum clean all
rm -rf /var/cache/yum/x86_64/6/cloudera-manager

It's the same as user2130332 wrote, but the path is more complicated. So the universal solution would be:

yum clean all
find /var/cache/yum -type d | grep cloudera- | xargs rm -rf
like image 162
xhancar Avatar answered Nov 14 '22 14:11

xhancar


Assuming this is on a RHEL type system, try this:

yum clean all
rm -rf /var/cache/yum/cloudera-*

I had the same problem and this solved it.

like image 3
user2130332 Avatar answered Nov 14 '22 14:11

user2130332