Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 314  / 2 Years ago, sat, september 10, 2022, 3:29:48

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?


More From » java

 Answers
1

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.


[#15558] Monday, September 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
zebrla

Total Points: 356
Total Questions: 110
Total Answers: 120

Location: Sudan
Member since Tue, Aug 3, 2021
3 Years ago
;