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

Re: aptitude problem with control file (in stretch)



On 2020-08-05 09:42 +0200, Harald Dunkel wrote:

> I've got a problem with upgrading a private package in Stretch. The control
> file says:
>
> 	Package: sample-lxc
> 	Architecture: all
> 	Depends: ${misc:Depends}
> 		, cgmanager | systemd
> 		, debootstrap
> 		, lxc
> 		, lxc-templates | lxc ( << 3 )
> 	Recommends: cgroup-tools
> 		, apparmor
> 		, uidmap
> 		, yum
> 	Conflicts: lxcfs
> 	Description: LXC framework
> 	 This package provides LXC for our environment.
>
> lxc-templates is available only for lxc >= 3 (Buster or Bullseye), and
> then its a must-have in my environment.
>
> Trying to install this package on Stretch aptitude complains about a
> missing lxc-templates package, even though the most recent lxc version
> 1:2.0.11-1~xgo90+1 is installed.
>
> apt and apt-get are fine, AFAICS.

I am surprised to read that, considering that your installed lxc version
does not actually fulfill the dependency.  Note the epoch.

$ dpkg --compare-versions 1:2.0.11-1~xgo90+1 lt 3 || echo 'Got it!'
Got it!

Cheers,
       Sven


Reply to: