Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
sudo apt-get install oracle-java6-installer

[sudo] password for taha:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  binfmt-support visualvm ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho
  ttf-arphic-uming
The following NEW packages will be installed:
  oracle-java6-installer
0 upgraded, 1 newly installed, 0 to remove and 291 not upgraded.

1 not fully installed or removed.

Need to get 0 B/17.2 kB of archives.

After this operation, 106 kB of additional disk space will be used.
Preconfiguring packages ...

(Reading database ... 143904 files and directories currently installed.)
Unpacking oracle-java6-installer (from .../oracle-java6-installer_6u37-0~eugenesan~precise1_all.deb) ...
oracle-license-v1-1 license has already been accepted

dpkg: error processing /var/cache/apt/archives/oracle-java6-installer_6u37-0~eugenesan~precise1_all.deb 
(--unpack):
 trying to overwrite '/usr/share/applications/JB-java.desktop', which is also in package oracle-java7-installer 7u3-0~eugenesan~precise4
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...

Errors were encountered while processing:
 /var/cache/apt/archives/oracle-java6-installer_6u37-0~eugenesan~precise1_all.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)
share|improve this question
    
did u solve this? –  emaillenin Aug 5 '13 at 7:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.