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

Bug#513864: apt: false "Package is not available" message



On Mon, Feb 02, 2009 at 08:52:15AM +1100, Russell Coker wrote:
> # apt-get install liblzo2-2
[...]
> E: Package liblzo2-2 has no installation candidate
This seems to be related to Bug#512318: No candidate version if pinned to a
non-existing release with priority 1000. Seems that priority 1000 is not the
only case when this happens.

> 
> -- /etc/apt/preferences --
> 
> Package: liblzo2-2
> Pin: release a=etch-backports
> Pin-Priority: 999
> 
> Package: debhelper
> Pin: release a=etch-backports
> Pin-Priority: 999
> 
> Package: *
> Pin: release a=etch
> Pin-Priority: 700
> 
> Package: *
> Pin: release a=lenny
> Pin-Priority: 600
This is just wrong. You can not pin releases using codenames. You need
to use the suite. Look at your system information, this does not
work and it leads to bugs like this. 

You have to change lenny to testing and etch to stable (etch-backports
stays, as suite==codename).

This should fix your problem.

> 
> -- System Information:
> Debian Release: 5.0
>   APT prefers testing
>   APT policy: (500, 'testing')
> Architecture: i386 (i686)

-- 
Julian Andres Klode  - Free Software Developer
   Debian Developer  - Contributing Member of SPI
   Ubuntu Member     - Fellow of FSFE

Website: http://jak-linux.org/   XMPP: juliank@jabber.org
Debian:  http://www.debian.org/  SPI:  http://www.spi-inc.org/
Ubuntu:  http://www.ubuntu.com/  FSFE: http://www.fsfe.org/

Attachment: signature.asc
Description: Digital signature


Reply to: