If no (as by default) then set it as recommended in that answer by creating this file: So before adding unstable repository to the sources list make sure APT::Default-Release configuration option is set to "stable": grep -r Default-Release /etc/apt/ The negative output may imply that you prefer to use stable repositories and usually it isn't appropriate for you to update all other software from unstable repositories. If no then you need to add unstable repository to the sources list. ![]() ![]() Then check is this package can be installed with current configuration: apt-cache policy openjdk-8-jdk You can search the Debian packages site and find out the openjdk-8-jdk package for Debian 10 is only available from unstable (sid) repository currently.Īt first it is good to check and save current system-wide symbolic links for already installed Java SDK/JRE packages if any: ls -la /etc/alternatives | grep java > previous-java-alternatives.txt Note: You can use steps above to find an official Debian mirror with any other package you want to install Install openjdk 8 apt-get install openjdk-8-jdk Install software source manager apt-get updateĪpt-get install software-properties-commonĪdd mirror with openjdk-8-jdk apt-add-repository 'deb stretch/updates main' ![]() You should be able to use any of the listed mirrors by adding a line Now you can see mirrors list and instructions how to install the package via apt: Scroll to the Download openjdk-8-jdk section and choose your architecture. sid (unstable) (java): OpenJDK Development Kit (JDK).stretch (oldstable) (java): OpenJDK Development Kit (JDK).In the Search package directories search for openjdk-8-jdk. ![]() Follow the advice on your own risk, as it can break WARNING: this answer suggest unsupported and dangerous mixing ofĭebian releases.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |