LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   installing sun-java6-jdk (https://www.linuxquestions.org/questions/linux-software-2/installing-sun-java6-jdk-632272/)

dcbc 04-01-2008 04:12 PM

installing sun-java6-jdk
 
hello
i am a linux newbie.
i am trying this command
$sudo apt-get install sun-java6-jdk
i get following error

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
sun-java6-bin sun-java6-jre
Suggested packages:
sun-java6-demo sun-java6-doc sun-java6-source sun-java6-plugin ia32-sun-java6-plugin
sun-java6-fonts ttf-sazanami-gothic ttf-sazanami-mincho
The following NEW packages will be installed:
sun-java6-bin sun-java6-jdk sun-java6-jre
0 upgraded, 3 newly installed, 0 to remove and 219 not upgraded.
Need to get 42.0MB of archives.
After unpacking 125MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
sun-java6-bin sun-java6-jre sun-java6-jdk
Install these packages without verification [y/N]? y
Get:1 http://archive.ubuntu.com feisty/multiverse sun-java6-bin 6-00-2ubuntu2 [26.2MB]
Get:2 http://archive.ubuntu.com feisty/multiverse sun-java6-jre 6-00-2ubuntu2 [6324kB]
Get:3 http://archive.ubuntu.com feisty/multiverse sun-java6-jdk 6-00-2ubuntu2 [9493kB]
Fetched 21.0MB in 6m55s (50.5kB/s)
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
Preconfiguring packages ...
Selecting previously deselected package sun-java6-bin.
(Reading database ... 273690 files and directories currently installed.)
Unpacking sun-java6-bin (from .../sun-java6-bin_6-00-2ubuntu2_i386.deb) ...
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
sun-dlj-v1-1 license has already been accepted
Selecting previously deselected package sun-java6-jre.
Unpacking sun-java6-jre (from .../sun-java6-jre_6-00-2ubuntu2_all.deb) ...
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
sun-dlj-v1-1 license has already been accepted
Selecting previously deselected package sun-java6-jdk.
Unpacking sun-java6-jdk (from .../sun-java6-jdk_6-00-2ubuntu2_i386.deb) ...
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
sun-dlj-v1-1 license has already been accepted
Setting up sun-java6-bin (6-00-2ubuntu2) ...

Setting up sun-java6-jre (6-00-2ubuntu2) ...

Setting up sun-java6-jdk (6-00-2ubuntu2) ...
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device



what should i do?

gankoji 04-01-2008 06:30 PM

It looks as though the files that you were downloading with apt-get are corrupted or have some other issue. The best way to solve your issue is to go to sun's website and download the java jdk package in .tar.gz format. This package should have either (I forget, sorry) an install script or a very handy text file telling you exactly how to handle putting java onto your machine. If you follow the script step by step you will then end up with java and will probably have fewer headaches than trying to reconfigure your apt-get repositories.

dcbc 04-02-2008 07:17 AM

gankoji
thanks for the reply.i'll try this


All times are GMT -5. The time now is 01:23 AM.