Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --ask --verbose app-containers/docker fail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
liudk
n00b
n00b


Joined: 12 Oct 2024
Posts: 5

PostPosted: Sun Oct 13, 2024 11:00 am    Post subject: emerge --ask --verbose app-containers/docker fail Reply with quote

Hell all, when I install docker ,An error occurred

Install command is :
Code:

emerge --ask --verbose app-containers/docker



Error is:
Code:

>>> Compiling source in /var/tmp/portage/app-containers/docker-26.1.0-r1/work/docker-26.1.0/src/github.com/docker/docker ...

Removing bundles/

---> Making bundle: dynbinary (in bundles/dynbinary)
Building dynamic bundles/dynbinary-daemon/dockerd (linux/amd64)...
+ tee /var/tmp/portage/app-containers/docker-26.1.0-r1/work/docker-26.1.0/src/github.com/docker/docker/go.mod
module github.com/docker/docker

go 1.21
+ trap 'rm -f "${ROOTDIR}/go.mod"' EXIT
+ GO111MODULE=on
+ GOTOOLCHAIN=local
+ go build -mod=vendor -modfile=vendor.mod -o bundles/dynbinary-daemon/dockerd -tags ' exclude_graphdriver_btrfs exclude_graphdriver_overlay seccomp journald' -buildmode=pie -ldflags '-w -X "github.com/docker/docker/dockerversion.Version=26.1.0" -X "github.com/docker/docker/dockerversion.GitCommit=061aa95809be396a6b5542618d8a34b02a21ff77" -X "github.com/docker/docker/dockerversion.BuildTime=2024-10-13T10:51:16.000000000+00:00" -X "github.com/docker/docker/dockerversion.PlatformName=" -X "github.com/docker/docker/dockerversion.ProductName=" -X "github.com/docker/docker/dockerversion.DefaultProductLicense="   ' -gcflags= github.com/docker/docker/cmd/dockerd
error obtaining VCS status: exit status 128
        Use -buildvcs=false to disable VCS stamping.
+ rm -f /var/tmp/portage/app-containers/docker-26.1.0-r1/work/docker-26.1.0/src/github.com/docker/docker/go.mod
 * ERROR: app-containers/docker-26.1.0-r1::gentoo failed (compile phase):
 *   dynbinary failed
 *
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 2577:  Called die
 * The specific snippet of code:
 *       ./hack/make.sh dynbinary || die 'dynbinary failed'
 *
 * If you need support, post the output of `emerge --info '=app-containers/docker-26.1.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-containers/docker-26.1.0-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-containers/docker-26.1.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-containers/docker-26.1.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-containers/docker-26.1.0-r1/work/docker-26.1.0/src/github.com/docker/docker'
 * S: '/var/tmp/portage/app-containers/docker-26.1.0-r1/work/docker-26.1.0/src/github.com/docker/docker'

>>> Failed to emerge app-containers/docker-26.1.0-r1, Log file:

>>>  '/var/tmp/portage/app-containers/docker-26.1.0-r1/temp/build.log'

 * Messages for package app-containers/docker-26.1.0-r1:

 * ERROR: app-containers/docker-26.1.0-r1::gentoo failed (compile phase):
 *   dynbinary failed
 *
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 2577:  Called die
 * The specific snippet of code:
 *       ./hack/make.sh dynbinary || die 'dynbinary failed'
 *
 * If you need support, post the output of `emerge --info '=app-containers/docker-26.1.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-containers/docker-26.1.0-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-containers/docker-26.1.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-containers/docker-26.1.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-containers/docker-26.1.0-r1/work/docker-26.1.0/src/github.com/docker/docker'
 * S: '/var/tmp/portage/app-containers/docker-26.1.0-r1/work/docker-26.1.0/src/github.com/docker/docker'


output of `emerge --info '=app-containers/docker-26.1.0-r1::gentoo'` is:
Code:

dev-build/meson:           1.5.1::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.12.6_p2::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-apps/systemd:          255.11::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             13.3.1_p20240614::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://mirrors.tuna.tsinghua.edu.cn/gentoo-portage/
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://mirrors.ustc.edu.cn/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
--exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl amd64 bzip2 cet crypt gdbm iconv ipv6 libtirpc multilib ncurses nls openmp pam pcre readline seccomp ssl systemd test-rust udev unicode xattr zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB,
READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


Can everyone help me ? Thanks!
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2374

PostPosted: Sun Oct 13, 2024 3:51 pm    Post subject: Reply with quote

It built fine for me. Maybe the easiest way is to add --getbinpkg to your command and install it from the binhost, it's available there.

