Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Under Ubuntu 11.04, when I try to install pdftk via apt-get or synaptic, I get the following error:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 pdftk : Depends: libgcj-bc (< 4.6~) but 4.6.0-7ubuntu1 is to be installed
E: Broken packages

I know pdftk works just fine on Ubuntu on previous versions. How can I fix the dependencies so that I can now install pdftk?

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

On my 11.04, libgcj-bc is version 4.5.2-1, which would satisfy the dependencies. This probably means that you have caught a newer version by a PPA, backports, or other means. Open synaptic, select libgcj-bc, hit Ctrl+E and select a version lower than 4.6.

This should solve the installation of pdf-tk but may introduce other dependency problems, which could be addressed by removing the dependent packages and install the distribution releases. Yet it may be wiser to await 11.10 where more recent packages are available.

share|improve this answer
    
This worked, thank you! I never knew that the older packages were still available, is this possible from the command line apt-get as well? –  Hooked Oct 11 '11 at 17:02
1  
Yes, you could have achieved this with apt-get install libgcj-bc=4.5.2-1ubuntu3. No idea how to get available versions, though. –  aquaherd Oct 12 '11 at 22:41
add comment

Your Answer

 
discard

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.