Results 1 to 3 of 3

Thread: a java installation quesiton from Lansing

  1. #1
    Join Date
    Jun 2008
    Location
    Michigan
    Beans
    19
    Distro
    Kubuntu 8.04 Hardy Heron

    a java installation quesiton from Lansing

    I am a student and just started using ubuntu last night and I love it. I need to install java 6 onto it. but I have got some problems.
    see below and hope I can please get some inputs from you.

    ###########
    You might want to run `apt-get -f install' to correct these:
    The following packages have unmet dependencies:
    sun-java5-bin: Depends: sun-java5-jre (= 1.5.0-15-0ubuntu1) but it is not going to be installed
    sun-java6-jdk: Depends: sun-java6-bin (= 6-06-0ubuntu1) but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

    but when I run the suggested,
    `apt-get -f install"

    no luck

    ####
    :~$ apt-get -f install
    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?

  2. #2
    Join Date
    Aug 2007
    Location
    Michigan
    Beans
    109
    Distro
    Ubuntu Development Release

    Re: a java installation quesiton from Lansing

    You need to use sudo:
    Code:
    sudo apt-get -f install
    Hopefully that fixes things for you?

  3. #3
    Join Date
    Jun 2008
    Location
    Michigan
    Beans
    19
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: a java installation quesiton from Lansing

    I got it.

    after running it, I selected I so, the problem fixed. Thanks.
    Last edited by GreenLinux@R; June 10th, 2008 at 08:32 AM.

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
  •