[Aptitude-devel] Bug#844300: Bug#844300: Bug#844300: nvidia-driver-libs:amd64: upgrade failure due to dependency issue

Axel Beckert abe at debian.org
Tue Nov 22 12:44:16 UTC 2016


Control: tag -1 - moreinfo

Hi Vincent,

Vincent Lefevre wrote:
> On 2016-11-22 12:36:32 +0100, Axel Beckert wrote:
> > Vincent Lefevre wrote:
> > > In any case, if the dependencies are correct, the package system
> > > should never be put in a broken state.
> > 
> > I'm sorry but that's wrong. Maintainer scripts can still put packages
> > in a broken state even if dependencies are correct.
> 
> Hmmm... After a closer look, this seems more complex than I've
> thought. I've just noticed that the dpkg output does not match the
> aptitude log (I wasn't aware of that, hence my confusion), but the
> problem may also come from in which order operations on a group of
> packages is done. Perhaps a bug in dpkg.

At least in the apt case, the order comes from apt. I'm currently not
sure how much order control aptitude leaves to dpkg. mafm likely knows
that better than me.

> [REMOVE, NOT USED] nvidia-driver-libs:i386 367.57-1
> 
> So, nvidia-driver-libs:i386 is to be removed. But the only packages
> that have been removed in the dpkg output are:
> 
> Removing nvidia-driver-libs-i386:i386 (367.57-1) ...
> Removing libopengl0-glvnd-nvidia:i386 (367.57-1) ...
> Removing nvidia-vulkan-icd:i386 (367.57-1) ...
> Removing libglx-nvidia0:i386 (367.57-1) ...
> Removing libglx0-glvnd-nvidia:i386 (367.57-1) ...
> Removing libgles-nvidia2:i386 (367.57-1) ...
> Removing libgles2-glvnd-nvidia:i386 (367.57-1) ...
> Removing libgles-nvidia1:i386 (367.57-1) ...
> Removing libgles1-glvnd-nvidia:i386 (367.57-1) ...
> Removing libgles-nvidia1:amd64 (367.57-1) ...
> Removing libgles-nvidia2:amd64 (367.57-1) ...
> Removing libgles1-glvnd-nvidia:amd64 (367.57-1) ...
> Removing libgles2-glvnd-nvidia:amd64 (367.57-1) ...
> Removing nvidia-vulkan-icd:amd64 (367.57-1) ...
> Removing libglx-nvidia0:amd64 (367.57-1) ...
> Removing libglx0-glvnd-nvidia:amd64 (367.57-1) ...
> Removing libnvidia-cfg1:amd64 (367.57-1) ...
> Removing libnvidia-cfg1:i386 (367.57-1) ...
> Removing libopengl0-glvnd-nvidia:amd64 (367.57-1) ...
> Removing libvulkan1:i386 (1.0.26.0+dfsg1-1) ...
> Removing libvulkan1:amd64 (1.0.26.0+dfsg1-1) ...
> Removing nvidia-vulkan-common (367.57-1) ...
> 
> This does not include nvidia-driver-libs:i386.

Probably because it would have been removed only after the issues
happened.

> Then, the upgrades are performed, then the packages are configured,
> so that one gets the failure due to the missing removal:
> 
> dpkg: error processing package nvidia-driver-libs:amd64 (--configure):
>  package nvidia-driver-libs:amd64 367.57-2 cannot be configured because nvidia-driver-libs:i386 is at a different version (367.57-1)
> 
> I suppose that nvidia-driver-libs:i386 should have been removed earlier.
> Whose fault is it?

Good question. What irritates me here is that this initially looked to
me like e.g. postinst script output, but there are no maintainer
scripts in the nvidia-driver-libs package, at least not on amd64.

So this seems indeed something dpkg requires but either aptitude or
libapt-inst didn't take care of when passing stuff to dpkg.

> > Anyways, in the whole correspondence I saw nowhere that you also tried
> > the same with apt or apt-get. Can you please check if upgrading these
> > packages with apt or apt-get leads to the same issue? (If so, it's
> > clearly no issue in aptitude.)
> 
> There are other issues with apt (basically about recommendations
> not being fulfilled, partly due to internal conflicts in the nvidia
> packages), but the system is always put in a consistent state (I've
> tried for installation only, not upgrade).

Thanks for clarifying this.

> I have not tried yet to reproduce the bug, because this was too late
> when it occurred.

I see.

Thanks for these additional details. I currently think that this might
suffice to further track down the issue. So if the additional state
bundle is too much effort, we'll see how far we come with this.

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



More information about the Aptitude-devel mailing list