Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.