![]() ![]() The update packages from Debian do not contain Ubuntu's customizations, so some applications display ugly fonts with these packages installed e.g. Libfontconfig1 and fontconfig-config must be upgraded to 2.12 or later on Ubuntu 17.10 and earlier. Install openjdk-7-jdk: sudo apt install openjdk-7-jdk Update apt cache (expect this to take a while since Debian's package lists are big): sudo apt update ![]() The experimental (for openjdk-7) and sid (for libjpeg62-turbo, libfontconfig1, and fontconfig-config) repositories are more lenient with dependency versions. Why not use a stable Debian repository? You'll run into unsatisfiable dependencies with Debian stable. Where 8B48AD62469255D0442B90D010 should match the pubkeys you see in the warning message.Īdd the needed repositories: sudo add-apt-repository 'deb experimental main' Sudo apt-key adv -keyserver -recv-keys 7638D0442B90D010 ![]() If you see this error, then manually add the necessary keys with: sudo apt-key adv -keyserver -recv-keys 8B48AD6246925553 Check for output like the following when running apt update in step 4: W: GPG error: experimental InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010Į: The repository ' experimental InRelease' is not signed. Note: while this is the simplest method of adding the debian keyring, it may not be up to date. Install the Debian keyring: sudo apt install debian-archive-keyring Package: *įor Ubuntu 17.10 and earlier, also append the following (and see note at bottom): Package: libfontconfig1 You'll need superuser privileges, so use one of sudo vim, sudo nano, gksudo gedit, etc. Pinning can be utilized to install and update openjdk-7-jdk and its dependencies from Debian repositories.Ĭreate a pinning file that tells apt to only consider packages that interest us (we certainly don't want our entire Ubuntu distribution "upgraded" with Debian experimental packages).Ĭreate file /etc/apt/preferences.d/debian with the below contents. Option 2: Automatic Installation (including updates with apt) OpenJDK 64-Bit Server VM (build 24.161-b01, mixed mode) Which should output something similar to: java version "1.7.0_161" This isn't a real concern for developers working with the JDK. You may notice an error about the IcedTeaPlugin.so plugin being unavailable. To activate OpenJDK Java 1.7, run: sudo update-java-alternatives -s java-1.7.0-openjdk-amd64 You can view all installed java versions with update-java-alternatives -list. It will automatically finish installation of the openjdk packages. Notice, there is no need to re-run dpkg after letting apt resolve dependencies. Otherwise, if you need to resolve some dependency issues, this is handled with: sudo apt install -f If there were no dependency issues, great, you're done, skip to #4. If there were dependency problems – which is likely – you will see the following (with your architecture substituted for amd64): Errors were encountered while processing: Ubuntu 18.04 and later: sudo dpkg -i openjdk-7-* libjpeg62-turbo*Ĭheck the output from dpkg. Ubuntu 17.10 and earlier: sudo dpkg -i openjdk-7-* libjpeg62-turbo* libfontconfig1* fontconfig-config* ![]() (Attempt to) install the packages using dpkg:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |