Errors when trying to install the, default-jre-headless package from the synaptic package manager

1,028

As suggested in the console messages, please run

sudo apt-get update
sudo apt-get install --fix-missing
sudo apt-get install openjdk-6-jre-headless

That should most definitely fix the problem :)

Share:
1,028

Related videos on Youtube

Tyler DeWitt
Author by

Tyler DeWitt

Updated on September 18, 2022

Comments

  • Tyler DeWitt
    Tyler DeWitt over 1 year

    I remember in JUnit there is a way to run EVERY TestCase you have created or only those in a selected file.

    Is there a way to accomplish this in PyUnit?

    I can easily run the tests that are in my currently open file, but I'd like the option of running ALL tests (spread out across different files).

    I've seen the TestSuite, but my understanding is that that requires manually adding a TestCase to the TestSuite everytime you create a new TestCase. I was hoping to accomplish this automatically.

    For instance, I have the following TestCases (each with several test<Method Name> methods):

    class TestFamily(unittest.TestCase)
    class TestFamilyMember(unittest.TestCase)
    

    How can I run all the tests in TestFamily AND TestFamilyMember?

    Alternative

    Check out nosetests

    • Nitin Venkatesh
      Nitin Venkatesh about 12 years
      As the error message suggest, please run sudo apt-get update && sudo apt-get install --fix-missing and then try sudo apt-get install openjdk-6-jre-headless
    • Vass
      Vass about 12 years
      @nitstorm, thanks, that worked: alex@alex-laptop:~$ java -version java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.13) (6b20-1.9.13-0ubuntu1~10.04.1) OpenJDK Server VM (build 19.0-b09, mixed mode) could you put your comment as an answer to give you the credit due? Does this output mean that the java development kit is also included? Do I need to now install that separately?
    • Nitin Venkatesh
      Nitin Venkatesh about 12 years
      Cool :) Posted as answer :) Not sure, but I don't think JDK got installed, coz it states OpenJDK Runtime Environment but as I said, I am not 100% sure. This answer should prove useful for you at this stage :)
  • grrigore
    grrigore over 2 years
    best answer! thank you