[Aptitude-devel] Bug#762932: Bug#762932: Bug#762932: Bug#762932: aptitude: in an upgrade with 'U', aptitude chose to downgrade a package

Axel Beckert abe at debian.org
Sun Sep 20 14:57:07 UTC 2015


Control: tag -1 - moreinfo unreproducible
Control: retitle -1 aptitude: With Aptitude::ProblemResolver::SolutionCost=removals, aptitude full-upgrade chooses to downgrade a package

And me once again,

Axel Beckert wrote:
> Axel Beckert wrote:
> > Vincent Lefevre wrote:
> > > Note that I use the following option:
> > > 
> > > Aptitude::ProblemResolver::SolutionCost "removals";
> > >
> > > so that packages don't get removed.
> [...]
> > I though never ran into that issue (despite having
> > Aptitude::ProblemResolver::Remove-Level set to "maximum" which should
> > have a very similar effect) [...]
> 
> JFTR: I'm now using Vincent's setting instead of mine for a while so
> see if it makes a change despite I consider both settings to be mostly
> equivalent.

I must admit, it makes a quite relevant difference. I've got quite a
few currently not upgradable packages. I have experimental as well as
the incoming.d.o buildd APT repos in my sources.list.

Here's the behaviour with the 'Aptitude::ProblemResolver::Remove-Level
"maximum";' setting:

# aptitude full-upgrade
The following packages will be upgraded: 
  expand-region-el{b} libldb1 mercurial mercurial-common nqp python-ldb 
6 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 3251 kB of archives. After unpacking 2242 kB will be used.
The following packages have unmet dependencies:
 tortoisehg : Depends: mercurial (< 3.5~) but 3.5.1-1 is to be installed.
 samba-libs : Depends: libldb1 (< 2:1.1.21~) but 2:1.1.21-1 is to be installed.
 rakudo : Depends: nqp (= 2014.07-3) but 2014.07-3+b1 is to be installed.
 expand-region-el : Breaks: sml-mode (< 6) but 5.0-1 is installed.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     expand-region-el [0.10.0-4 (now, testing)]         
2)     libldb1 [2:1.1.20-2 (now, testing)]                
3)     mercurial [3.4.2-1 (now, testing)]                 
4)     mercurial-common [3.4.2-1 (now, testing)]          
5)     nqp [2014.07-3 (now, testing)]                     
6)     python-ldb [2:1.1.20-2 (now, testing)]             

Here's the behaviour with the 'Aptitude::ProblemResolver::SolutionCost
"removals";':

# aptitude full-upgrade
The following packages will be upgraded: 
  expand-region-el{b} libldb1 mercurial mercurial-common nqp python-ldb 
6 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 3251 kB of archives. After unpacking 2242 kB will be used.
The following packages have unmet dependencies:
 tortoisehg : Depends: mercurial (< 3.5~) but 3.5.1-1 is to be installed.
 samba-libs : Depends: libldb1 (< 2:1.1.21~) but 2:1.1.21-1 is to be installed.
 rakudo : Depends: nqp (= 2014.07-3) but 2014.07-3+b1 is to be installed.
 expand-region-el : Breaks: sml-mode (< 6) but 5.0-1 is installed.
The following actions will resolve these dependencies:

      Keep the following packages at their current version:                                             
1)      expand-region-el [0.10.0-4 (now, testing)]                                                      
2)      mercurial [3.4.2-1 (now, testing)]                                                              
3)      mercurial-common [3.4.2-1 (now, testing)]                                                       
4)      nqp [2014.07-3 (now, testing)]                                                                  

      Upgrade the following packages:                                                                   
5)      libsmbclient [2:4.1.17+dfsg-4 (now, testing, unstable) -> 2:4.1.17+dfsg-5 (buildd-unstable)]    
6)      python-samba [2:4.1.17+dfsg-4 (now, testing, unstable) -> 2:4.1.17+dfsg-5 (buildd-unstable)]    
7)      samba-common [2:4.1.17+dfsg-4 (now, testing, unstable) -> 2:4.1.17+dfsg-5 (buildd-unstable)]    
8)      samba-common-bin [2:4.1.17+dfsg-4 (now, testing, unstable) -> 2:4.1.17+dfsg-5 (buildd-unstable)]
9)      samba-libs [2:4.1.17+dfsg-4 (now, testing, unstable) -> 2:4.1.17+dfsg-5 (buildd-unstable)]      
10)     smbclient [2:4.1.17+dfsg-4 (now, testing, unstable) -> 2:4.1.17+dfsg-5 (buildd-unstable)]       

^C

So I'm not really surprised that this setting also causes downgrades
to suggested. With this setting, aptitude seems to prefers to install
a version with much lower pinning (see below) rather than to keep it.

And with neither of these two settings, it wants to remove most of the
unupgradable packages and its reverse dependencies:

# aptitude full-upgrade
The following packages will be upgraded: 
  expand-region-el{b} libldb1 mercurial mercurial-common nqp python-ldb 
6 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 3251 kB of archives. After unpacking 2242 kB will be used.
The following packages have unmet dependencies:
 tortoisehg : Depends: mercurial (< 3.5~) but 3.5.1-1 is to be installed.
 samba-libs : Depends: libldb1 (< 2:1.1.21~) but 2:1.1.21-1 is to be installed.
 rakudo : Depends: nqp (= 2014.07-3) but 2014.07-3+b1 is to be installed.
 expand-region-el : Breaks: sml-mode (< 6) but 5.0-1 is installed.
