Hi Folks,
Ages ago, I installed Spotify Linux client. I was tidying up today when I spotted that the Medibuntu project had closed so I removed that repository. I then spotted that I had the spotify client installed but I don't use it, so I tried to unistall it.
It didn't work: sudo apt-get remove spotify-client [] The following packages will be REMOVED spotify-client [] Do you want to continue [Y/n]? y dpkg: error processing spotify-client (--remove): Package is in a very bad inconsistent state - you should reinstall it before attempting a removal. Errors were encountered while processing: spotify-client E: Sub-process /usr/bin/dpkg returned an error code (1)
So I then tried to install it, various ways, for example https://www.spotify.com/uk/download/previews/
sudo apt-get install spotify-client Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: gir1.2-unique-3.0 libunique-3.0-0 Use 'apt-get autoremove' to remove them. The following packages will be upgraded: spotify-client 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 41.7 MB of archives. After this operation, 17.7 MB of additional disk space will be used. Get:1 http://repository.spotify.com/ stable/non-free spotify-client i386 1:0.9.4.183.g644e24e.428-1 [41.7 MB] Fetched 41.7 MB in 1min 5s (634 kB/s) Selecting previously unselected package spotify-client. (Reading database ... 274060 files and directories currently installed.) Preparing to replace spotify-client 1:0.9.1.55.gbdd3b79.203-1 (using .../spotify-client_1%3a0.9.4.183.g644e24e.428-1_i386.deb) ... /var/lib/dpkg/info/spotify-client.prerm: 9: /var/lib/dpkg/info/spotify-client.prerm: ./unregister.sh: not found dpkg: warning: subprocess old pre-removal script returned error exit status 127 dpkg: trying script from the new package instead ... /var/lib/dpkg/tmp.ci/prerm: 9: /var/lib/dpkg/tmp.ci/prerm: ./unregister.sh: not found dpkg: error processing /var/cache/apt/archives/spotify-client_1%3a0.9.4.183.g644e24e.428-1_i386.deb (--unpack): subprocess new pre-removal script returned error exit status 127 No apport report written because MaxReports has already been reached /var/lib/dpkg/info/spotify-client.postinst: 5: /var/lib/dpkg/info/spotify-client.postinst: ./register.sh: not found dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 127 Errors were encountered while processing: /var/cache/apt/archives/spotify-client_1%3a0.9.4.183.g644e24e.428-1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
So now I'm stuck. I can't install it. I can't uninstall it. How can I get rid of this error and remove spotify?
Cheers Steve