Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm the author of some software , which depends on libxx6 (In ubuntu 11.10) , but in 12.04 , the package become libxx7 (7 is not a Ubuntu version number) , so the dependency become a problem.

How can i work this out ? I'm managing a PPA , and i want to fix that before release of Ubuntu 12.04.

Thanks !

share|improve this question

If there is a generic version-free package you can depend on (such as in the Java case: java-runtime vs. e.g. java6-runtime), depend on that. If there isn't, you have to make specialized packages for the different versions of Ubuntu. Look at the package you depend on's control file and see if it Provides something more generic you can depend on.

share|improve this answer

If the same source will build on all the releases, then it's very easy. You build (upload) it separately for each Ubuntu release. You'll have to use slightly different version numbers, I suggest appending ~releasename1

share|improve this answer

Assuming that your package will compile against both libxx6 and libxx7, simply us libxx-dev in the Build-Depends field of you debian/control file. Then in the Depends field us ${shlibs:Depends}. This will automatically be substituted with the version of the shared library that your package was built against.

More detailed information about shared libraries can be found in Chapter 8 of the Debian Policy Manual.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.