Skip to content
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

permissions error linux build #9323

Open
assorted-casuals opened this issue Nov 27, 2024 · 0 comments
Open

permissions error linux build #9323

assorted-casuals opened this issue Nov 27, 2024 · 0 comments

Comments

@assorted-casuals
Copy link

assorted-casuals commented Nov 27, 2024

new build of 4.5.8 on fresh ubuntu 24 fails. (log below)

solved issue by adding at line 57 to build-linux/appimage/build.sh
sudo chown -R 1000:1000 "$PROJECT_ROOT"

somewhat related to #8261? where i first voiced this issue #8261 (comment)

sudo chown -R 1000:1000 "$FRESH_CLONE"

error log

$ ./build.sh                                                  
💬 INFO:  Found 12 CPUs, which we might use for building.
💬 INFO:  building docker image.
[+] Building 400.5s (10/14)                                   docker:default
 => [internal] load build definition from Dockerfile                    0.3s
 => => transferring dockerfile: 2.49kB                                  0.0s
 => [internal] load metadata for docker.io/library/debian:buster@sha25  6.1s
 => [internal] load .dockerignore                                       0.1s
 => => transferring context: 103B                                       0.0s 
 => [internal] load build context                                       0.1s 
 => => transferring context: 406B                                       0.0s 
 => [ 1/10] FROM docker.io/library/debian:buster@sha256:233c3bbc892229  0.0s 
 => CACHED [ 2/10] RUN apt update -qq > /dev/null && apt install -qq -  0.0s 
 => [ 3/10] COPY apt.sources.list /etc/apt/sources.list                 2.1s 
 => [ 4/10] COPY apt.preferences /etc/apt/preferences.d/snapshot        0.4s
 => [ 5/10] RUN apt-get update -q &&     apt-get install -qy --allow  385.1s
 => ERROR [ 6/10] RUN useradd --uid 0 --create-home --shell /bin/bash   6.0s 
------                                                                       
 > [ 6/10] RUN useradd --uid 0 --create-home --shell /bin/bash user:         
0.957 useradd: UID 0 is not unique                                           
------                                                                       
Dockerfile:81                                                                
--------------------
  79 |     ENV WORK_DIR="${HOME_DIR}/wspace" \
  80 |         PATH="${HOME_DIR}/.local/bin:${PATH}"
  81 | >>> RUN useradd --uid $UID --create-home --shell /bin/bash ${USER}
  82 |     RUN usermod -append --groups sudo ${USER}
  83 |     RUN echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
--------------------
ERROR: failed to solve: process "/bin/sh -c useradd --uid $UID --create-home --shell /bin/bash ${USER}" did not complete successfully: exit code: 4```
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

No branches or pull requests

1 participant