Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

Unable to install openjdk-8-jre-headless #1

Open
fbid opened this issue Mar 22, 2019 · 0 comments
Open

Unable to install openjdk-8-jre-headless #1

fbid opened this issue Mar 22, 2019 · 0 comments

Comments

@fbid
Copy link

fbid commented Mar 22, 2019

Error trace:

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:
 openjdk-8-jre-headless : Depends: libjpeg8 (>= 8c) but it is not installable
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c echo deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu trusty main > /etc/apt/sources.list.d/openjdk8.list     && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DA1A4A13543B466853BAF164EB9B1D8886F44E2A     && DEBIAN_FRONTEND=noninteractive apt-get update     && apt-get -y install curl wget zip openjdk-8-jre-headless     && apt-get clean && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

I was able to solve the issue by using the following lines in the Dockerfile:

RUN echo 'deb http://ftp.de.debian.org/debian/ stretch main contrib non-free' > /etc/apt/sources.list.d/stretch.list \
    && apt-get update \
    && apt-get install -y --no-install-recommends curl wget zip openjdk-8-jre-headless \
    && rm /etc/apt/sources.list.d/stretch.list \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant