Find the answer to your Linux question:
Results 1 to 8 of 8
I'm trying to install Java (I know there are tutorials on this but i need more help). In terminal i typed: Code: chmod -x jre-6-linux-i586-rpm.bin then Code: ./jre-6-linux-i586.rpm it said ...
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    3

    Questions

    I'm trying to install Java (I know there are tutorials on this but i need more help).
    In terminal i typed:
    Code:
    chmod -x jre-6-linux-i586-rpm.bin
    then
    Code:
    ./jre-6-linux-i586.rpm
    it said
    Code:
    bash: ./jre-6-linux-i586.rpm: Permission denied
    I then tired
    Code:
    dpkg -i jre-6-linux-i586.rpm
    it said
    Code:
    dpkg: requested operation requires superuser privilege
    Can you please tell me what i'm doing wrong or how i can get superuser privilege?

  2. #2
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    Which Linux distribution are you using?

    Ubuntu?

    If so, you can install Java like that:
    http://www.linuxforums.org/forum/ubu...va-ubuntu.html
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  3. #3
    Just Joined!
    Join Date
    Apr 2007
    Posts
    3
    When you say
    go in Desktop -> Administration -> Software Repositories and make sure they are all enabled.
    Do you mean the desktop folder? If you do i don't have anything in it. I tired:
    Code:
    sudo apt-get install sun-java5-jre sun-java5-plugin
    But it came up with "Password:" then it wouldn't let me type anything.

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Do you mean the desktop folder? If you do i don't have anything in it. I tired:
    look for 'Software Repositories' in Administration Menu.
    But it came up with "Password:" then it wouldn't let me type anything.
    type password of user that you created during installation. nothing will be echoed during password typing. just type correct password and press Enter key.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    You can enable the Universe and Multiverse repositories like that:
    https://help.ubuntu.com/community/Repositories/Ubuntu

    Quote Originally Posted by linux n00b
    But it came up with "Password:" then it wouldn't let me type anything.
    That's normal. It does let you type it. Simply the password doesn't appear as you type it ("echo" is off). Just type the password and press ENTER.

    So are you using Ubuntu?
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  6. #6
    Just Joined!
    Join Date
    Apr 2007
    Posts
    3
    Yes i am using Ubuntu.
    I enabled all the software repositories but now when i run:
    Code:
    sudo apt-get install sun-java5-jre sun-java5-plugin
    i get
    Code:
    E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
    then when i run that i get:
    Code:
    dpkg: requested operation requires superuser privilege

  7. #7
    Linux Newbie tvilkov's Avatar
    Join Date
    Jan 2007
    Location
    Moscow
    Posts
    136
    It seems that you need to log in as root or "su" to be able to execute this. So, before you do anything, type
    Code:
    su
    su stands for "superuser". Then enter your ROOT (aka superuser) password when prompted. You will not see your password as you type, so make sure you're doing it correctly.
    Gentoo 2.6.24 amd64
    AMD Anthlon 64 X2, 2 GB RAM, Asus M2N-MX, nVidia GeForce 9600GT 512Mb, 250Gb + 160Gb HDDs

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by linux n00b
    dpkg: requested operation requires superuser privilege
    execute this
    Code:
    sudo dpkg --configure -a
    Quote Originally Posted by tvilkov
    su stands for "superuser". Then enter your ROOT (aka superuser) password when prompted. You will not see your password as you type, so make sure you're doing it correctly.
    'su' is not configured in Ubuntu by default. you should use 'sudo' instead of 'su'.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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