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

Bug#864597: upgrade-reports: jessie -> stretch: gnome fails to upgrade: cycle found while processing triggers



Hi!

On Fri, 2017-06-16 at 03:34:06 +0200, gregor herrmann wrote:
> On Fri, 16 Jun 2017 01:38:28 +0200, Guillem Jover wrote:
> 
> > > Same as above, except that after 3) I did
> > > 
> > > 3a) sed -i -e 's/interest /interest-noawait /' /var/lib/dpkg/info/{desktop-file-utils,shared-mime-info}.triggers
> > > 
> > > and after 6) I again ran
> > > 
> > > 6a) sed -i -e 's/interest /interest-noawait /' /var/lib/dpkg/info/{desktop-file-utils,shared-mime-info}.triggers
> > 
> > The important file to modify in addition is actually
> > /var/lib/dpkg/triggers/File, "/noawait" would need to be appended to
> > the relevant lines. The individual .triggers files for this scenario are
> > pretty much just parsed on unpack and removals.
> 
> Oops, that's what you get when amateurs dabble around.
> Thanks for filling in my incomplete knowledge!

It's very possible that the internal documentation at
/usr/share/doc/dpkg-dev/triggers.txt.gz is not very clear on this
subject, and I'd be happy to clarify it!

> Ok, let's try again:
> 
> 1) enter a jessie cowbuilder chroot
> 2) rm /etc/apt/apt.conf.d/15pbuilder
> 3) apt-get install task-gnome-desktop
> 3a) sed -i -e 's/interest /interest-noawait /' /var/lib/dpkg/info/{desktop-file-utils,shared-mime-info}.triggers
> 3b) sed -i -e 's;desktop-file-utils;desktop-file-utils/noawait;' -e 's;shared-mime-info;shared-mime-info/noawait;' /var/lib/dpkg/triggers/File
> 
> 4) sed -i -e 's/jessie/stretch/g' /etc/apt/sources.list
> 5) apt-get update
> 6) apt-get upgrade
> 6a) sed -i -e 's/interest /interest-noawait /' /var/lib/dpkg/info/{desktop-file-utils,shared-mime-info}.triggers
> 6b) sed -i -e 's;desktop-file-utils;desktop-file-utils/noawait;' -e 's;shared-mime-info;shared-mime-info/noawait;' /var/lib/dpkg/triggers/File
> 7) apt-get dist-upgrade
> 
> Result:
[…]

Hmm, and thanks for the retest!

> It might well be that I again did something wrong. OTOH, this seems to
> match what anbe wrote of his similar tests some minutes ago.

So, I didn't try to reproduce the error first, and went directly for
a hunch. I followed your recipe, but in steps 3* and 6* I also amended
hicolor-icon-theme. And that seemed to fix the upgrade. Take into
account I've not had the time to analyze the dependency chain, nor if
my initial setup (not using cowbuilder, etc) matches, so maybe this is
an error in procedure. If someone else can reproduce, that'd be helpful,
otherwise I might retry tomorrow.

If this does fix it, it might be helpful also to try just amending the
triggers in the stretch "mock", instead of in the jessie one, to see if
such a fixed package would be enough.

Thanks,
Guillem


Reply to: