Skip to content

Error to execute it with GitPod #2

@MathieuSoysal

Description

@MathieuSoysal

Hello, thank you for your project !

I wanted to ask you, when I execute it with GitPod I got this error:

#5 [2/2] RUN apt-get update     && apt-get install -y openjfx libopenjfx-java matchbox     && apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*
#5 0.166 Reading package lists...
#5 0.875 E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
#5 0.875 E: Unable to lock directory /var/lib/apt/lists/
#5 ERROR: process "/bin/sh -c apt-get update     && apt-get install -y openjfx libopenjfx-java matchbox     && apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*" did not complete successfully: exit code: 100
------
 > [2/2] RUN apt-get update     && apt-get install -y openjfx libopenjfx-java matchbox     && apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*:

#5 0.875 E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
#5 0.875 E: Unable to lock directory /var/lib/apt/lists/
------
.gitpod.Dockerfile:3
--------------------
   2 |     
   3 | >>> RUN apt-get update \
   4 | >>>     && apt-get install -y openjfx libopenjfx-java matchbox \
   5 | >>>     && apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*
   6 |     
--------------------
error: failed to solve: process "/bin/sh -c apt-get update     && apt-get install -y openjfx libopenjfx-java matchbox     && apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*" did not complete successfully: exit code: 100
{"@type":"type.googleapis.com/google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent","command":"build","error":"exit status 1","file":"build.go:44","func":"func1","level":"error","message":"build failed","serviceContext":{"service":"bob","version":""},"severity":"ERROR","time":"2023-04-30T17:28:17.519142948Z"}
exit

Do you know how we can fix it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions