[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to Remove kernel-image-2.2.9 with Buggy Script?



Art Lemasters <alemas@rmi.net> wrote:
>      When I try to remove an old kernel-image, the following error
> occurs.
> 
>          Can't return outside a subroutine at
> /var/lib/dpkg/info/kernel-image-2.2.9.postrm line 111
> 
> How can I efficiently remove it?  ...tried dpkg --force- and that
> didn't do it.

If you open the file in your editor and search for return, you will
find only one instance. Comment out the offending line by adding a
# in front of the return statement. After that the script will
complete succesfully and the package will be removed.

> Art

// Heikki
-- 
Heikki Vatiainen                  * hessu@cs.tut.fi
Tampere University of Technology  * Tampere, Finland



Reply to: