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?
Stefano Zacchiroli
[ Admin ]
The problem lies in the ability to solve dependencies of the package manager you’re using.
Thanks — right, this is with apt-get (and if possible I’d like to keep this scriptable, ie. non-interactive). Is there a (recommended) way to give additional hints to the package manager? Would ie. adding “Breaks:” or “Conflicts” help apt-get to choose the correct package?
Thanks again!
.sabaini aptitude is not curses-interface only. It also works non-interactively like apt-get. IMO there are only some rare situations where you do not want to use it (such as resolving the depends of a .deb generated by mk-build-deps).
I am also experiencing this problem. It seems like a massive shortcoming of an “advanced packaging tool” if it cannot be coerced into resolving this type of clearly-specified dependency automatically. I would be very interested in any potential (and automatable/scriptable) solutions to this.