I accidentally removed Spotify folder and now I can't uninstall programs from with apt-get or the Software Center, when I try to remove the flash plugin from the command line it give me this error:
/var/lib/dpkg/info/spotify-client.postinst: 5: /var/lib/dpkg/info/spotify-client.postinst: ./register.sh: not found
dpkg: error processing package spotify-client (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
spotify-client
E: Sub-process /usr/bin/dpkg returned an error code (1)
What to do?
sudo apt-get purge spotify
? That is the proper way to remove a package.sudo apt-get install -f
. The package sounds like it's broken. The-f
prefix checks all installed packages and tries to fix them.--force
-fully, if necessary) withapt-get install --reinstall
ordpkg -i
to restore the missing files, then remove the package as usually.