If you want to diagnose the build, go to the temp directory and run ./hack/make.sh dynbinary and see what the error is. Or you can put the ebuild in a user overlay and edit out the || die part of that line. I think it's unnecessary and the ebuild will fail aither way, but at least it'll print the actual error.

EDIT: I think the relevant part is:

Code:
error obtaining VCS status: exit status 128


Maybe a temporary network unavailability?

Best Regards,
Georgi
Back to top
View user's profile Send private message
liudk
n00b
n00b


Joined: 12 Oct 2024
Posts: 5

PostPosted: Mon Oct 14, 2024 2:52 pm    Post subject: Reply with quote

I am attempting to execute the following command:
Code:

cd /var/tmp/portage/app-containers/docker-26.1.0-r1/work/docker-26.1.0/src/github.com/docker/docker
./hack/make.sh dynbinary


The error is:
Code:

error: .git directory missing and DOCKER_GITCOMMIT not specified
  Please either build with the .git directory accessible, or specify the
  exact commit hash you are building using DOCKER_GITCOMMIT for future
  accountability in diagnosing build issues.  Thanks!


Also, I try to add --getbinpkg to my command
Code:

emerge --ask --verbose --getbinpkg app-containers/docker


Unfortunately, it was also a failure
Code:

Saving to: ‘/var/cache/binpkgs/app-containers/docker/docker-26.1.0-r1-9.gpkg.tar.partial’

/var/cache/binpkgs/app-contai 100%[================================================>]  25.73M  1.74MB/s    in 20s

2024-10-14 22:46:02 (1.27 MB/s) - ‘/var/cache/binpkgs/app-containers/docker/docker-26.1.0-r1-9.gpkg.tar.partial’ saved
[26982400/26982400]

 * docker-26.1.0-r1-9.gpkg.tar MD5 SHA1 size ;-) ...                     [ ok ]
!!!
gpg: WARNING: unsafe ownership on homedir '/etc/portage/gnupg'
gpg: failed to create temporary file '/etc/portage/gnupg/.#lk0x00005601238d7fc0.ldk-vm-gentoo-server.1828': Permission
denied
gpg: keyblock resource '/etc/portage/gnupg/pubring.kbx': Permission denied
[GNUPG:] ERROR add_keyblock_resource 33587201
gpg: can't open `/etc/portage/gnupg/random_seed': Permission denied
[GNUPG:] PLAINTEXT 74 0
[GNUPG:] NEWSIG
gpg: Signature made Fri 14 Jun 2024 06:23:02 PM CST
gpg:                using RSA key 534E4209AB49EEE1C19D96162C44695DB9F6043D
[GNUPG:] ERROR keydb_search 33554445
[GNUPG:] ERROR keydb_search 33554445
[GNUPG:] ERRSIG 2C44695DB9F6043D 1 10 01 1718360582 9 534E4209AB49EEE1C19D96162C44695DB9F6043D
[GNUPG:] NO_PUBKEY 2C44695DB9F6043D
gpg: Can't check signature: No public key
[GNUPG:] FAILURE gpg-exit 33554433
gpg: note: random_seed file not updated
!!! Invalid binary package: '/var/cache/binpkgs/app-containers/docker/docker-26.1.0-r1-9.gpkg.tar.partial', GPG verify
failed

>>> Failed to emerge app-containers/docker-26.1.0-r1, Log file:

>>>  '/var/tmp/portage/app-containers/docker-26.1.0-r1/temp/build.log'



I try to run `rm /var/cache/binpkgs/app-containers/docker/docker-26.1.0-r1-4.gpkg.tar.partial` and `emerge --sync`,then installed it again, but the same error still occurred
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2374

PostPosted: Mon Oct 14, 2024 4:33 pm    Post subject: Reply with quote

How do you gain root privileges? Give me the complete command you're running.

Best Regards,
Georgi
Back to top
View user's profile Send private message
liudk
n00b
n00b


Joined: 12 Oct 2024
Posts: 5

PostPosted: Tue Oct 15, 2024 4:39 am    Post subject: Reply with quote

I run commands using the root account. The complete command to install it from the binhost is
Code:

emerge --ask --verbose --getbinpkg app-containers/docker


Because it failed, so I tried to diagnose the build using the following command
Code:

cd /var/tmp/portage/app-containers/docker-26.1.0-r1/work/docker-26.1.0/src/github.com/docker/docker
./hack/make.sh dynbinary
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2374

PostPosted: Tue Oct 15, 2024 5:20 am    Post subject: Reply with quote

Do you login directly to a root account or you're using su,sudo,doas et.c?

