So I was reading to learn on how packages and package installation works in Ubuntu in general and where do the files responsible for the existence of any application (installation files) reside in my file system. I learnt that when a package manager installs an application, spotify for example, it will place different files in different locations, and that by using the command
sudo dpkg -L spotify-client
as an example, I would be able to see where that spotify application installation files are scattered through the file system. So I decided I wanted to remove them manually and practice what I just learnt (I wish I hadn't) and I headed to every location and performed a disastrous
sudo rm -r
command to remove a file at a time.
After that I thought that my spotify would disappear from the system and everybody will be happy but I started to see this error whenever attempting to install or remove any package
# sudo apt-get install grive
Reading package lists... Done
Building dependency tree
Reading state information... Done
grive is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 42 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up spotify-client (1:0.9.17.1.g9b85d43.7-1) ...
/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)