pacman not working out of the box #4

Open
opened 2021-02-25 11:49:48 +00:00 by DanySK · 0 comments
DanySK commented 2021-02-25 11:49:48 +00:00 (Migrated from gitlab2.manjaro.org)

Dockerfile:

FROM manjarolinux/base
RUN pacman -Sy --noconfirm --debug gawk gnupg libgpg-error gnupg gpgme

Result on GitHub Actions:

docker build -t danysk/docker-manjaro-linux-with-yay:latest -t danysk/docker-manjaro-linux-with-yay:2021-02-25T1248142021-02-25_1148 .
Sending build context to Docker daemon  99.33kB

Step 1/23 : FROM manjarolinux/base
latest: Pulling from manjarolinux/base
07d9dbb0ed02: Pulling fs layer
07d9dbb0ed02: Verifying Checksum
07d9dbb0ed02: Download complete
07d9dbb0ed02: Pull complete
Digest: sha256:c16c1acf04452be013e77bee0f5a62f9dc05949d9f99a101b512648521673417
Status: Downloaded newer image for manjarolinux/base:latest
 ---> 76710bd87296
Step 2/23 : RUN pacman -Sy --noconfirm --debug gawk gnupg libgpg-error gnupg gpgme
 ---> Running in 65ed4ffd47f9
debug: pacman v5.2.2 - libalpm v12.0.2
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: HoldPkg: manjaro-system
debug: config: SyncFirst: manjaro-system
debug: config: SyncFirst: archlinux-keyring
debug: config: SyncFirst: manjaro-keyring
debug: config: arch: x86_64
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 70: including /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 73: including /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 76: including /etc/pacman.d/mirrorlist
debug: config: new section 'multilib'
debug: config file /etc/pacman.conf, line 82: including /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
error: failed to initialize alpm library
(could not find or read directory: /var/lib/pacman/)
The command '/bin/sh -c pacman -Sy --noconfirm --debug gawk gnupg libgpg-error gnupg gpgme' returned a non-zero code: 255
Dockerfile: ```Docker FROM manjarolinux/base RUN pacman -Sy --noconfirm --debug gawk gnupg libgpg-error gnupg gpgme ``` Result on GitHub Actions: ``` docker build -t danysk/docker-manjaro-linux-with-yay:latest -t danysk/docker-manjaro-linux-with-yay:2021-02-25T1248142021-02-25_1148 . Sending build context to Docker daemon 99.33kB Step 1/23 : FROM manjarolinux/base latest: Pulling from manjarolinux/base 07d9dbb0ed02: Pulling fs layer 07d9dbb0ed02: Verifying Checksum 07d9dbb0ed02: Download complete 07d9dbb0ed02: Pull complete Digest: sha256:c16c1acf04452be013e77bee0f5a62f9dc05949d9f99a101b512648521673417 Status: Downloaded newer image for manjarolinux/base:latest ---> 76710bd87296 Step 2/23 : RUN pacman -Sy --noconfirm --debug gawk gnupg libgpg-error gnupg gpgme ---> Running in 65ed4ffd47f9 debug: pacman v5.2.2 - libalpm v12.0.2 debug: config: attempting to read file /etc/pacman.conf debug: config: new section 'options' debug: config: HoldPkg: pacman debug: config: HoldPkg: glibc debug: config: HoldPkg: manjaro-system debug: config: SyncFirst: manjaro-system debug: config: SyncFirst: archlinux-keyring debug: config: SyncFirst: manjaro-keyring debug: config: arch: x86_64 debug: config: SigLevel: Required debug: config: SigLevel: DatabaseOptional debug: config: LocalFileSigLevel: Optional debug: config: new section 'core' debug: config file /etc/pacman.conf, line 70: including /etc/pacman.d/mirrorlist debug: config: new section 'extra' debug: config file /etc/pacman.conf, line 73: including /etc/pacman.d/mirrorlist debug: config: new section 'community' debug: config file /etc/pacman.conf, line 76: including /etc/pacman.d/mirrorlist debug: config: new section 'multilib' debug: config file /etc/pacman.conf, line 82: including /etc/pacman.d/mirrorlist debug: config: finished parsing /etc/pacman.conf debug: setup_libalpm called error: failed to initialize alpm library (could not find or read directory: /var/lib/pacman/) The command '/bin/sh -c pacman -Sy --noconfirm --debug gawk gnupg libgpg-error gnupg gpgme' returned a non-zero code: 255 ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tools/manjaro-docker#4
No description provided.