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
On Sun, 13 Oct 2013 19:21:18 +0100 steve-ALUG@hst.me.uk allegedly wrote:
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.
Could be a failed dependency problem. Try an update, then apt-get purge and/or apt-get purge with -f (fix-broken) option.
Also you don't say whether you did the autoremove which was recommeded by apt.
Mick ---------------------------------------------------------------------
Mick Morgan gpg fingerprint: FC23 3338 F664 5E66 876B 72C0 0A1F E60B 5BAD D312 http://baldric.net
---------------------------------------------------------------------
On Sun, 13 Oct 2013 19:53:30 +0100 mick mbm@rlogin.net allegedly wrote:
On Sun, 13 Oct 2013 19:21:18 +0100 steve-ALUG@hst.me.uk allegedly wrote:
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.
Could be a failed dependency problem. Try an update, then apt-get purge and/or apt-get purge with -f (fix-broken) option.
Also you don't say whether you did the autoremove which was recommeded by apt.
And after a quick search, this might be worth trying
http://askubuntu.com/questions/148715/how-to-fix-package-is-in-a-very-bad-in...
Mick
---------------------------------------------------------------------
Mick Morgan gpg fingerprint: FC23 3338 F664 5E66 876B 72C0 0A1F E60B 5BAD D312 http://baldric.net
---------------------------------------------------------------------
On 13/10/13 19:57, mick wrote:
And after a quick search, this might be worth trying
http://askubuntu.com/questions/148715/how-to-fix-package-is-in-a-very-bad-in...
sudo dpkg --remove --force-remove-reinstreq spotify-client
dpkg: warning: overriding problem because --force enabled: Package is in a very bad inconsistent state - you should reinstall it before attempting a removal. (Reading database ... 274060 files and directories currently installed.) Removing spotify-client ... /var/lib/dpkg/info/spotify-client.prerm: 9: /var/lib/dpkg/info/spotify-client.prerm: ./unregister.sh: not found dpkg: error processing spotify-client (--remove): subprocess installed pre-removal script returned error exit status 127 /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: spotify-client
Then I tried
sudo dpkg --remove --force-remove-reinstreq --force-depends spotify-client dpkg: warning: overriding problem because --force enabled: Package is in a very bad inconsistent state - you should reinstall it before attempting a removal. (Reading database ... 274060 files and directories currently installed.) Removing spotify-client ... /var/lib/dpkg/info/spotify-client.prerm: 9: /var/lib/dpkg/info/spotify-client.prerm: ./unregister.sh: not found dpkg: error processing spotify-client (--remove): subprocess installed pre-removal script returned error exit status 127 /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: spotify-client
Don't know what to do! Steve
On Sun, 13 Oct 2013 20:17:21 +0100 steve-ALUG@hst.me.uk allegedly wrote:
Don't know what to do! Steve
<grasping-faintly-at-straws>
Have you tried aptitude? I have sometimes found that to be a little smarter than apt. And at one time ISTR that debian actually recommended aptitude over apt for distro upgrades.
</grasping-faintly-at-straws>
---------------------------------------------------------------------
Mick Morgan gpg fingerprint: FC23 3338 F664 5E66 876B 72C0 0A1F E60B 5BAD D312 http://baldric.net
---------------------------------------------------------------------
On 13/10/13 20:32, mick wrote:
<grasping-faintly-at-straws>
Have you tried aptitude? I have sometimes found that to be a little smarter than apt. And at one time ISTR that debian actually recommended aptitude over apt for distro upgrades.
</grasping-faintly-at-straws>
Well I tried it, and once I'd figured out how to work it, that didn't work either. :-(
Probably have sussed it though. Google is indeed my friend (5th time luck!)
http://superuser.com/questions/22110/how-to-fix-broken-synaptic-updates-pack...
sudo rm /var/lib/dpkg/info/spotify-client.prerm
sudo dpkg --remove --force-remove-reinstreq spotify-client
seems to have cured it. I did note down all the things that had supposedly been installed using dpkg -L spotify-client and will check they've gone.
Fingers crossed. Cheers for the help. Steve
On Sun, 13 Oct 2013 21:32:40 +0100 steve-ALUG@hst.me.uk allegedly wrote:
Probably have sussed it though. Google is indeed my friend (5th time luck!)
http://superuser.com/questions/22110/how-to-fix-broken-synaptic-updates-pack...
sudo rm /var/lib/dpkg/info/spotify-client.prerm
sudo dpkg --remove --force-remove-reinstreq spotify-client
seems to have cured it.
Glad you found what was needed.
---------------------------------------------------------------------
Mick Morgan gpg fingerprint: FC23 3338 F664 5E66 876B 72C0 0A1F E60B 5BAD D312 http://baldric.net
---------------------------------------------------------------------
On 13/10/13 19:53, mick wrote:
On Sun, 13 Oct 2013 19:21:18 +0100 steve-ALUG@hst.me.uk allegedly wrote: Could be a failed dependency problem. Try an update, then apt-get purge and/or apt-get purge with -f (fix-broken) option.
Synaptic's update packages fails. sudo apt-get purge -f fails. It can't install spotify-client
Also you don't say whether you did the autoremove which was recommeded by apt.
sudo apt-get autoremove also tries to update spotify-client, so also fails without uninstalling extra packages.
About to look at your other post (honest - I did google before asking!)
Steve