The following actions will resolve these dependencies:

      Remove the following packages:
1)      expand-region-el            
2)      flightgear                  
3)      fusesmb                     
4)      gnome-control-center        
5)      gxine                       
6)      libopenscenegraph100v5      
7)      libsimgearscene3.4.0        
8)      libsmbclient                
9)      libxine2                    
10)     libxine2-misc-plugins       
11)     libxine2-plugins            
12)     mencoder                    
13)     mplayer                     
14)     mplayer-gui                 
15)     python-samba                
16)     rakudo                      
17)     samba-common-bin            
18)     samba-libs                  
19)     smbclient                   
20)     tortoisehg                  
21)     xine-console                
22)     xine-ui                     

(But I think that's another bug, see https://bugs.debian.org/798240)

And just for the record, here's what apt thinks of these packages:

# apt-cache policy libsmbclient python-samba samba-common samba-common-bin samba-libs smbclient
libsmbclient:
  Installed: 2:4.1.17+dfsg-4
  Candidate: 2:4.1.17+dfsg-4
  Version table:
     2:4.3.0+dfsg-1 111
        110 http://ftp.ch.debian.org/debian experimental/main amd64 Packages
        111 http://incoming.debian.org/debian-buildd buildd-experimental/main amd64 Packages
     2:4.1.17+dfsg-5 111
        111 http://incoming.debian.org/debian-buildd buildd-unstable/main amd64 Packages
 *** 2:4.1.17+dfsg-4 990
        990 http://ftp.ch.debian.org/debian sid/main amd64 Packages
        600 http://ftp.ch.debian.org/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status
python-samba:
  Installed: 2:4.1.17+dfsg-4
  Candidate: 2:4.1.17+dfsg-4
  Version table:
     2:4.3.0+dfsg-1 111
        110 http://ftp.ch.debian.org/debian experimental/main amd64 Packages
        111 http://incoming.debian.org/debian-buildd buildd-experimental/main amd64 Packages
     2:4.1.17+dfsg-5 111
        111 http://incoming.debian.org/debian-buildd buildd-unstable/main amd64 Packages
 *** 2:4.1.17+dfsg-4 990
        990 http://ftp.ch.debian.org/debian sid/main amd64 Packages
        600 http://ftp.ch.debian.org/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status
samba-common:
  Installed: 2:4.1.17+dfsg-4
  Candidate: 2:4.1.17+dfsg-4
  Version table:
     2:4.3.0+dfsg-1 111
        110 http://ftp.ch.debian.org/debian experimental/main amd64 Packages
        111 http://incoming.debian.org/debian-buildd buildd-experimental/main amd64 Packages
     2:4.1.17+dfsg-5 111
        111 http://incoming.debian.org/debian-buildd buildd-unstable/main amd64 Packages
 *** 2:4.1.17+dfsg-4 990
        990 http://ftp.ch.debian.org/debian sid/main amd64 Packages
        600 http://ftp.ch.debian.org/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status
samba-common-bin:
  Installed: 2:4.1.17+dfsg-4
  Candidate: 2:4.1.17+dfsg-4
  Version table:
     2:4.3.0+dfsg-1 111
        110 http://ftp.ch.debian.org/debian experimental/main amd64 Packages
        111 http://incoming.debian.org/debian-buildd buildd-experimental/main amd64 Packages
     2:4.1.17+dfsg-5 111
        111 http://incoming.debian.org/debian-buildd buildd-unstable/main amd64 Packages
 *** 2:4.1.17+dfsg-4 990
        990 http://ftp.ch.debian.org/debian sid/main amd64 Packages
        600 http://ftp.ch.debian.org/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status
samba-libs:
  Installed: 2:4.1.17+dfsg-4
  Candidate: 2:4.1.17+dfsg-4
  Version table:
     2:4.3.0+dfsg-1 111
        110 http://ftp.ch.debian.org/debian experimental/main amd64 Packages
        111 http://incoming.debian.org/debian-buildd buildd-experimental/main amd64 Packages
     2:4.1.17+dfsg-5 111
        111 http://incoming.debian.org/debian-buildd buildd-unstable/main amd64 Packages
 *** 2:4.1.17+dfsg-4 990
        990 http://ftp.ch.debian.org/debian sid/main amd64 Packages
        600 http://ftp.ch.debian.org/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status
smbclient:
  Installed: 2:4.1.17+dfsg-4
  Candidate: 2:4.1.17+dfsg-4
  Version table:
     2:4.3.0+dfsg-1 111
        110 http://ftp.ch.debian.org/debian experimental/main amd64 Packages
        111 http://incoming.debian.org/debian-buildd buildd-experimental/main amd64 Packages
     2:4.1.17+dfsg-5 111
        111 http://incoming.debian.org/debian-buildd buildd-unstable/main amd64 Packages
 *** 2:4.1.17+dfsg-4 990
        990 http://ftp.ch.debian.org/debian sid/main amd64 Packages
        600 http://ftp.ch.debian.org/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status



		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