To uninstall a .deb package in Ubuntu, you can use the dpkg
command. Here are the steps to uninstall a .deb package:
- Open the terminal by pressing
Ctrl + Alt + T
. - Type the following command and press Enter:
sudo dpkg -r package_name
Replace package_name
with the name of the package you want to uninstall. This command will remove the package from your system.
- If the package has any dependencies that are no longer needed, you can use the following command to remove them:
sudo apt autoremove
This will remove any packages that were installed as dependencies but are no longer needed.
Note: If you encounter any errors during the uninstallation process, you can try using the --force-all
option with the dpkg
command to force the removal of the package, but this should only be done as a last resort as it can potentially cause issues with your system.