Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Cant remove file

  1. #1
    Join Date
    Jul 2013
    Beans
    9

    Cant remove file

    I was following a guide to get java for my browser, but something was messed up while copying the Tar from the download folder to /usr/local/java. Instead of a java folder I now have a java file in local which I'm unable to remove niether with the file manager nor the rm command in terminal window. I have tried to restart in case the file was locked by a program, but no succes. How to proceed?
    Last edited by oldos2er; July 15th, 2013 at 09:18 PM. Reason: Please watch your language.

  2. #2
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,280
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Cant remove file

    since /usr/local/ is owned by root, only root can move it or delete it. you can use sudo to do what you want to the file.

  3. #3
    Join Date
    Sep 2011
    Beans
    692

    Re: Cant remove file

    sudo rm -rf foofile

  4. #4
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,280
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Cant remove file

    PLEASE BE VERY CAREFUL using leunam12 command, -rf is very DANGEROUS!

  5. #5
    Join Date
    Jul 2013
    Beans
    9

    Re: Cant remove file

    THX guys - it worked. To bad the java part didnt.. :-S

  6. #6
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Cant remove file

    The easiest way to install Java is to run the following 3 commands...
    Code:
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java7-installer
    This information can be found on the Ubuntu Wiki.
    https://help.ubuntu.com/community/Java
    Cheesemill

  7. #7
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Cant remove file

    Do you really need Oracle-java or will openjdk version not work for your purposes.

    It is many years since I installed Sun (now Oracle) -java, and I have no problems using any web-pages from my bank, or anywhere else.

  8. #8
    Join Date
    Jul 2013
    Beans
    9

    Re: Cant remove file

    >Cheesemill

    I just need the browser-plugin, I've allready got Java running, and I created a link for the browser as explained in the guide, but for some reason it do not start up when I go to a webpage with Java..

  9. #9
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Cant remove file

    Hello, cnra --

    We don't know what guide you used, so it is impossible for us to even take a stab at what might have gone wrong.

    I will tell you that most guides are unnecessarily esoteric and do not install Java in a manner consistent with the way that Ubuntu's package manager does. That sometimes makes things difficult to diagnose or remove.

    The directions Cheesemill provided are the most effective way to install Oracle Java 7 on Ubuntu, since webupd8.org has made it consistent with Ubuntu's package management. Also, when Oracle releases updates, the files are updated automatically when you do your normal updates.

    Using webupd8's method, you do not need to bother with symlinks. All of that is taken care of.

    If you run those commands now, regardless of what you may have done before, Oracle Java 7 will be installed and properly configured for use -- including the browser plugin.

    Cheers!
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  10. #10
    Join Date
    Jul 2013
    Beans
    9

    Re: Cant remove file

    Well I took the advice and tried, but still has problems..

    Now when I go to a webpage with java, chrome tells me that my java version is outdated, but if I test java version in terminal window, it says 1.7.0.25 (newest version). If I tell Crome to run java anyway, the java box on the webpage just turns in to a grey box. Any suggestions?

Page 1 of 2 12 LastLast

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
  •