Public bug reported:

Binary package hint: aptitude

When a particular package or package archive has been assigned a
negative priority in /etc/apt/preferences, the documentation in manual
page apt_preferences states that those packages are never installed.

When this case occurs, a sudo user trying to install such a package, aptitude 
crashes with a segmentation fault.
Example: if /etc/apt/preferences contains:
   Package: *
   Pin: release v=7.04 
   Pin-Priority: -1

   Package: *
   Pin: release v=6.10
   Pin-Priority: 1001

the following command crashes:
sudo aptitude install autopsy/feisty

while this one succeeds:
sudo apt-get install autopsy/feisty

(this a case where the package exists in both archives, but the same problem 
arises with a package which exists only in feisty, like say update-inetd)
I suppose the documentation should be understood as "are never (automatically) 
installed" but whatever, aptitude should address this case more gracefully...

I'm using current edgy versions for both aptitude and apt-get:
$ aptitude -F%p%20v search ~i\(aptitude\|~Rdepends:aptitude\)
apt                                                         0.6.45ubuntu14      
aptitude                                                    0.4.1-1.1ubuntu7    
libc6                                                       2.4-1ubuntu12       
libgcc1                                                     1:4.1.1-13ubuntu5   
libncursesw5                                                5.5-2ubuntu1        
libsigc++-2.0-0c2a                                          2.0.16-3            
libstdc++6                                                  4.1.1-13ubuntu5

** Affects: aptitude (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
Aptitude segfaults when trying to install a package with negative priority
https://launchpad.net/bugs/78068

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to