From: n952162 <n952162@web.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] could there be a problem with acct-group/lp?
Date: Thu, 31 Dec 2020 08:34:42 +0100 [thread overview]
Message-ID: <1a3c55c7-fb90-5d3c-bb08-aa85378ca2f6@web.de> (raw)
In-Reply-To: <5681236.lOV4Wx5bFT@lenovo.localdomain>
On 12/31/20 1:29 AM, Michael wrote:
> On Wednesday, 30 December 2020 23:33:47 GMT Jack wrote:
>> On 2020.12.30 17:17, n952162 wrote:
>>> When I try to restore my pkgs, after the --depclean, the emerge
>>> fails.
>>> It seems like there's an error in the pre-inst script of
>>> acct-group/lp?
>>> That's need by cups:
>>>
>>> 1270~/adm/gentoo/emerged>sudo cat
>>> /var/tmp/portage/acct-group/lp-0-r1/temp/build.log
>>> * Package: acct-group/lp-0-r1
>>> * Repository: gentoo
>>> * Maintainer: systemd@gentoo.org printing@gentoo.org
>>> * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
>>> * FEATURES: network-sandbox preserve-libs sandbox userpriv
>>> usersandbox
>>>
>>>>>> Unpacking source...
>>>>>> Source unpacked in /var/tmp/portage/acct-group/lp-0-r1/work
>>>>>> Preparing source in /var/tmp/portage/acct-group/lp-0-r1/work ...
>>>>>> Source prepared.
>>>>>> Configuring source in /var/tmp/portage/acct-group/lp-0-r1/work ...
>>>>>> Source configured.
>>>>>> Compiling source in /var/tmp/portage/acct-group/lp-0-r1/work ...
>>>>>> Source compiled.
>>>>>> Test phase [not enabled]: acct-group/lp-0-r1
>>>>>>
>>>>>> Install acct-group/lp-0-r1 into
>>> /var/tmp/portage/acct-group/lp-0-r1/image
>>>
>>>>>> Completed installing acct-group/lp-0-r1 into
>>> /var/tmp/portage/acct-group/lp-0-r1/image
>>>
>>> * Final size of build directory: 4 KiB
>>> * Final size of installed tree: 20 KiB
>>>
>>> * checking 1 files for package collisions
>>>
>>>>>> Merging acct-group/lp-0-r1 to /
>>> error writing group entry: Invalid argument
>>> * Adding group 'lp' to your system ...
>>> error writing group entry: Invalid argument
>>> * - Groupid: 7
>>> groupadd: group 'lp' already exists
>> This seems to be the basic cause. However, I have no idea what that
>> emerge should do if the group it wants to install does already exist.
>> I can re-emerge this package with no problems. Is this a new install
>> or reinstall? All the logic is in the eclass which does have the
>> comment "Creates the group if it does not exist."
>>
>> What happens if you just run "emerge -1 acct-group/lp"? Have you done
>> a successful "emerge -auDvN @system" ? There may well be something
>> else required still missing, but not an explicit dependency because it
>> is part of @system.
> Some other things to try after @system if the problem persists:
>
> Check the ownership and access rights of /etc/group:
>
> $ stat /etc/group
> File: /etc/group
> Size: 855 Blocks: 8 IO Block: 4096 regular file
> Device: 80ah/2058d Inode: 1055521 Links: 1
> Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
> Access: 2020-10-25 16:25:42.814894971 +0000
> Modify: 2020-10-25 16:25:42.815894988 +0000
> Change: 2020-10-25 16:25:42.892896366 +0000
> Birth: 2020-10-25 16:25:42.814894971 +0000
>
>
> Check the particular group ID:
>
> $ grep :7: /etc/group
> lp:x:7:lp
>
>
> Emerge cups which installs lp:
>
> emerge -1aDv net-print/cups
>
> Then try again as suggested:
>
> emerge -1aDv acct-group/lp
>
>
>
$ ls -l /etc/group
-rw-r--r-- 1 root root 907 Dec 30 20:53 /etc/group
$ stat /etc/group
File: `/etc/group'
Size: 907 Blocks: 8 IO Block: 4096 regular file
Device: 801h/2049d Inode: 950897 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-12-30 20:53:13.000000000 +0100
Modify: 2020-12-30 20:53:12.000000000 +0100
Change: 2020-12-30 20:53:12.000000000 +0100
Birth: -
$ grep :7: /etc/group
lp:x:7:lp:me
cups was already installed. I considered removing it, but several other
things, like ghostscript (!) are dependent on it. I'm using
--keep-going for now. I suspect a bug in acct-group/lp that will get
cleared up.
Why do you specify -1? That's the most common advice I get for avoiding
slot-conflicts, but I can't imagine a system without cups.
next prev parent reply other threads:[~2020-12-31 7:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-30 22:17 [gentoo-user] could there be a problem with acct-group/lp? n952162
2020-12-30 23:33 ` Jack
2020-12-31 0:29 ` Michael
2020-12-31 7:34 ` n952162 [this message]
2020-12-31 9:31 ` Neil Bothwick
2020-12-31 11:03 ` Michael
2020-12-31 13:14 ` Michael Orlitzky
2021-01-01 19:47 ` n952162
2021-01-01 19:50 ` n952162
2021-01-01 20:01 ` n952162
2020-12-31 7:20 ` n952162
2020-12-31 9:33 ` Neil Bothwick
2021-01-01 20:13 ` [gentoo-user] could there be a problem with acct-group/lp? [RESOLVED] n952162
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1a3c55c7-fb90-5d3c-bb08-aa85378ca2f6@web.de \
--to=n952162@web.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox