Cobra Forum

Linux => New to Ubuntu => Topic started by: mahesh on Aug 17, 2023, 03:36 AM

Title: Unable to uninstall an installed package
Post by: mahesh on Aug 17, 2023, 03:36 AM
Hi everyone,

I installed a package from source (nodejs 14.21) and npm.

I would like to uninstall both but when I use
    Code:
sudo apt remove node
, I have the error message

     Code:
E: Impossible de trouver le paquet node
.
The same for npm.

When I type

    Code:
node --version
however, I have the version
    Code:
v14.21.1
. Idem for npm. So, I suppose it is installed already.

I also tried
    Code:
sudo dpkg --remove --force-remove-reinstreq npm
but it doesn't work neither.

How can I uninstall a package that is not recognized by the system ?