RPi-Distro / pi-gen

Tool used to create the official Raspberry Pi OS images
BSD 3-Clause "New" or "Revised" License
2.62k stars 1.64k forks source link

realpath: /pi-gen/work/Raspbian/stage0/rootfs/proc: No such file or directory #611

Closed jerrychong25 closed 2 years ago

jerrychong25 commented 2 years ago

Hi all,

I faces build issue when trying to run latest pi-gen master branch in my Raspberry Pi 4 B+.

Raspberry Pi 4 B+ Environment:

Is there any solution to solve this build issue?

Since building new Raspbian image should be successful due to similar environment (Source: https://github.com/RPi-Distro/pi-gen/issues/541#issuecomment-910111229).

Error Logs:

Running hooks in /etc/ca-certificates/update.d...
done.
Removing intermediate container 1406371a9629
 ---> 0c9548ba19a4
Step 5/6 : COPY . /pi-gen/
 ---> 6f4bb61e39e0
Step 6/6 : VOLUME [ "/pi-gen/work", "/pi-gen/deploy"]
 ---> Running in ccf6b3f34062
Removing intermediate container ccf6b3f34062
 ---> 42091eb44a91
Successfully built 42091eb44a91
Successfully tagged pi-gen:latest
[03:24:11] Begin /pi-gen
[03:24:11] Begin /pi-gen/stage0
[03:24:11] Begin /pi-gen/stage0/00-configure-apt
[03:24:11] Begin /pi-gen/stage0/00-configure-apt/01-packages
realpath: /pi-gen/work/Raspbian/stage0/rootfs/proc: No such file or directory
realpath: /pi-gen/work/Raspbian/stage0/rootfs/dev: No such file or directory
realpath: /pi-gen/work/Raspbian/stage0/rootfs/dev/pts: No such file or directory
realpath: /pi-gen/work/Raspbian/stage0/rootfs/sys: No such file or directory
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package raspberrypi-archive-keyring

real    0m2.004s
user    0m0.093s
sys 0m0.075s

My config File Content:

IMG_NAME='Raspbian'
ENABLE_SSH=1
CONTINUE=1

Similar Issues:

Thanks in advance!

jerrychong25 commented 2 years ago

Apparently the solution from https://github.com/RPi-Distro/pi-gen/issues/360#issuecomment-562685572 manged to fix this bug and proceed to other errors.

Command to run: find ./ -name "*.sh" -exec chmod a+x {} \;

So will close this issue.

Thank you!