How to remove rstudio-server-1.0.143-amd64.deb in ubuntu 16.04 linux machine

Solution 1:

Guess here that you installed rstudio-server by downloading it from an external source and then installing it using dpkg or GDebi. So, you are trying to remove it using the command:

sudo apt-get remove rstudio-server-1.0.143-amd64.deb

But, rstudio-server-1.0.143-amd64.deb is the name of the file. The software is installed as: rstudio-server. So, the correct command will be:

sudo apt-get remove --purge rstudio-server