Ubuntu – apt-get: command not found after installed the aptitude


I tried to install npm in my ubuntu 18.04 using apt-get, my thrown some errors called,

npm: depends: node-gyp (>= 0.10.9) but it is not going to be installed.

I found one solution that says install aptitude first the install npm using

sudo aptitude install npm

And then the npm installed successfully, but i cannot do any apt operations.

Please help me to fix this.

Thanks in advance.

Best Answer

As you are working on the Ubuntu 18.04, By default It will have the apt-get Installed. if this Command is not found means the Installation of Ubuntu is not Proper. Please have a check with it.

Follow this Link.