Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install JDK on my remote Debian box. I've been following the directions at this page.

Problem is, the make-jpkg fails. Here's the output I get (plus the version of java-package I'm running:

:~/Desktop/Downloads$ fakeroot make-jpkg jdk-6u16-linux-i586.bin 

Creating temporary directory: /tmp/make-jpkg.BdyKSdDYXH

Loading plugins:

Detected Debian build architecture: i386

Detected Debian GNU type: i486-linux-gnu

No matching plugin was found.

Removing temporary directory: done

:~/Desktop/Downloads$ apt-cache policy java-package | head -2java-package:

  Installed: 0.42

Any ideas why it's failing?

share|improve this question

It looks like you are trying to build a newer version of the Sun jdk than make-jpkg is configured for. In the past when I've ran into this I've modified the plugin for make-jpkg.

In this case the correct plugin is probably "/usr/share/java-package/".

  1. Make a backup copy of the file in case you run into problems.
  2. Open the file in your favorite editor.
  3. Add the following to the case statement for your architecture (i386|i486-linux-gnu). This was shamelessly copied from the plugin on Ubuntu 9.04.

    "jdk-6u"[0-9][0-9]"-linux-i586.bin") # SUPPORTED
  4. Save the file.
  5. Run make-jpkg as before.

If all goes well you, should now be able to install your shiney new java package.

Take care.

share|improve this answer

You shouldn't be using make-jpkg any more. It was a temporary hack until Debian could distribute the JDK itself. The article you linked to is four years old. Install sun-java6-jdk package instead. Lenny has 6u12. If you really need 6u16, it is available in sid.

share|improve this answer
They've since been removed:… – Samuel Edwin Ward May 16 '12 at 18:59

You could try the following as a regular user:

DEB_BUILD_GNU_TYPE=i386-linux fakeroot make-jpkg jdk-6u16-linux-i586.bin

And afterwards running the command that failed (hopefully it works this time).

share|improve this answer

Your Answer


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