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

Bug#169241: apt, gawk and mawk



severity 169241 wishlist
thanks

On Fri, Jul 18, 2003 at 08:39:51AM -0700, Daniel Schepler wrote:

> I just managed to reproduce this in a pbuilder chroot: after "pbuilder
> login" and "apt-get install grep-dctrl", I did:
> 
> frobnitz:/# grep-dctrl -v -F Package original-awk /var/lib/apt/lists/http.us.debian.org_debian_dists_sid_main_binary-i386_Packages >/tmp/Packages-new
> frobnitz:/# mv /tmp/Packages-new /var/lib/apt/lists/http.us.debian.org_debian_dists_sid_main_binary-i386_Packages
> frobnitz:/# apt-get install gawk mawk-
> Reading Package Lists... Done
> Building Dependency Tree... Done
> The following packages will be REMOVED:
>   mawk
> The following NEW packages will be installed:
>   gawk
> WARNING: The following essential packages will be removed
> This should NOT be done unless you know exactly what you are doing!
>   mawk (due to base-files)
> 0 packages upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
> Need to get 862kB of archives.
> After unpacking 1626kB of additional disk space will be used.
> You are about to do something potentially harmful
> To continue type in the phrase 'Yes, do as I say!'
>  ?]
> Abort.
> 
> This might be related to the bug involving sysv-rc and file-rc (which
> I can't seem to find at the moment).

OK, this seems to be new in 0.5.5 (0.5.4 proceeds normally on a clean woody
system, but after upgrading to apt 0.5.5.1, exhibits the behavior you report).

This happens only when gawk is installed in the same run where mawk is removed.
mawk is being removed before gawk is installed, so there is a window where
an essential package is broken.  If you install gawk and then remove mawk
(two steps), everything is fine.  It might be nice if apt could figure out
that solution, but it doesn't presently, and you need to specify it.

-- 
 - mdz



Reply to: