I package my own software as .debs so I can deploy it more easily. I’ve run across a problem regarding dependencies across package versions.
I’ve got two packages, call them foo and bar, both available in two versions, say 1.0 and 2.0. Package foo 1.0 depends on bar 1.0, so I’ve put something like this in the control file: Depends: bar (= 1.0).
However, installation now fails with a message similar to “foo: Depends: bar (= 1.0) but 2.0 is to be installed”
How do I do this?
Filip Chabik [ Moderator ]
Well, default action for apt, aptitude and so, is to install the most recent version (except experimental). You can, for example, install this package manually if it necessary needs to be 1.0 and can’t be 2.0.
But better way is to actually allow package to install newer version, so in depends it would be like that: bar (>= 1.0).