2

So I force installed Vuze (and its dependency Azureus) via apt-get, and it is working fine on default-jre.

Even though the default-jre works as a dependency for Azureus (at least for my use-case scenario), the dependency check inside Azureus package demands an older and dated version of JRE, and I am being bombarded with unmet dependency message.

Each time I perform some apt-get operation, I get greeted with these:

You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 azureus : Depends: openjdk-7-jre but it is not installable or
                    openjdk-6-jre but it is not installable or
                    sun-java5-jre but it is not installable or
                    sun-java6-jre but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Edit: I do not want to "resolve" the dependency issue, because there is no dependency issue to resolve. The warning is erroneous because the dependency check inside Azureus is outdated.

Is there any way to tell Ubuntu to ignore the dependencies for this specific package?

Spero
  • 201

3 Answers3

2

You can't tell Ubuntu to ignore the problem, but you can fake the installation of a package by building a dummy version. It's not that painful.

sudo apt install equivs
nano openjdk-7-jre

Paste in something like the following:

Section: misc
Priority: optional

Package: openjdk-7-jre
Description: Dummy package

And then run:

equivs-build openjdk-7-jre
sudo dpkg -i openjdk-7-jre_1.0_all.deb
Oli
  • 299,380
2

I have found another "arguably more appropriate" answer. This will give you the ability to edit out the wrong dependency inside the culprit package. Unlike the dummy package method, this will not affect the entire system.

You need atool (sudo apt install dpkg-dev devscripts atool) and gdebi (dpkg will do too, but I prefer gdebi)

$pkg = the name of the package that is causing issue.

apt-get download $pkg
mkdir pkg
atool -X pkg $pkg
vi pkg/DEBIAN/control
# [This is where you edit out the wrong dependencies]
rm -vf $pkg && dpkg-deb -b pkg $pkg
sudo gdebi $pkg

In my case, the line that I had to edit was :

Depends: openjdk-7-jre | openjdk-6-jre | sun-java5-jre | sun-java6-jre, libcommons-cli-java, liblog4j1.2-java, libswt-gtk-3-java, java-wrappers

Thank goes to sergall for this solution. Method has been personally verified by me.

Spero
  • 201
0

"Is there any way to tell Ubuntu to ignore the dependencies for this specific package?"

No.

Why

If you need to talk to a french person, you need a translator - or learn french -, that will translate french words to english for you. You depend on that translator - or some other medium - to converse properly to that person.

Vuze has its own dependencies, which he depends on to work properly.

Also, Linux has much better, faster, safer torrent clients available by default.

Links

blade19899
  • 26,994