View previous topic :: View next topic |
Author |
Message |
eugrus n00b
Joined: 20 Sep 2004 Posts: 15 Location: North Rhine-Westphalia
|
Posted: Sun Dec 17, 2023 11:51 pm Post subject: distrobox container with Gentoo won't start |
|
|
So I've (kinda) created a Gentoo container via distrobox on Debian 12:
Code: |
$ distrobox create -n Gentoo -i docker.io/gentoo/stage3:latest
Image docker.io/gentoo/stage3:latest not found.
Do you want to pull the image now? [Y/n]: y
Trying to pull docker.io/gentoo/stage3:latest...
Getting image source signatures
Copying blob 145b43c7c11a done
Copying config b81c526ae0 done
Writing manifest to image destination
Storing signatures
b81c526ae00673195b7959a9901b0e928b4a1a61de36cbd73b2f57e36772ba94
Creating 'Gentoo' using image docker.io/gentoo/stage3:latest [ OK ]
Distrobox 'Gentoo' successfully created.
To enter, run:
distrobox enter Gentoo
Gentoo
|
However it won't initialize:
Code: |
$ distrobox-enter Gentoo
Container Gentoo is not running.
Starting container Gentoo
run this command to follow along:
podman logs -f Gentoo
Starting container... [ OK ]
Installing basic packages... Error: An error occurred
|
Here's the log:
Code: |
$ podman logs -f Gentoo
+ '[' -n '' ']'
+ printf 'distrobox: Installing basic packages...\n'
distrobox: Installing basic packages...
++ basename /bin/bash
+ shell_pkg=bash
+ '[' bash = ash ']'
+ '[' 0 -ne 0 ']'
+ command -v find
/usr/bin/find
+ command -v mount
/bin/mount
+ command -v passwd
/usr/bin/passwd
+ command -v sudo
+ command -v apk
+ command -v apt-get
+ command -v dnf
+ command -v emerge
/usr/bin/emerge
++ portageq get_repo_path / gentoo
+ gentoo_repo=/var/db/repos/gentoo
+ '[' -n /var/db/repos/gentoo ']'
+ '[' '!' -e /var/db/repos/gentoo ']'
+ emerge-webrsync
!!! Section 'gentoo' in repos.conf has location attribute set to nonexistent directory: '/var/db/repos/gentoo'
!!! Invalid Repository Location (not a dir): '/var/db/repos/gentoo'
* PGP verification method: gemato
* Fetching most recent snapshot ...
* Trying to retrieve 20231216 snapshot from http://distfiles.gentoo.org ...
* Fetching file gentoo-20231216.tar.xz.md5sum ...
--2023-12-18 00:34:08-- http://distfiles.gentoo.org/snapshots/gentoo-20231216.tar.xz.md5sum
Resolving distfiles.gentoo.org... 2a02:6ea0:c700::17, 2a02:6ea0:c700::18, 2a02:6ea0:c700::11, ...
Connecting to distfiles.gentoo.org|2a02:6ea0:c700::17|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 57 [application/x-xz]
Saving to: '/var/tmp/portage/webrsync-Lg9MzH/gentoo-20231216.tar.xz.md5sum'
0K 100% 12.2M=0s
2023-12-18 00:34:09 (12.2 MB/s) - '/var/tmp/portage/webrsync-Lg9MzH/gentoo-20231216.tar.xz.md5sum' saved [57/57]
* Fetching file gentoo-20231216.tar.xz.gpgsig ...
--2023-12-18 00:34:09-- http://distfiles.gentoo.org/snapshots/gentoo-20231216.tar.xz.gpgsig
Resolving distfiles.gentoo.org... 2a02:6ea0:c700::17, 2a02:6ea0:c700::18, 2a02:6ea0:c700::11, ...
Connecting to distfiles.gentoo.org|2a02:6ea0:c700::17|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 963 [application/x-xz]
Saving to: '/var/tmp/portage/webrsync-Lg9MzH/gentoo-20231216.tar.xz.gpgsig'
0K 100% 5.83M=0s
2023-12-18 00:34:09 (5.83 MB/s) - '/var/tmp/portage/webrsync-Lg9MzH/gentoo-20231216.tar.xz.gpgsig' saved [963/963]
* Fetching file gentoo-20231216.tar.xz ...
--2023-12-18 00:34:09-- http://distfiles.gentoo.org/snapshots/gentoo-20231216.tar.xz
Resolving distfiles.gentoo.org... 2a02:6ea0:c700::17, 2a02:6ea0:c700::18, 2a02:6ea0:c700::11, ...
Connecting to distfiles.gentoo.org|2a02:6ea0:c700::17|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 45052280 (43M) [application/x-xz]
Saving to: '/var/tmp/portage/webrsync-Lg9MzH/gentoo-20231216.tar.xz'
0K .......... .......... .......... .......... .......... 0% 1.65M 26s
[cut out the progress info here]
43950K .......... .......... .......... .......... ...... 100% 7.22M=6.3s
2023-12-18 00:34:15 (6.85 MB/s) - '/var/tmp/portage/webrsync-Lg9MzH/gentoo-20231216.tar.xz' saved [45052280/45052280]
* Checking digest ...
* Checking signature ...
[ INFO] Refreshing keys...
[ INFO] Keys refreshed.
[ INFO] File /var/tmp/portage/webrsync-Lg9MzH/gentoo-20231216.tar.xz verified successfully against the signature in /var/tmp/portage/webrsync-Lg9MzH/gentoo-20231216.tar.xz.gpgsig:
[ INFO] - status: OpenPGPSignatureStatus.GOOD
[ INFO] - valid: True, trusted: True
[ INFO] - primary key: DCD05B71EAB94199527F44ACDB6B8C1F96D8BF6D
[ INFO] - subkey: E1D6ABB63BFCFB4BA02FDF1CEC590EEAC9189250
[ INFO] - timestamp: 2023-12-17 00:56:48 UTC
* Getting snapshot timestamp ...
* Syncing local repository ...
Number of files: 150,277 (reg: 123,136, dir: 27,141)
Number of created files: 150,276 (reg: 123,136, dir: 27,140)
Number of deleted files: 0
Number of regular files transferred: 123,136
Total file size: 207.57M bytes
Total transferred file size: 207.57M bytes
Literal data: 207.57M bytes
Matched data: 0 bytes
File list size: 3.55M
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 110.47M
Total bytes received: 2.46M
sent 110.47M bytes received 2.46M bytes 5.51M bytes/sec
total size is 207.57M speedup is 1.84
* Cleaning up ...
Performing Global Updates
(Could take a couple of minutes if you have a lot of binary packages.)
* IMPORTANT: 13 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
+ '[' 0 -ne 0 ']'
+ emerge --ask=n --autounmask-continue --noreplace --quiet-build bash
Calculating dependencies
* IMPORTANT: 13 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
... done!
Dependency resolution took 1.34 s (backtrack: 0/20).
>>> Recording app-shells/bash in "world" favorites file...
>>> Jobs: 0 of 0 complete Load avg: 50.4, 49.5, 49.2
+ emerge --ask=n --autounmask-continue --noreplace --quiet-build bash app-crypt/gnupg sys-devel/bc diffutils findutils less ncurses net-misc/curl pinentry procps shadow sudo sys-process/lsof util-linux wget
Calculating dependencies
* IMPORTANT: 13 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
[ Results for search key : pinentry ]
* app-crypt/pinentry
Latest version available: 1.2.1-r3
Latest version installed: 1.2.1-r3
Size of files: 535 KiB
Homepage: https://gnupg.org/aegypten2
Description: Simple passphrase entry dialogs which utilize the Assuan protocol
License: GPL-2
* app-emacs/pinentry [ Masked ]
Latest version available: 0.1_p20231126
Latest version installed: [ Not Installed ]
Size of files: 6 KiB
Homepage: https://github.com/ueno/pinentry-el https://www.emacswiki.org/emacs/EasyPG
Description: GnuPG Pinentry server implementation for Emacs
License: GPL-3+
[ Applications found : 2 ]
!!! The short ebuild name "pinentry" is ambiguous. Please specify
!!! one of the above fully-qualified ebuild names instead.
... done!
Dependency resolution took 0.92 s (backtrack: 0/20).
+ '[' 1 -ne 0 ']'
+ printf 'Error: An error occurred\n'
Error: An error occurred
distrobox: Installing basic packages...
+ '[' -n '' ']'
+ printf 'distrobox: Installing basic packages...\n'
++ basename /bin/bash
+ shell_pkg=bash
+ '[' bash = ash ']'
+ '[' 0 -ne 0 ']'
+ command -v find
/usr/bin/find
+ command -v mount
/bin/mount
+ command -v passwd
/usr/bin/passwd
+ command -v sudo
+ command -v apk
+ command -v apt-get
+ command -v dnf
+ command -v emerge
/usr/bin/emerge
++ portageq get_repo_path / gentoo
+ gentoo_repo=/var/db/repos/gentoo
+ '[' -n /var/db/repos/gentoo ']'
+ '[' '!' -e /var/db/repos/gentoo ']'
+ '[' 0 -ne 0 ']'
+ emerge --ask=n --autounmask-continue --noreplace --quiet-build bash
Calculating dependencies
* IMPORTANT: 13 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
... done!
Dependency resolution took 1.00 s (backtrack: 0/20).
>>> Jobs: 0 of 0 complete Load avg: 49.4, 49.4, 49.2
+ emerge --ask=n --autounmask-continue --noreplace --quiet-build bash app-crypt/gnupg sys-devel/bc diffutils findutils less ncurses net-misc/curl pinentry procps shadow sudo sys-process/lsof util-linux wget
Calculating dependencies
* IMPORTANT: 13 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
[ Results for search key : pinentry ]
* app-crypt/pinentry
Latest version available: 1.2.1-r3
Latest version installed: 1.2.1-r3
Size of files: 535 KiB
Homepage: https://gnupg.org/aegypten2
Description: Simple passphrase entry dialogs which utilize the Assuan protocol
License: GPL-2
* app-emacs/pinentry [ Masked ]
Latest version available: 0.1_p20231126
Latest version installed: [ Not Installed ]
Size of files: 6 KiB
Homepage: https://github.com/ueno/pinentry-el https://www.emacswiki.org/emacs/EasyPG
Description: GnuPG Pinentry server implementation for Emacs
License: GPL-3+
[ Applications found : 2 ]
!!! The short ebuild name "pinentry" is ambiguous. Please specify
!!! one of the above fully-qualified ebuild names instead.
... done!
Dependency resolution took 0.75 s (backtrack: 0/20).
Error: An error occurred
+ '[' 1 -ne 0 ']'
+ printf 'Error: An error occurred\n'
|
Looks like something with dependency management, but that's in terms of my Debian brain. Any ideas from you, Gentoo people? |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1910
|
Posted: Mon Dec 18, 2023 12:13 am Post subject: |
|
|
The person who created this script has not accounted for categories in resolving duplicate names across categories. It appears as if they mean app-crypt/pinentry instead of just pinentry. Portage tells of the error very quickly.
Complain to whomever made this |
|
Back to top |
|
|
eugrus n00b
Joined: 20 Sep 2004 Posts: 15 Location: North Rhine-Westphalia
|
Posted: Mon Dec 18, 2023 12:30 am Post subject: |
|
|
grknight wrote: | The person who created this script has not accounted for categories in resolving duplicate names across categories. It appears as if they mean app-crypt/pinentry instead of just pinentry. Portage tells of the error very quickly.
Complain to whomever made this |
Is there any (or even Gentoo-official) podman container registry with working Gentoo images? Something worth putting into /etc/containers/registries.conf ? |
|
Back to top |
|
|
eugrus n00b
Joined: 20 Sep 2004 Posts: 15 Location: North Rhine-Westphalia
|
Posted: Mon Dec 18, 2023 12:35 am Post subject: |
|
|
grknight wrote: | The person who created this script has not accounted for categories in resolving duplicate names across categories. It appears as if they mean app-crypt/pinentry instead of just pinentry. Portage tells of the error very quickly.
Complain to whomever made this |
Interestingly, https://hub.docker.com/r/gentoo/stage3 does say "official", in terms of coming from the Gentoo Foundation. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22619
|
Posted: Mon Dec 18, 2023 2:01 am Post subject: |
|
|
grknight did not specifically disclaim that the Gentoo project may have created this (nor affirm that this image is under control of the Gentoo project). However, the point stands: the image as posted is broken, and whoever made it needs to fix it. I would also note that while the image may have worked at the time it was posted, it took shortcuts that left it vulnerable to becoming broken. Curiously, the output you showed looks to me like the responsible author already had this problem with gnupg and amended the command line to make that one fully qualified, but did not apply that lesson more broadly.
I don't see that page as saying this is a Gentoo project. It just comes up blank for me. It looks like the DockerHub project doesn't understand how to make pages that work without JavaScript. On the subject of problem reports, someone should get DockerHub to fix that. |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1236 Location: Richmond Hill, Canada
|
Posted: Mon Dec 18, 2023 4:05 pm Post subject: |
|
|
eugrus,
I think the creator of distrobox already address this in version 1.6.0.1
I think the docker image indeed came from Gentoo official release but there is no way Gentoo developer can predicted how one would use the container. I use those image all the time but never have problem with the image itself. |
|
Back to top |
|
|
|
|
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
|
|