installing Java JDK 6

Asked by Hisham Sayed

I using Ubuntu and Itried to install sun Java JDK 6 using Ubuntu but I always get this message
"MSDOS EOF (^Z) in field name ` E: I am tried Sub-process /usr/bin/dpkg returned an error code (2)"

I tried by many means "from sun site, or synaptic Package Manager, or command line even also try to install sun Java JDK 5"
but I always get this message.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Shane Fagan (shanepatrickfagan) said :
#1

Reboot first then open terminal applications>accessories>terminal
Then copy and paste these into the terminal and hit enter on the keyboard.
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ubuntu-restricted-extras

Hope that helps

Revision history for this message
DILeeshvar (dileeshvar) said :
#2

this will be much simpler I guess :)

sudo apt-get install sun-java5-jdk

run it in terminal

Can you help with this problem?

Provide an answer of your own, or ask Hisham Sayed for more information if necessary.

To post a message you must log in.