Steve Dobson wrote:
Hi guys

What is the best way to cope with a package that will not upgrade?

For example:

        # # apt-get upgrade
        Reading package lists... Done
Building dependency tree Reading state information... Done
        The following packages will be upgraded:
          gkrellmd
        1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
        2 not fully installed or removed.
        Need to get 0B/108kB of archives.
        After this operation, 57.3kB of additional disk space will be
        used.
Do you want to continue [Y/n]? (Reading database ... 235771 files and directories currently
        installed.)
        Preparing to replace gkrellmd 2.3.1-1
                (using .../gkrellmd_2.3.1-1+b1_amd64.deb) ...
        Stopping gkrellmd: invoke-rc.d: initscript gkrellmd,
                action "stop" failed.
        dpkg: warning - old pre-removal script returned error exit
                status 1
        dpkg - trying script from the new package instead ...
        Stopping gkrellmd: invoke-rc.d: initscript gkrellmd, action
                "stop" failed.
        dpkg: error processing
                /mirrors/debian/pool/main/g/gkrellm/gkrellmd_2.3.1-1\
                        +b1_amd64.deb (--unpack):
                subprocess new pre-removal script returned error exit
                status 1
        Starting gkrellmd: gkrellmd.

        Errors were encountered while processing:
                /mirrors/debian/pool/main/g/gkrellm/gkrellmd_2.3.1-1+\
                b1_amd64.deb
        E: Sub-process /usr/bin/dpkg returned an error code (1)

Hi Steve

It looks as though gkrellm didn't stop.  As root or sudo do:

# /etc/init.d/gkrellmd stop

or alternatively stop it by:

# ps aux | grep gkrellm

you will see a list of processes

# kill -15 (process number)

if that doesn't work, kill -9 xxxx

Then upgrade

Regards

Clive
begin:vcard
fn:Clive Menzies
n:Menzies;Clive
org:Clive Menzies & Associates Limited
adr:;;172 Victoria Road;London;;N22 7XQ;UK
email;internet:[EMAIL PROTECTED]
tel;cell:07836 601378
x-mozilla-html:FALSE
url:http://www.clivemenzies.co.uk
version:2.1
end:vcard

Reply via email to