Skip to content

Fix "E: Unable to locate package software-properties-common" error. #185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10,000 commits into from

Conversation

MonsterSupreme
Copy link

@MonsterSupreme MonsterSupreme commented Feb 4, 2017

When executing ./start-build-env.sh command, the output is:

Sending build context to Docker daemon 9.216 kB
Step 1/18 : FROM ubuntu:trusty
trusty: Pulling from library/ubuntu
c60055a51d74: Pull complete
755da0cdb7d2: Pull complete
969d017f67e6: Pull complete
37c9a9113595: Pull complete
a3d9f8479786: Pull complete
Digest: sha256:8f5f12335124c1b78e4cf2f8860d395f75ba279bae70a3c18dd470e910e38ec5
Status: Downloaded newer image for ubuntu:trusty
 ---> b969ab9f929b
Step 2/18 : WORKDIR /root
 ---> 9ec52cfdcff6
Removing intermediate container f3b5b3ad6552
Step 3/18 : RUN apt-get install -y software-properties-common
 ---> Running in 3311c06d0ece
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package software-properties-common
The command '/bin/sh -c apt-get install -y software-properties-common' returned a non-zero code: 100

It's because there is no apt-get update before executing apt-get install -y software-properties-common in dev-support/docker/Dockerfile file:

FROM ubuntu:trusty

WORKDIR /root

# Add "RUN apt-get update" here to fix the problem.
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:webupd8team/java
RUN apt-get update
...

@jojochuang
Copy link
Contributor

Hello @MonsterSupreme thanks for reporting the issue.
Can you please file a jira? Also, it looks like your PR needs a rebase.

Da Zhou and others added 25 commits December 4, 2018 13:39
…eData in ContainerStateMachine. Contributed by Shashikant Banerjee.
…ealm is reset.

Contributed by Steve Loughran
…tifyContainersToPreempt. Contributed by Wanqiang Ji.
…air Scheduler. (Contributed by Wilfred Spiegelenburg)
…uld return NaN. (Contributed by Szilard Nemeth)
…the OmMetadataManager. Contributed by Elek Marton.
…ated framework tar.gz if restrictive umask is used. Contributed by Peter Bacsko
…emoryAliasMap. Contributed by Virajith Jalaparti.
shanthoosh pushed a commit to shanthoosh/hadoop that referenced this pull request Oct 15, 2019
Author: Boris Shkolnik <boryas@apache.org>

Reviewers: Xinyu Liu <xinyu@apache.org>

Closes apache#185 from sborya/ZkControllerClose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.