Operating System - Linux
1827892 Members
1702 Online
109969 Solutions
New Discussion

Cannot Uninstall APLS due to missing files

 
SOLVED
Go to solution
DuyLe
Occasional Advisor

Cannot Uninstall APLS due to missing files

I currently install APLS using a terminal on Linux. Because APLS is corrupted, I want to uninstall it. However, I deleted the entire file before uninstalling so now I can't uninstall it according to the instructions. Is there a way for me to uninstall APLS without using the .bin file?

6 REPLIES 6
Vinky_99
Esteemed Contributor

Re: Cannot Uninstall APLS due to missing files

@DuyLe 

If the files necessary for uninstalling APLS have been deleted, you may need to take a few additional steps to remove it from your system. Here are a few options you can give a try:

  1. Use the package manager: If you installed APLS using a package manager like apt or yum, you can try removing it with the same package manager. For example, if you installed APLS using apt, you can try running the command "sudo apt remove apls" to remove it.

  2. Use a package manager to reinstall APLS: If you can't remove APLS using the package manager, you can try reinstalling it and then removing it again. This may help restore any missing files that are necessary for uninstalling the software. After reinstalling APLS, try running the uninstallation command again.

  3. Manually remove APLS: If the above steps don't work, you can try manually removing any remaining APLS files. You can search for files related to APLS using the "find" command in the terminal, and then delete any files or directories that are related to APLS.

Make a note manually removing files can be risky, as it can potentially cause other issues with your system if you delete the wrong files. Therefore, it's recommended to only attempt this option if you have some knowledge about the file structure and dependencies of APLS.

 

NOTE: Am not an expert, I may go wrong. Take a back-up of the data, before you perform any steps. You can give a try on your own risk. 

These are my opinions so use it at your own risk.
DuyLe
Occasional Advisor

Re: Cannot Uninstall APLS due to missing files

Hi @Vinky_99 ,

Thank you for guidance. I tried the methods you suggested, but it still doesn't work. Here are the results I tried your way:

  1. Use the package manager: When I use the command "sudo apt remove apls", my machine shows the error
    E: Unable to locate package apls.
    I don't know how to locate the package apls because I deleted the files before.
  2. Use a package manager to reinstall APLS: When I try to reinstall APLS, I get the following message:

    Preparing to install
    Extracting the JRE from the installer archive...
    Unpacking the JRE...
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...

    Launching installer...

    One or more newer versions of the product are already installed.
    An upgrade is not applicable in this case.

  3. Manually remove APLS: When I use the "find" command, I can't find any results when searching for "apls".

 

I hope you can help me further so that I can install and use APLS on my machine. Have a good day!

 

Vinky_99
Esteemed Contributor

Re: Cannot Uninstall APLS due to missing files

@DuyLe 

Ahh sorry, I missed your post.  If the above methods did not work, here are a few additional steps you can try:

  1. Check for any configuration files or directories related to APLS: Even if you can't find any files specifically named "apls", there may be configuration files or directories that contain information about the APLS installation. You can try searching for these files using the "find" command with keywords related to APLS, such as "java" or "netbeans" (if APLS is based on the NetBeans IDE). Once you locate these files, you can delete them manually.

  2. Try using a package manager to force-remove APLS: If you can't remove APLS using the package manager, you can try using the force-remove option to remove it. For example, if you installed APLS using apt, you can try running the command "sudo apt-get remove --force apls".

  3. Reinstall your operating system: If all else fails, you can consider reinstalling your operating system. This will remove all installed packages and files, including APLS. However, this is a drastic solution and should only be considered as a last resort.

I hope one of these solutions helps you to remove APLS from your system.

 

Note: I'm not a expert and I may go wrong. Take a back-up before you go and perform any steps.  

These are my opinions so use it at your own risk.
DuyLe
Occasional Advisor

Re: Cannot Uninstall APLS due to missing files

Hi @Vinky_99 ,

I am very grateful to you for helping me. But after many trials over the past several days, I still have not been able to reinstall APLS:

  1. I cannot locate directories related to APLS. All I can find is the APLS installation .zip file.
  2. I also can't use --force to remove APLS
  3. I update my Ubuntu, from 16.04 to 18.04. However, I still get the old results.

I'm sorry for the late response and have to inform you that I haven't been able to reinstall APLS yet. Hope I will continue to be of your help.

Have a good day!

Vinky_99
Esteemed Contributor
Solution

Re: Cannot Uninstall APLS due to missing files

If you are unable to locate any directories or files related to APLS on your system, it is possible that the APLS installation did not complete successfully, or there was an issue with the installation process.

Since you also cannot use the --force option to remove APLS, you may want to try a more aggressive removal method such as using the "dpkg" command to force remove the package.

Here are the steps to try:

  1. Open a terminal and type the command "sudo dpkg --list | grep apls". This should list any packages related to APLS that are installed on your system. Note down the package name.
  2. Type the command "sudo dpkg --remove --force-remove-reinstreq <package-name>" (replace <package-name> with the actual package name you noted down in step 1). This will attempt to remove the package using dpkg, even if it has missing files or dependencies.
  3. If the above command does not work, you can try using the command "sudo dpkg --purge --force-remove-reinstreq <package-name>". This will attempt to purge the package and remove any remaining configuration files or dependencies associated with it.
  4. After attempting the removal, run "sudo apt-get autoremove" to remove any remaining dependencies that are no longer needed by other installed packages.

If the above steps still do not allow you to remove APLS, it may be necessary to manually remove any remaining files or directories associated with APLS using the "find" command or a file manager. You can also try contacting the APLS support team for further assistance with the installation or removal process.

Hope this help! 

These are my opinions so use it at your own risk.
DuyLe
Occasional Advisor

Re: Cannot Uninstall APLS due to missing files

Hi @Vinky_99,

After trying different ways, I decided to install APLS on my Window laptop, and it worked. I will continue to try deleting and reinstalling APLS on Linux and will report back to you with the results.

Thank you for the great support you have given me. I really appreciate this. Have a good day!