Try deleting the /etc/portage/gnupg directory. Portage should recreate it. However this is a rather odd issue, portage runs as root and I have no idea what stops it from accessing that directory.

Do you use bash or other shell?

Best Regards,
Georgi
Back to top
View user's profile Send private message
liudk
n00b
n00b


Joined: 12 Oct 2024
Posts: 5

PostPosted: Wed Oct 16, 2024 8:57 am    Post subject: Reply with quote

I logged into the system directly with my root account.

I delete the /etc/portage/gnupg directory and run then command 'emergency -- ask -- verbose -- getbinpkg app containers/dock' again, but the directory was not automatically created,the error is as follwos:
Code:

>>> Emerging binary (1 of 1) app-containers/docker-26.1.0-r1::gentoo
--2024-10-16 16:44:39--  https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64/app-containers/docker/docker-26.1.0-r1-1.gpkg.tar
Resolving distfiles.gentoo.org... 89.187.187.6, 89.187.187.20, 89.187.187.10, ...
Connecting to distfiles.gentoo.org|89.187.187.6|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26982400 (26M) [application/x-tar]
Saving to: ‘/var/cache/binpkgs/app-containers/docker/docker-26.1.0-r1-15.gpkg.tar.partial’

/var/cache/binpkgs/app-cont 100%[==========================================>]  25.73M  3.95MB/s    in 7.6s

2024-10-16 16:44:47 (3.40 MB/s) - ‘/var/cache/binpkgs/app-containers/docker/docker-26.1.0-r1-15.gpkg.tar.partial’ saved [26982400/26982400]

 * docker-26.1.0-r1-15.gpkg.tar MD5 SHA1 size ;-) ...                    [ ok ]
!!!
gpg: keyblock resource '/etc/portage/gnupg/pubring.kbx': No such file or directory
[GNUPG:] ERROR add_keyblock_resource 33587281
[GNUPG:] PLAINTEXT 74 0
[GNUPG:] NEWSIG
gpg: Signature made Fri 14 Jun 2024 06:23:02 PM CST
gpg:                using RSA key 534E4209AB49EEE1C19D96162C44695DB9F6043D
[GNUPG:] ERROR keydb_search 33554445
[GNUPG:] ERROR keydb_search 33554445
[GNUPG:] ERRSIG 2C44695DB9F6043D 1 10 01 1718360582 9 534E4209AB49EEE1C19D96162C44695DB9F6043D
[GNUPG:] NO_PUBKEY 2C44695DB9F6043D
gpg: Can't check signature: No public key
[GNUPG:] FAILURE gpg-exit 33554433
gpg: can't create `/etc/portage/gnupg/random_seed': No such file or directory
!!! Invalid binary package: '/var/cache/binpkgs/app-containers/docker/docker-26.1.0-r1-15.gpkg.tar.partial', GPG verify failed

>>> Failed to emerge app-containers/docker-26.1.0-r1, Log file:

>>>  '/var/tmp/portage/app-containers/docker-26.1.0-r1/temp/build.log'
gentoo ~ # ls /etc/portage/gnupg
ls: cannot access '/etc/portage/gnupg': No such file or directory


So, I manually created then /etc/portage/gnupg directory and then ran the installation command again. However, it still failed. The error is as follwos:
Code:

>>> Emerging binary (1 of 1) app-containers/docker-26.1.0-r1::gentoo
--2024-10-16 16:49:02--  https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64/app-containers/docker/docker-26.1.0-r1-1.gpkg.tar
Resolving distfiles.gentoo.org... 178.249.213.27, 212.102.50.9, 178.249.213.3, ...
Connecting to distfiles.gentoo.org|178.249.213.27|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26982400 (26M) [application/x-tar]
Saving to: ‘/var/cache/binpkgs/app-containers/docker/docker-26.1.0-r1-16.gpkg.tar.partial’

/var/cache/binpkgs/app-cont 100%[==========================================>]  25.73M  3.68MB/s    in 7.2s

2024-10-16 16:49:10 (3.55 MB/s) - ‘/var/cache/binpkgs/app-containers/docker/docker-26.1.0-r1-16.gpkg.tar.partial’ saved [26982400/26982400]

 * docker-26.1.0-r1-16.gpkg.tar MD5 SHA1 size ;-) ...                    [ ok ]
