Cannot install Samba

My OSMC running on raspberry shows an error message while installing Samba from the app store.The error message reads “Error installing: post this on the osmc forum”.
Again when i tried installing samba via ssh ,using sudo apt-get install smb-app-osmc it shows another error
" The package node needs to be reinstalled, but I can’t find an archive for it."
What am i doing wrong? What can i do to solve this problem?

Try running sudo apt-get update first, then post full output of sudo apt-get install smb-app-osmc.

Cheers

osmc@osmc:~$ sudo apt-get install smb-app-osmc
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: The package node needs to be reinstalled, but I can’t find an archive for it.

Looks like you tried to install Node.js.
And then you may have removed the sources?

You should purge this package first for updates to work again, or reinstate the sources.list line and reinstall Node.

Node is not a requirement of OSMC.

Yes i did foolishly tried installing node.js while trying to compile a virtual gamepad for gamestarter advanced emulator launcher.

Problem solved.
Thank you very much Sir.