[GH-ISSUE #489] [Pacman] error: libinih: signature from "Maxime Gauduin <alucryd@gmail.com>" is marginal trust #356

Closed
opened 2026-02-27 23:00:12 +03:00 by kerem · 0 comments
Owner

Originally created by @sahruldotid on GitHub (May 1, 2022).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/489

System Info

Linux Lenovo-Legion-5 5.15.0-27-generic #28-Ubuntu SMP Thu Apr 14 04:55:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
:0
[sudo] password for syahrul:
1
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 469G 26G 419G 6% /
QEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 8.0.0
total used free shared buff/cache available
Mem: 14Gi 2,9Gi 6,3Gi 151Mi 5,8Gi 11Gi
Swap: 2,0Gi 0B 2,0Gi
16
16
crw-rw----+ 1 root kvm 10, 232 Mei 1 09:14 /dev/kvm
total 8,0K
drwxrwxrwt 2 root root 4,0K Mei 1 09:14 .
drwxrwxrwt 24 root root 4,0K Mei 1 10:32 ..
srwxrwxrwx 1 syahrul syahrul 0 Mei 1 09:14 X0
root 2713 0.9 0.5 2491876 83184 ? Ssl 09:14 0:44 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
syahrul 17843 0.0 0.0 17872 2336 pts/1 S+ 10:32 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox dockerd
kvm109:
docker999:syahrul
libvirt140:syahrul
libvirt-qemu64055:libvirt-qemu
libvirt-dnsmasq141:

Command :

➜ Docker-OSX git:(master) ✗ docker build -t docker-osx --build-arg SHORTNAME=big-sur .

Issue

image

:: File /var/cache/pacman/pkg/libinih-55-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] error: libinih: signature from "Maxime Gauduin alucryd@gmail.com" is marginal trust
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
The command '/bin/bash -c if ; then sudo pacman -Syu linux libguestfs --noconfirm ; fi' returned a non-zero code: 1

Tried Solution

Some online resources says that i need to update my archlinux-kerying package first. So i decided to edit Dockerfile so that it can install kerying. Here's the script

RUN if [[ "${LINUX}" == true ]]; then \
        sudo pacman -Syy  && sudo pacman -S archlinux-keyring --noconfirm && sudo pacman -Syu && sudo pacman -Syu linux libguestfs --noconfirm \
    ; fi

Result [FAILED]

image

Edit [Solved]

By disabling checking signature in pacman conf, we can install package without any error

# Some package signature are invalid/expired, need to disable signature checking
RUN sudo sed -i 's/SigLevel    = Required DatabaseOptional/SigLevel = Never/g' /etc/pacman.conf 

# required to use libguestfs inside a docker container, to create bootdisks for docker-osx on-the-fly
RUN if [[ "${LINUX}" == true ]]; then \
        sudo pacman -Syu linux libguestfs --noconfirm \
    ; fi

# Restoring pacman conf
sed -i 's/SigLevel = Never/SigLevel    = Required DatabaseOptional/g' /etc/pacman.conf
Originally created by @sahruldotid on GitHub (May 1, 2022). Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/489 ### System Info Linux Lenovo-Legion-5 5.15.0-27-generic #28-Ubuntu SMP Thu Apr 14 04:55:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux :0 [sudo] password for syahrul: 1 PRETTY_NAME="Ubuntu 22.04 LTS" NAME="Ubuntu" VERSION_CODENAME=jammy UBUNTU_CODENAME=jammy Filesystem Size Used Avail Use% Mounted on /dev/nvme0n1p2 469G 26G 419G 6% / QEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6) Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers libvirtd (libvirt) 8.0.0 total used free shared buff/cache available Mem: 14Gi 2,9Gi 6,3Gi 151Mi 5,8Gi 11Gi Swap: 2,0Gi 0B 2,0Gi 16 16 crw-rw----+ 1 root kvm 10, 232 Mei 1 09:14 /dev/kvm total 8,0K drwxrwxrwt 2 root root 4,0K Mei 1 09:14 . drwxrwxrwt 24 root root 4,0K Mei 1 10:32 .. srwxrwxrwx 1 syahrul syahrul 0 Mei 1 09:14 X0 root 2713 0.9 0.5 2491876 83184 ? Ssl 09:14 0:44 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock syahrul 17843 0.0 0.0 17872 2336 pts/1 S+ 10:32 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox dockerd kvm:x:109: docker:x:999:syahrul libvirt:x:140:syahrul libvirt-qemu:x:64055:libvirt-qemu libvirt-dnsmasq:x:141: ### Command : ➜ Docker-OSX git:(master) ✗ docker build -t docker-osx --build-arg SHORTNAME=big-sur . ### Issue ![image](https://user-images.githubusercontent.com/11147011/166131253-db877809-fb3b-4625-a8a7-db73f922bee2.png) :: File /var/cache/pacman/pkg/libinih-55-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] error: libinih: signature from "Maxime Gauduin <alucryd@gmail.com>" is marginal trust error: failed to commit transaction (invalid or corrupted package) Errors occurred, no packages were upgraded. The command '/bin/bash -c if [[ "${LINUX}" == true ]]; then sudo pacman -Syu linux libguestfs --noconfirm ; fi' returned a non-zero code: 1 ### Tried Solution Some online resources says that i need to update my archlinux-kerying package first. So i decided to edit Dockerfile so that it can install kerying. Here's the script ``` RUN if [[ "${LINUX}" == true ]]; then \ sudo pacman -Syy && sudo pacman -S archlinux-keyring --noconfirm && sudo pacman -Syu && sudo pacman -Syu linux libguestfs --noconfirm \ ; fi ``` #### Result [FAILED] ![image](https://user-images.githubusercontent.com/11147011/166131445-cf36611e-a372-4519-a444-5201121635fa.png) ### Edit [Solved] By disabling checking signature in pacman conf, we can install package without any error ``` # Some package signature are invalid/expired, need to disable signature checking RUN sudo sed -i 's/SigLevel = Required DatabaseOptional/SigLevel = Never/g' /etc/pacman.conf # required to use libguestfs inside a docker container, to create bootdisks for docker-osx on-the-fly RUN if [[ "${LINUX}" == true ]]; then \ sudo pacman -Syu linux libguestfs --noconfirm \ ; fi # Restoring pacman conf sed -i 's/SigLevel = Never/SigLevel = Required DatabaseOptional/g' /etc/pacman.conf ```
kerem closed this issue 2026-02-27 23:00:12 +03:00
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
starred/Docker-OSX#356
No description provided.