Failed to remove a pkg

Glenn Tobey gletob at gmail.com
Sun Mar 30 16:17:56 UTC 2008


On Sun, Mar 30, 2008 at 12:12 PM, Asif Iqbal <vadud3 at gmail.com> wrote:

> Removed finally!
>
> (iqbala)@ghar:~$ sudo dpkg --configure -a
>
> (iqbala)@ghar:~$ sudo apt-get purge icedtea-java7-plugin
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages will be REMOVED:
>  icedtea-java7-plugin*
> 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
> 1 not fully installed or removed.
> After this operation, 139kB disk space will be freed.
> Do you want to continue [Y/n]? Y
> dpkg: error processing icedtea-java7-plugin (--purge):
>  Package is in a very bad inconsistent state - you should
>  reinstall it before attempting a removal.
> Errors were encountered while processing:
>  icedtea-java7-plugin
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> (iqbala)@ghar:~$ sudo apt-get -f install icedtea-java7-plugin
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages will be upgraded:
>  icedtea-java7-plugin
> 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 1 not fully installed or removed.
> Need to get 0B/2710B of archives.
> After this operation, 106kB disk space will be freed.
> Selecting previously deselected package icedtea-java7-plugin.
> (Reading database ... 154781 files and directories currently installed.)
> Preparing to replace icedtea-java7-plugin 7~b24-1.5+20080118-1 (using
> .../icedtea-java7-plugin_7~b24-1.6-0ubuntu4_all.deb) ...
> update-alternatives: unable to make
> /usr/lib/firefox/plugins/libjavaplugin.so.dpkg-tmp a symlink to
> /etc/alternatives/firefox-javaplugin.so: No such file or directory
> dpkg: warning - old pre-removal script returned error exit status 2
> dpkg - trying script from the new package instead ...
> dpkg: error processing
> /var/cache/apt/archives/icedtea-java7-plugin_7~b24-1.6-0ubuntu4_all.deb
> (--unpack):
>  there is no script in the new version of the package - giving up
> update-alternatives: unable to make
> /usr/lib/firefox/plugins/libjavaplugin.so.dpkg-tmp a symlink to
> /etc/alternatives/firefox-javaplugin.so: No such file or directory
> dpkg: error while cleaning up:
>  subprocess post-installation script returned error exit status 2
> Errors were encountered while processing:
>  /var/cache/apt/archives/icedtea-java7-plugin_7~b24-1.6-0ubuntu4_all.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> (iqbala)@ghar:~$ ls -al /etc/alternatives/firefox-javaplugin.so:
> ls: cannot access /etc/alternatives/firefox-javaplugin.so:: No such
> file or directory
>
> (iqbala)@ghar:~$ ls -al /etc/alternatives/firefox-javaplugin.so
> ls: cannot access /etc/alternatives/firefox-javaplugin.so: No such
> file or directory
>
> (iqbala)@ghar:~$ touch /etc/alternatives/firefox-javaplugin.so
> touch: cannot touch `/etc/alternatives/firefox-javaplugin.so': Permission
> denied
>
> (iqbala)@ghar:~$ sudo touch /etc/alternatives/firefox-javaplugin.so
>
> (iqbala)@ghar:~$ sudo apt-get -f install icedtea-java7-plugin
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages will be upgraded:
>  icedtea-java7-plugin
> 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 1 not fully installed or removed.
> Need to get 0B/2710B of archives.
> After this operation, 106kB disk space will be freed.
> (Reading database ... 154781 files and directories currently installed.)
> Preparing to replace icedtea-java7-plugin 7~b24-1.5+20080118-1 (using
> .../icedtea-java7-plugin_7~b24-1.6-0ubuntu4_all.deb) ...
> Use of uninitialized value in string eq at
> /usr/sbin/update-alternatives line 482.
> Unpacking replacement icedtea-java7-plugin ...
> Setting up icedtea-java7-plugin (7~b24-1.6-0ubuntu4) ...
>
> (iqbala)@ghar:~$ sudo apt-get remove icedtea-java7-plugin
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages will be REMOVED:
>  icedtea-java7-plugin
> 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
> After this operation, 32.8kB disk space will be freed.
> Do you want to continue [Y/n]? Y
> (Reading database ... 154779 files and directories currently installed.)
> Removing icedtea-java7-plugin ...
>
>
> On Sun, Mar 30, 2008 at 12:01 PM, Asif Iqbal <vadud3 at gmail.com> wrote:
> >
> > I tried to remove ` icedtea-java7-plugin' using four different
> >   methods. No go. Any other suggestion would be appreciated.
> >
> >   I am running Hardy beta
> >
> >   (iqbala)@ghar:~$ sudo apt-get purge icedtea-java7-plugin
> >   Reading package lists... Done
> >   Building dependency tree
> >   Reading state information... Done
> >   The following packages will be REMOVED:
> >   icedtea-java7-plugin*
> >   0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
> >   1 not fully installed or removed.
> >   After this operation, 139kB disk space will be freed.
> >   Do you want to continue [Y/n]?
> >   dpkg: error processing icedtea-java7-plugin (--purge):
> >   Package is in a very bad inconsistent state - you should
> >   reinstall it before attempting a removal.
> >   Errors were encountered while processing:
> >   icedtea-java7-plugin
> >   E: Sub-process /usr/bin/dpkg returned an error code (1)
> >
> >
> >   (iqbala)@ghar:~$ sudo aptitude reinstall icedtea-java7-plugin
> >   Reading package lists... Done
> >   Building dependency tree
> >   Reading state information... Done
> >   Reading extended state information
> >   Initializing package states... Done
> >   Building tag database... Done
> >   The following packages will be REINSTALLED:
> >   icedtea-java7-plugin
> >   0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and
> >   0 not upgraded.
> >   Need to get 0B of archives. After unpacking 0B will be used.
> >   Writing extended state information... Error!
> >   E: I wasn't able to locate file for the icedtea-java7-plugin package.
> >   This might mean you need to manually fix this package.
> >
> >
> >   Tried to remove using synaptics. I get an incomplete error message
> >
> >   "E: icedtea-java7-plugin: Package is in a very bad inconsistent
> >   state - you should"
> >
> >   (iqbala)@ghar:~$ sudo apt-get remove icedtea-java7-plugin
> >   Reading package lists... Done
> >   Building dependency tree
> >   Reading state information... Done
> >   The following packages will be REMOVED:
> >   icedtea-java7-plugin
> >   0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
> >   1 not fully installed or removed.
> >   After this operation, 139kB disk space will be freed.
> >   Do you want to continue [Y/n]? Y
> >   dpkg: error processing icedtea-java7-plugin (--remove):
> >   Package is in a very bad inconsistent state - you should
> >   reinstall it before attempting a removal.
> >   Errors were encountered while processing:
> >   icedtea-java7-plugin
> >   E: Sub-process /usr/bin/dpkg returned an error code (1)
> >
> >
> >   --
> >   Asif Iqbal
> >   PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
> >
> >
> >
> >  --
> >  Asif Iqbal
> >  PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
> >
>
>
>
> --
> Asif Iqbal
> PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
I'm glad you resolved your problem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080330/e97d0266/attachment.html>


More information about the ubuntu-users mailing list