Stuck package, cant remove

Marius Gedminas marius at pov.lt
Sun Apr 8 10:53:59 UTC 2007


On Sun, Apr 08, 2007 at 08:33:21AM +0100, Dave S wrote:
> I have a corrupted stuck vmware-player package, I cant install it, remove it 
> or purge it. any ideas on how to get rid of it ?

Ah, those are fun.

> root at dave-comp:~#
> root at dave-comp:~# dpkg -P --force-all vmware-player

It would be safer to use apt-get remove --purge vmware-player

> (Reading database ... 242415 files and directories currently installed.)
> Removing vmware-player ...
> Stopping VMware services:
>    Virtual machine monitor                                             done
> /etc/init.d/vmware-player: 765: /usr/lib/vmware-player/net-services.sh: not 
> found
>    Virtual ethernet                                                    done
> invoke-rc.d: initscript vmware-player, action "stop" failed.

You could edit /var/lib/dpkg/vmware-player, find the line where it
invokes /etc/init.d/vmware-player stop, and add '|| true' to the end
(without the quotes).

> dpkg: error processing vmware-player (--purge):
>  subprocess pre-removal script returned error exit status 1
> Starting VMware services:
>    Virtual machine monitor                                             done
>    Virtual ethernet                                                    done
> /etc/init.d/vmware-player: 765: /usr/lib/vmware-player/net-services.sh: not 
> found
> invoke-rc.d: initscript vmware-player, action "start" failed.
> dpkg: error while cleaning up:
>  subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
>  vmware-player
> root at dave-comp:~# apt-get install --reinstall vmware-player
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages were automatically installed and are no longer 
> required:
>   kaffeine-xine hwdb-client-kde kontact subversion ksysguard kde-icons-mono 
> kaffeine kbstate python-qt4 kmailcvt kmousetool kmag
> Use 'apt-get autoremove' to remove them.
> 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
> 1 not fully installed or removed.
> Need to get 0B of archives.
> After unpacking 0B of additional disk space will be used.
> Do you want to continue [Y/n]?
> Setting up vmware-player (1.0.2-2) ...
> Now configuring VMware Player.  (This may take some time...)
> cp: cannot stat `/usr/lib/vmware-player/share/locations.dist': No such file or 
> directory

This is rather interesting, because I have vmware-player 1.0.2-2
installed, and the package does contain the file
/usr/lib/vmware-player/share/locations.dist

> dpkg: error processing vmware-player (--configure):
>  subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
>  vmware-player
> E: Sub-process /usr/bin/dpkg returned an error code (1)

Marius Gedminas
-- 
A bus station is where a bus stops, a train station is where a train stops. On
my desk I have a work station...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070408/712e4fa7/attachment.sig>


More information about the ubuntu-users mailing list