!!!
gpg: WARNING: unsafe ownership on homedir '/etc/portage/gnupg'
gpg: failed to create temporary file '/etc/portage/gnupg/.#lk0x000055f93a188fc0.gentoo.882': Permission denied
gpg: keyblock resource '/etc/portage/gnupg/pubring.kbx': Permission denied
[GNUPG:] ERROR add_keyblock_resource 33587201
[GNUPG:] PLAINTEXT 74 0
[GNUPG:] NEWSIG
gpg: Signature made Fri 14 Jun 2024 06:23:02 PM CST
gpg:                using RSA key 534E4209AB49EEE1C19D96162C44695DB9F6043D
[GNUPG:] ERROR keydb_search 33554445
[GNUPG:] ERROR keydb_search 33554445
[GNUPG:] ERRSIG 2C44695DB9F6043D 1 10 01 1718360582 9 534E4209AB49EEE1C19D96162C44695DB9F6043D
[GNUPG:] NO_PUBKEY 2C44695DB9F6043D
gpg: Can't check signature: No public key
[GNUPG:] FAILURE gpg-exit 33554433
gpg: can't create `/etc/portage/gnupg/random_seed': Permission denied
!!! Invalid binary package: '/var/cache/binpkgs/app-containers/docker/docker-26.1.0-r1-16.gpkg.tar.partial', GPG verify failed

Due to error message,I also find it strange why the root account doesn't have permission to create/etc/portage/gnupg/random_steed, Do I need to use another account to install Docker?
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2374

PostPosted: Wed Oct 16, 2024 9:30 am    Post subject: Reply with quote

It this doesn't solve your issue, I'm not competent to help further:

https://forums.gentoo.org/viewtopic-t-1130232.html

Best Regards,
Georgi
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 355

PostPosted: Wed Oct 16, 2024 4:44 pm    Post subject: Reply with quote

I have recently messed with /etc/portage/gnupg to set up generating binary packages in the gpkg format.
Does simply running getuto solve the problem?

For reference https://wiki.gentoo.org/wiki/Binary_package_guide#Verify_binary_package_OpenPGP_signatures
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2374

PostPosted: Wed Oct 16, 2024 4:47 pm    Post subject: Reply with quote

bstaletic wrote:

Does simply running getuto solve the problem?


I think that's what portage does. At least the output is the same as when I move my original gnupg out of /etc/portage.

But how on earth would portage not have permission when it runs as root?

Maybe a corrupted filesystem? Not enough free space?

Best Regards,
Georgi
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 355

PostPosted: Wed Oct 16, 2024 5:24 pm    Post subject: Reply with quote

logrusx wrote:
But how on earth would portage not have permission when it runs as root?


Can happen with immutable attribute being set, but I don't think that's the case.
Another option is a read-only file system.

Could be that gnupg is refusing to work due to insecure premissions on the gnupg directory.
For me, the premissions look like this:

Code:
$ lsattr /etc/portage/gnupg -d
--------------e------- /etc/portage/gnupg
$ ls -ld /etc/portage/gnupg
drwxr-xr-x 5 root root 4096 Oct 14 22:43 /etc/portage/gnupg
$ ls -l /etc/portage/gnupg/pubring.kbx
-rw-r--r-- 1 root root 72846 Jul 28 05:14 /etc/portage/gnupg/pubring.kbx


EDIT: Portage only runs getuto when --getbinpkgs is also passed. Also in the wiki page I linked previously.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2374

PostPosted: Wed Oct 16, 2024 5:32 pm    Post subject: Reply with quote

bstaletic wrote:

Could be that gnupg is refusing to work due to insecure premissions on the gnupg directory.


It works, just spits a handful of warnings. When changing the permissions like yours those warnings go away. However OP's problem seems to be that permission is denied. If they deleted the directory, it's not a read-only filesystem.

And I suspect because of gnupg is unable to run, they can't use git to download needed components for docker, nor they can use binary packages. But I don't know very much about how that part of portage works.

p.s. I would advice on changing the title of the thread. I guess not many users are interested in docker, but signed packages problem for example will attract more attention from the users who actually can help. Or the message with which gnupg informs about permission problems.

That is: gpg: can't open `/etc/portage/gnupg/random_seed': Permission denied

That has better chance to attract the attention of the right people.

Just edit the first post, it'll give you the option to edit the title as well.

Best Regards,
Georgi
Back to top
View user's profile Send private message
liudk
n00b
n00b


Joined: 12 Oct 2024
Posts: 5

PostPosted: Sat Nov 02, 2024 2:56 am    Post subject: Reply with quote

I'm very sorry. I've been very busy recently and haven't paid attention to the messages.Thank you very much for your suggestions.

I have successfully installed Docker. Use the following command.

Code:

gentoo-server ~ # getuto

gentoo-server ~ # emerge --ask --verbose --getbinpkg app-containers/docker

gentoo-server ~ # emerge --ask --verbose --getbinpkg app-containers/docker-cli
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum