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

WSL2 + Ubuntu 20.04 + Docker 環境でビルドに失敗する #267

Open
Per-Terra opened this issue Sep 20, 2021 · 1 comment
Open

WSL2 + Ubuntu 20.04 + Docker 環境でビルドに失敗する #267

Per-Terra opened this issue Sep 20, 2021 · 1 comment
Assignees
Labels
bug バグ help wanted Need help (助けが必要) question 情報が足りません

Comments

@Per-Terra
Copy link

上記の環境上でDockerを用いたビルドを行うとエラーが出てビルドに失敗します。

実行したコマンド
sudo ./tools/docker-build.sh -o "-b -l ja i3"

出力

[+] Building 57.2s (14/14) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                   0.1s
 => => transferring dockerfile: 551B                                                                                                                                                   0.0s
 => [internal] load .dockerignore                                                                                                                                                      0.1s
 => => transferring context: 2B                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/archlinux:latest                                                                                                                    6.1s
 => [1/9] FROM docker.io/library/archlinux:latest@sha256:91d8f255a6f8944bb15725ed97180f8dbda877919f05cd97ebde033d7217ec39                                                              0.0s
 => [internal] load build context                                                                                                                                                      8.5s
 => => transferring context: 172.07MB                                                                                                                                                  8.4s
 => CACHED [2/9] RUN echo 'Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist                                                                    0.0s
 => CACHED [3/9] RUN pacman -Sy --noconfirm reflector                                                                                                                                  0.0s
 => CACHED [4/9] RUN reflector --protocol https -c Japan --sort rate --save /etc/pacman.d/mirrorlist                                                                                   0.0s
 => CACHED [5/9] RUN pacman -Syyu --noconfirm         git sudo python3         base-devel cmake ninja qt5-base         archiso arch-install-scripts pyalpm                             0.0s
 => [6/9] COPY . /alterlinux                                                                                                                                                           1.2s
 => [7/9] WORKDIR /alterlinux                                                                                                                                                          0.1s
 => [8/9] RUN pacman-key --init                                                                                                                                                        2.9s
 => [9/9] RUN ./tools/keyring.sh -a                                                                                                                                                   36.7s
 => exporting to image                                                                                                                                                                 1.3s
 => => exporting layers                                                                                                                                                                1.2s
 => => writing image sha256:5d62211dd721e05dd28f512f933283de03594bc708696c68a2e39b29e62f2ceb                                                                                           0.0s
 => => naming to docker.io/library/alterlinux-build:latest                                                                                                                             0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[build.sh]   Info Checking dependencies ...
[build.sh]  Error The currently running kernel module could not be found.
[build.sh]  Error Probably the system kernel has been updated.
[build.sh]  Error Reboot your system to run the latest kernel.

--noloopmodオプションを適用した場合は以下の通りです

[+] Building 20.5s (14/14) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                   0.0s
 => => transferring dockerfile: 38B                                                                                                                                                    0.0s
 => [internal] load .dockerignore                                                                                                                                                      0.0s
 => => transferring context: 2B                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/archlinux:latest                                                                                                                    1.2s
 => [internal] load build context                                                                                                                                                      0.2s
 => => transferring context: 137.41kB                                                                                                                                                  0.1s
 => [1/9] FROM docker.io/library/archlinux:latest@sha256:91d8f255a6f8944bb15725ed97180f8dbda877919f05cd97ebde033d7217ec39                                                              0.0s
 => CACHED [2/9] RUN echo 'Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist                                                                    0.0s
 => CACHED [3/9] RUN pacman -Sy --noconfirm reflector                                                                                                                                  0.0s
 => CACHED [4/9] RUN reflector --protocol https -c Japan --sort rate --save /etc/pacman.d/mirrorlist                                                                                   0.0s
 => CACHED [5/9] RUN pacman -Syyu --noconfirm         git sudo python3         base-devel cmake ninja qt5-base         archiso arch-install-scripts pyalpm                             0.0s
 => [6/9] COPY . /alterlinux                                                                                                                                                           1.0s
 => [7/9] WORKDIR /alterlinux                                                                                                                                                          0.2s
 => [8/9] RUN pacman-key --init                                                                                                                                                        3.2s
 => [9/9] RUN ./tools/keyring.sh -a                                                                                                                                                   13.0s
 => exporting to image                                                                                                                                                                 1.5s
 => => exporting layers                                                                                                                                                                1.4s
 => => writing image sha256:fccdc0bf37b2176f86735797f4cbfc3ddc732f276c10039e140aee09ebdfc966                                                                                           0.0s
 => => naming to docker.io/library/alterlinux-build:latest                                                                                                                             0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[build.sh]   Info Checking dependencies ...
[build.sh]   Info Deleting the contents of /alterlinux/work/build/x86_64...
/alterlinux/modules/base
/alterlinux/modules/share
/alterlinux/modules/zsh-powerline
/alterlinux/modules/lightdm
/alterlinux/modules/alter-lightdm
/alterlinux/modules/share-extra
/alterlinux/modules/pipewire
/alterlinux/modules/gtk-tools
/alterlinux/modules/qtongtk
/alterlinux/modules/calamares
[build.sh]   Info Boot splash is enabled.
[build.sh]   Info Theme is used alter-logo.
[build.sh]   Info Language is japanese.
[build.sh]   Info Use the zen kernel.
[build.sh]   Info Live username is alter.
[build.sh]   Info Live user password is alter.
[build.sh]   Info The compression method of squashfs is xz.
[build.sh]   Info Use the i3 channel.
[build.sh]   Info Build with architecture x86_64.

Press Enter to continue or Ctrl + C to cancel.

[build.sh]   Info Creating ext4 image of 32GiB...
mke2fs 1.46.4 (18-Aug-2021)
Discarding device blocks: done
Creating filesystem with 8388608 4k blocks and 2097152 inodes
Filesystem UUID: ace45940-9c90-400c-a5cc-02e1d4b1d135
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624

Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

tune2fs 1.46.4 (18-Aug-2021)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
[build.sh]   Info Done!
[build.sh]   Info Mounting /alterlinux/work/build/x86_64/airootfs.img on /alterlinux/work/build/x86_64/airootfs
[build.sh]   Info Done!
[umount.sh]  Info Unmounting /alterlinux/work/build/x86_64/airootfs
[build.sh]   Info Installing packages to /alterlinux/work/build/x86_64/airootfs/'...
==> Creating install root at /alterlinux/work/build/x86_64/airootfs
mount: /alterlinux/work/build/x86_64/airootfs/dev/shm: mount point is a symbolic link to nowhere.
==> ERROR: failed to setup chroot /alterlinux/work/build/x86_64/airootfs
[build.sh]  Error An exception error occurred in the function
[build.sh]  Error Exit Code: 1
[build.sh]  Error Line: 176
[build.sh]  Error Argument: -b -l ja --noloopmod i3
@infoengine1337
Copy link

infoengine1337 commented Jul 31, 2022

privilegedオプションをつけてみるといいかもです…(コソッ)
もしかしたら違うかも。適当です

@Hayao0819 Hayao0819 added help wanted Need help (助けが必要) question 情報が足りません labels Jul 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug バグ help wanted Need help (助けが必要) question 情報が足りません
Projects
None yet
Development

No branches or pull requests

5 participants