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,100
    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.
    Check out my Blog about my life and computer software and hardware. http://ubuntuaddicted.blogspot.com/
    My YouTube channel:
    http://www.youtube.com/ubuntuaddicted

  3. #3
    Join Date
    Sep 2011
    Beans
    48

    Re: Cant remove file

    sudo rm -rf foofile

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

    Re: Cant remove file

    PLEASE BE VERY CAREFUL using leunam12 command, -rf is very DANGEROUS!
    Check out my Blog about my life and computer software and hardware. http://ubuntuaddicted.blogspot.com/
    My YouTube channel:
    http://www.youtube.com/ubuntuaddicted

  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
    England
    Beans
    Hidden!

    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.
    DISTRO: Xubuntu 12.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo

  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!

  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
  •