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

Thread: buggy uninstall script - Google Earth

  1. #1
    Join Date
    Aug 2010
    Beans
    258
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    buggy uninstall script - Google Earth

    Anyone familiar with uninstall scripts?

    I installed Google Earth from the Google site. That version is no good (others here have reported and I can confirm), so I want to uninstall it before trying the version from the medibuntu repository. Not possible to uninstall from Software Center or Synaptic and the uninstall script in its home dir is not working. It seems to be testing for various operating systems and branching to the appropriate uninstall program for the returned value, but I am not sure it is testing for linux at all (tests for "OpenUNIX", but that does not seem successful).
    Script is /opt/google-earth/uninstall
    with
    Code:
    sudo ./uninstall
    or
    Code:
    sudo bash uninstall
    it goes right to the final section (with none of the conditional test echo texts appearing) with it's own "I didn't find diddly here dude" message:
    --Could not find a usable uninstall program. Aborting.--

    So do I have other uninstall options or any suggestions on editing the script to correct it? script below.
    Code:
    #! /bin/sh
    #### UNINSTALL SCRIPT - Generated by SetupDB 1.6 #####
    DetectARCH()
    {
            status=1
            case `uname -m` in
               amd64 | x86_64)  echo "amd64"
                      status=0;;
               i?86 | i86*)  echo "x86"
                      status=0;;
               90*/*)
               echo "hppa"
               status=0;;
            *)
            case `uname -s` in
                IRIX*)
                echo "mips"
                status=0;;
               AIX*)
               echo "ppc"
               status=0;;
                *)
                arch=`uname -p 2>/dev/null || uname -m`
                           if test "$arch" = powerpc; then
                              echo "ppc"
                           else
                              echo $arch
                           fi
                status=0;;
            esac
            esac
            return $status
    }
    
    DetectOS()
    {
      os=`uname -s`
      if test "$os" = OpenUNIX; then
         echo SCO_SV
      else
         echo $os
      fi
      return 0
    }
    
    FindBinary()
    {
      arch=$1
      if which loki-uninstall 2> /dev/null > /dev/null || type -p loki-uninstall 2> /dev/null > /dev/null; then
        if loki-uninstall -v > /dev/null 2> /dev/null; then
            echo `exec 2>&-; which loki-uninstall || type loki-uninstall`
        else
            echo "$HOME/.loki/installed/bin/`DetectOS`/$arch/uninstall"
        fi
      else
        echo "$HOME/.loki/installed/bin/`DetectOS`/$arch/uninstall"
      fi
    }
    
    arch=`DetectARCH`
    UNINSTALL=`FindBinary $arch`
    
    # Special case: if amd64 and binary is missing, try to run x86 build...
    if test ! -x "$UNINSTALL" ; then
      if test "$arch" = amd64 ; then
        UNINSTALL=`FindBinary x86`
      fi
    fi
    
    if test ! -x "$UNINSTALL" ; then
        echo Could not find a usable uninstall program. Aborting.
        exit 1
    fi
    
    exec "$UNINSTALL" -L google-earth "/opt/google-earth/.manifest/google-earth.xml" "$1"

  2. #2
    Join Date
    Dec 2008
    Location
    43° 7' 41" 131° 54' 3"
    Beans
    Hidden!

    Re: buggy uninstall script - Google Earth

    Post the link where you got it.
    EasyBCD.
    PrintersDatabase
    Boot Info Script: How to
    The post above and the post below suffer from the Rashomon effect!

  3. #3
    Join Date
    Aug 2010
    Beans
    258
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: buggy uninstall script - Google Earth


  4. #4
    Join Date
    Dec 2008
    Location
    43° 7' 41" 131° 54' 3"
    Beans
    Hidden!

    Re: buggy uninstall script - Google Earth

    The uninstall script is in the same folder as Google Earth? Have you tried just double-clicking it?
    EasyBCD.
    PrintersDatabase
    Boot Info Script: How to
    The post above and the post below suffer from the Rashomon effect!

  5. #5
    Join Date
    Dec 2008
    Location
    43° 7' 41" 131° 54' 3"
    Beans
    Hidden!

    Re: buggy uninstall script - Google Earth

    EasyBCD.
    PrintersDatabase
    Boot Info Script: How to
    The post above and the post below suffer from the Rashomon effect!

  6. #6
    Join Date
    Aug 2010
    Beans
    258
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: buggy uninstall script - Google Earth

    I think option 1 worked! medibuntu here I come. Thanks.

  7. #7
    Join Date
    Aug 2010
    Beans
    258
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: buggy uninstall script - Google Earth

    Just for the record that option was
    Code:
    sudo  rm -rf /opt/google-earth && sudo rm  /usr/share/mime/application/vnd.google-earth.*  /usr/share/mimelnk/application/vnd.google-earth.*  /usr/share/applnk/Google-googleearth.desktop  /usr/share/mime/packages/googleearth-mimetypes.xml  /usr/share/gnome/apps/Google-googleearth.desktop  /usr/share/applications/Google-googleearth.desktop  /usr/local/bin/googleearth

  8. #8
    Join Date
    Dec 2008
    Location
    43° 7' 41" 131° 54' 3"
    Beans
    Hidden!

    Re: buggy uninstall script - Google Earth

    Great work!!
    EasyBCD.
    PrintersDatabase
    Boot Info Script: How to
    The post above and the post below suffer from the Rashomon effect!

  9. #9
    Join Date
    Aug 2010
    Beans
    258
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: buggy uninstall script - Google Earth

    Question tho-- all these are just file delete commands. Does this mean that, in Linux, deinstallation is simply deleting the main and program menu entry files associated? No correlate of the 6.5 million registry entries for every program and other hidden minefields like in *******? Sounds too good to be true.

  10. #10
    Join Date
    Dec 2008
    Location
    43° 7' 41" 131° 54' 3"
    Beans
    Hidden!

    Re: buggy uninstall script - Google Earth

    Quote Originally Posted by JamButty View Post
    Question tho-- all these are just file delete commands. Does this mean that, in Linux, deinstallation is simply deleting the main and program menu entry files associated? No correlate of the 6.5 million registry entries for every program and other hidden minefields like in *******? Sounds too good to be true.
    Simple answer...yes. When I run acros something like this I always do a "locate"...it will find 99% of the things you needto remove. However...there is sometimes a hidden folder in your home folder that holds the configs. Not always. No there is no registry. You might run the locate command as I indicated previously and see if there is some left-over.Windows always leaves files behind after an uninstall.
    EasyBCD.
    PrintersDatabase
    Boot Info Script: How to
    The post above and the post below suffer from the Rashomon effect!

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
  •