Results 1 to 7 of 7

Thread: Java won't install in UNR 9.10

  1. #1
    Join Date
    Jun 2008
    Location
    Canada
    Beans
    21
    Distro
    Ubuntu UNR

    Exclamation Java won't install in UNR 9.10

    So I recently installed Ubuntu Netbook Remix 9.10 on my Asus 1005HA and it's amazing, works perfectly and all but when I try and install any type of java from the add/remove panel I always get this error when the package gets to 3%

    So how do I fix this because I want to install Java runtime files.

    Last edited by Chief_runningwater; December 4th, 2009 at 10:21 PM.

  2. #2
    Join Date
    Dec 2009
    Beans
    10
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Java won't install in UNR 9.10

    I'm new as well, so this is just a shot in the dark.

    I got java through the Ubuntu restricted extras package.

    Code:
    $sudo apt-get install ubuntu-restricted-extras
    I actually had an error during that and needed to install Java again. So I used:
    Code:
    $sudo apt-get install sun-java6-bin
    Good luck

  3. #3
    Join Date
    Jun 2008
    Location
    Canada
    Beans
    21
    Distro
    Ubuntu UNR

    Re: Java won't install in UNR 9.10

    Quote Originally Posted by bunk3rk1ng View Post
    I'm new as well, so this is just a shot in the dark.

    I got java through the Ubuntu restricted extras package.

    Code:
    $sudo apt-get install ubuntu-restricted-extras
    I actually had an error during that and needed to install Java again. So I used:
    Code:
    $sudo apt-get install sun-java6-bin
    Good luck
    I tried both and got

    Code:
    nicholas@nicholas-laptop:~$ $sudo apt-get install sun-java6-bin
    E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
    E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
    nicholas@nicholas-laptop:~$

  4. #4
    Join Date
    Dec 2009
    Beans
    10
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Java won't install in UNR 9.10

    Quote Originally Posted by Chief_runningwater View Post
    I tried both and got

    Code:
    nicholas@nicholas-laptop:~$ $sudo apt-get install sun-java6-bin
    E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
    E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
    nicholas@nicholas-laptop:~$
    I just tried on my machine and got the same error. Don't put the extra '$'.

    It should be:

    nicholas@nicholas-laptop:~$sudo apt-get install sun-java6-bin
    Same goes for all commands
    Last edited by bunk3rk1ng; December 4th, 2009 at 10:55 PM.

  5. #5
    Join Date
    Jun 2008
    Location
    Canada
    Beans
    21
    Distro
    Ubuntu UNR

    Re: Java won't install in UNR 9.10

    Quote Originally Posted by bunk3rk1ng View Post
    I just tried on my machine and got the same error. Don't put the extra '$'.

    It should be:

    Same goes for all commands
    Not 100% what I did but I can't remove it and when i try the command without the $ it gives me

    Code:
    nicholas@nicholas-laptop:~$ sudo apt-get install ubuntu-restricted-extras
    [sudo] password for nicholas: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package ubuntu-restricted-extras is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package ubuntu-restricted-extras has no installation candidate
    nicholas@nicholas-laptop:~$

  6. #6
    Join Date
    Dec 2009
    Beans
    10
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Java won't install in UNR 9.10

    Quote Originally Posted by Chief_runningwater View Post
    Not 100% what I did but I can't remove it and when i try the command without the $ it gives me

    Code:
    nicholas@nicholas-laptop:~$ sudo apt-get install ubuntu-restricted-extras
    [sudo] password for nicholas: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package ubuntu-restricted-extras is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package ubuntu-restricted-extras has no installation candidate
    nicholas@nicholas-laptop:~$
    It sounds like something is wrong with your repositories.

    Can you post what is in /etc/apt/sources.list ?

  7. #7
    Join Date
    Jun 2008
    Location
    Canada
    Beans
    21
    Distro
    Ubuntu UNR

    Re: Java won't install in UNR 9.10

    Thanks for the help I figured it out, I messed with the repositories and I guess screwed it up so I reverted it back to default and now it's working.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •