Bug#346028: linux-2.6: Hangs while attempting to purge

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#346028: linux-2.6: Hangs while attempting to purge

Nathanael Nerode-5
Package: linux-2.6
Severity: serious
Justification: Won't uninstall cleanly


It hangs on this line of the postrm script:

my $ret = purge();

I can get it to work by deleting this line.  Perhaps this is because a
debconf routine is being called after "stop" has been called?  I don't know,
but anyway it's a serious bug.

This bug appears in linux-image-2.6.14-2-686 and linux-image-2.6.15-1-686,
and I assume in other flavours as well.


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#346028: linux-2.6: Hangs while attempting to purge

Cesare Leonardi
Nathanael Nerode wrote:

> Package: linux-2.6
> Severity: serious
> Justification: Won't uninstall cleanly
>
>
> It hangs on this line of the postrm script:
>
> my $ret = purge();
>
> I can get it to work by deleting this line.  Perhaps this is because a
> debconf routine is being called after "stop" has been called?  I don't know,
> but anyway it's a serious bug.
>
> This bug appears in linux-image-2.6.14-2-686 and linux-image-2.6.15-1-686,
> and I assume in other flavours as well.

Hi Nathanael.
I can confirm this problem, in fact i have also filed a bug against it:
see #344767.

Regards.

Cesare.


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#346028: linux-2.6: Hangs while attempting to purge

Sven Luther
On Thu, Jan 05, 2006 at 12:34:06AM +0100, Cesare Leonardi wrote:

> Nathanael Nerode wrote:
> >Package: linux-2.6
> >Severity: serious
> >Justification: Won't uninstall cleanly
> >
> >
> >It hangs on this line of the postrm script:
> >
> >my $ret = purge();
> >
> >I can get it to work by deleting this line.  Perhaps this is because a
> >debconf routine is being called after "stop" has been called?  I don't
> >know,
> >but anyway it's a serious bug.
> >
> >This bug appears in linux-image-2.6.14-2-686 and linux-image-2.6.15-1-686,
> >and I assume in other flavours as well.
>
> Hi Nathanael.
> I can confirm this problem, in fact i have also filed a bug against it:
> see #344767.

Hi both of you, ...

It would be great if you could confirm the exact version of those two
packages, and could provide us some log of what is happening, as this bug
report doesn't seem to be very informative.

This issue should have been fixed in linux-image-2.6.15-1-686 though, so we
really need to find out what did go wrong.

Also, could you please give us the output of ls -lR /etc/kernel, and append it
to the bug report ?

Friendly,

Sven Luther



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#346028: linux-2.6: Hangs while attempting to purge

Cesare Leonardi
Sven Luther wrote:
> It would be great if you could confirm the exact version of those two
> packages, and could provide us some log of what is happening, as this bug
> report doesn't seem to be very informative.

For me, i have provided information in bug #344767, as i explained in
the previous message: versions, logs, ecc.

> This issue should have been fixed in linux-image-2.6.15-1-686 though, so we
> really need to find out what did go wrong.

I haven't tested 2.6.15 because it isn't available in my mirror yet. But
the Nathanael posts tell us that the problem is still present in the
latest kernel.
As soon as it will be available on the mirror i use, i'll test 2.6.15.

> Also, could you please give us the output of ls -lR /etc/kernel, and append it
> to the bug report ?

Do you mean this?
$ ls -lR /etc/kernel-*
-rw-r--r-- 1 root root  179 2005-09-11 20:55 /etc/kernel-img.conf
-rw-r--r-- 1 root root 1006 2005-11-08 00:35 /etc/kernel-pkg.conf

Regards.

Cesare.


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#346028: linux-2.6: Hangs while attempting to purge

Cesare Leonardi
Cesare Leonardi wrote:
> I haven't tested 2.6.15 because it isn't available in my mirror yet. But
> the Nathanael posts tell us that the problem is still present in the
> latest kernel.
> As soon as it will be available on the mirror i use, i'll test 2.6.15.

Ok, 2.6.15 is arrived.
I've tryed to install linux-image-2.6.15-1-486 (version 2.6.15-1), then
to purge it and the operation failed. But now, it doesn't hang as stated
in the bug reports, but fails with an error:

(Reading database ... 83162 files and directories currently installed.)
Removing linux-image-2.6.15-1-486 ...
Running postrm hook /sbin/update-grub .
Searching for GRUB installation directory ... found: /boot/grub
The link /vmlinuz is a damaged link
Removing symbolic link vmlinuz
Unless you used the optional flag in lilo,
  you may need to re-run lilo
The link /initrd.img is a damaged link
Removing symbolic link initrd.img
Unless you used the optional flag in lilo,
  you may need to re-run lilo
Purging configuration files for linux-image-2.6.15-1-486 ...
Running postrm hook /sbin/update-grub .
Searching for GRUB installation directory ... found: /boot/grub
dpkg: error processing linux-image-2.6.15-1-486 (--purge):
  subprocess post-removal script returned error exit status 128
Errors were encountered while processing:
  linux-image-2.6.15-1-486
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Press return to continue.

But since the "486" flavour is a new entry, i've also tryed
linux-image-2.6.15-1-686-smp, which i know was failing during purge
(while i was investigating for bug #344767, i had also tested
linux-image-2.6.14-2-686-smp (2.6.14-6), and it hanged like the others):
the purge operation for 2.6.15-686-smp failed like 486 flavour:

(Reading database ... 83105 files and directories currently installed.)
Removing linux-image-2.6.15-1-686-smp ...
Running postrm hook /sbin/update-grub .
Searching for GRUB installation directory ... found: /boot/grub
The link /vmlinuz is a damaged link
Removing symbolic link vmlinuz
Unless you used the optional flag in lilo,
  you may need to re-run lilo
The link /initrd.img is a damaged link
Removing symbolic link initrd.img
Unless you used the optional flag in lilo,
  you may need to re-run lilo
Purging configuration files for linux-image-2.6.15-1-686-smp ...
Running postrm hook /sbin/update-grub .
Searching for GRUB installation directory ... found: /boot/grub
dpkg: error processing linux-image-2.6.15-1-686-smp (--purge):
  subprocess post-removal script returned error exit status 128
Errors were encountered while processing:
  linux-image-2.6.15-1-686-smp
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Press return to continue.

Some information about my system:
- Debian Sid
- linux-image-2.6.15-1-686 (2.6.15-1)
- yaird (0.0.12-3)
- initrd-tools (0.1.84)
- grub (0.97-2)
- libc6 (2.3.5-11)
- libc6-i686 (2.3.5-11)


Regards.

Cesare.


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#346028: linux-2.6: Hangs while attempting to purge

Sven Luther
In reply to this post by Cesare Leonardi
On Thu, Jan 05, 2006 at 01:19:17AM +0100, Cesare Leonardi wrote:
> Sven Luther wrote:
> >It would be great if you could confirm the exact version of those two
> >packages, and could provide us some log of what is happening, as this bug
> >report doesn't seem to be very informative.
>
> For me, i have provided information in bug #344767, as i explained in
> the previous message: versions, logs, ecc.

Ah, looking at this one now.

> >This issue should have been fixed in linux-image-2.6.15-1-686 though, so we
> >really need to find out what did go wrong.
>
> I haven't tested 2.6.15 because it isn't available in my mirror yet. But
> the Nathanael posts tell us that the problem is still present in the
> latest kernel.

But it should not, which is why it is important to investigate. 2.6.14-2 is no
more in the archive as of today, and thus no longer relevant.

For information, i had this problem on powerpc, where the debconfified
mkvmlinuz package used debconf script in the /etc/kernel way described below,
but we fixed it last week, and the new 2.6.15-1 kernel build depend on at
least the 10.028 or 10.029 kernel-package version with this fixed.

So, either it is a new problem, or somehow the version Nathanael has built was
done so using an older kernel-package which was buggy.

> As soon as it will be available on the mirror i use, i'll test 2.6.15.

Thanks.

> >Also, could you please give us the output of ls -lR /etc/kernel, and
> >append it
> >to the bug report ?
>
> Do you mean this?
> $ ls -lR /etc/kernel-*
> -rw-r--r-- 1 root root  179 2005-09-11 20:55 /etc/kernel-img.conf
> -rw-r--r-- 1 root root 1006 2005-11-08 00:35 /etc/kernel-pkg.conf

No, the kernel-packahe generated postinst and co script have support for
script hooks, found under /etc/kernel/postinst.d/ and co, i want to know what
exactly you have there, because it is probable that some random third party
hook (like grub-update call maybe) causes this problem.

Friendly,

Sven Luther



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#344767: Bug#346028: linux-2.6: Hangs while attempting to purge

Sven Luther
In reply to this post by Cesare Leonardi
reassign 344767 grub
thanks
On Thu, Jan 05, 2006 at 01:19:17AM +0100, Cesare Leonardi wrote:
> Sven Luther wrote:
> >It would be great if you could confirm the exact version of those two
> >packages, and could provide us some log of what is happening, as this bug
> >report doesn't seem to be very informative.
>
> For me, i have provided information in bug #344767, as i explained in
> the previous message: versions, logs, ecc.

I have now looked at this bug report, and it is indeed probable that it is a
bug in grub, who wants to write to stdout, which plays hell with the new
kernel-package debconfified due to messing up the debconf protocol.

Since policy mandates debconf for interaction, this is a RC grub bug, and a
proposed fix is have grub-updates output info on stderr instead.

There were some bugs we redirected to the grub guys, but i can't find them in
the BTS anymore, so reasigning the 344767 bug report to them.

Friendly,

Sven Luther



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#344767: Bug#346028: linux-2.6: Hangs while attempting to purge

Sven Luther
In reply to this post by Cesare Leonardi
On Thu, Jan 05, 2006 at 03:51:54AM +0100, Cesare Leonardi wrote:

> Cesare Leonardi wrote:
> >I haven't tested 2.6.15 because it isn't available in my mirror yet. But
> >the Nathanael posts tell us that the problem is still present in the
> >latest kernel.
> >As soon as it will be available on the mirror i use, i'll test 2.6.15.
>
> Ok, 2.6.15 is arrived.
> I've tryed to install linux-image-2.6.15-1-486 (version 2.6.15-1), then
> to purge it and the operation failed. But now, it doesn't hang as stated
> in the bug reports, but fails with an error:

Indeed, this is a grub RC bug, which need to fix their grub-update call from
/etc/kernel/*.d/grub or whatever scripts.

Friendly,

Sven Luther



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#346028: linux-2.6: Hangs while attempting to purge

Cesare Leonardi
Sven Luther wrote:
>>Ok, 2.6.15 is arrived.
>>I've tryed to install linux-image-2.6.15-1-486 (version 2.6.15-1), then
>>to purge it and the operation failed. But now, it doesn't hang as stated
>>in the bug reports, but fails with an error:
>
>
> Indeed, this is a grub RC bug, which need to fix their grub-update call from
> /etc/kernel/*.d/grub or whatever scripts.

Ok, i have also read the other your mails regards the grub bug.
But i would inform you that the /etc/kernel/ folder (that you have
requested us to post in the previous messages) doesn't exist on my system...

Regards.

Cesare.


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#346028: linux-2.6: Hangs while attempting to purge

Sven Luther
On Fri, Jan 06, 2006 at 01:32:13AM +0100, Cesare Leonardi wrote:

> Sven Luther wrote:
> >>Ok, 2.6.15 is arrived.
> >>I've tryed to install linux-image-2.6.15-1-486 (version 2.6.15-1), then
> >>to purge it and the operation failed. But now, it doesn't hang as stated
> >>in the bug reports, but fails with an error:
> >
> >
> >Indeed, this is a grub RC bug, which need to fix their grub-update call
> >from
> >/etc/kernel/*.d/grub or whatever scripts.
>
> Ok, i have also read the other your mails regards the grub bug.
> But i would inform you that the /etc/kernel/ folder (that you have
> requested us to post in the previous messages) doesn't exist on my system...

Mmm, then i am out of my depth, and i think it is best you follow up with
Manoj, since it is a kernel-package issue.

Friendly,

Sven Luther



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#346028: Bug#344767: Bug#346028: linux-2.6: Hangs while attempting to purge

Otavio Salvador
Sven Luther <[hidden email]> writes:

> Mmm, then i am out of my depth, and i think it is best you follow up with
> Manoj, since it is a kernel-package issue.

I and Bastian did the fix for it. It should be include today.

--
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: [hidden email]      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://www.freedom.ind.br/otavio
---------------------------------------------
"Microsoft gives you Windows ... Linux gives
 you the whole house."


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]