From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5E0761382C5 for ; Thu, 31 Dec 2020 07:39:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5C9CEE088B; Thu, 31 Dec 2020 07:39:03 +0000 (UTC) Received: from mout.web.de (mout.web.de [212.227.15.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 940EDE087A for ; Thu, 31 Dec 2020 07:39:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1609400329; bh=dW9GWON6C3EQtOixffVx+d/Iot4R54hroaxmHZco2g0=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=EQs/riyizbg2bz3D/O7bNEB46gL8rfIM4tGBr8mGwLYjHPFaficUX4flXYyZ5hP0Q lWLOmiW6jYzkpm9ZMHdRKKEEjZye7MKeAvJf5AuIJisd9WWn+Zyrqbbs7TCmDbye1n ZCrul+Wzh/WYp8lFa1Vr6qUXflIX71z3p53MImDE= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.178.96] ([95.115.82.48]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1Myezp-1k4s1U2YE1-00yej2 for ; Thu, 31 Dec 2020 08:38:49 +0100 Subject: Re: [gentoo-user] could there be a problem with acct-group/lp? To: gentoo-user@lists.gentoo.org References: <5681236.lOV4Wx5bFT@lenovo.localdomain> From: n952162 Message-ID: <1a3c55c7-fb90-5d3c-bb08-aa85378ca2f6@web.de> Date: Thu, 31 Dec 2020 08:34:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: <5681236.lOV4Wx5bFT@lenovo.localdomain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Provags-ID: V03:K1:CrA4qQ4C0hhUQhkhnmZEfO2NlJfxZyoKJx58k++U9WvHyNlcR6o cY4/cz7fCrefpyeghT3XSmpD3dONjC2rswo2SWzgFDPmznXc58hVT1mYniQgNwRtak/ETCs ph+qTQOtgmsre58e5IxTEXVLL3emgpIPCMp9qD1kgoBc7vQ4jnc0ddS+zNfwRClMWQ7ktRD JWhTKN6Nst2YwkEgI2qQw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:TaI6zqcSQdY=:F2BOsmPcXLOkbPqyjlymI/ vuYZ2OV3sP47GdbpZM7+j0YbcMqTZ+SurYLCOsLMoezqMRmp4b02t9POfwuczgNTuCJgQPFws ANeWoUKcE411YDqLD/WTTxpdQxIZ//WWyN2WfKn0XbwlYmWHMA/9KJTbF4kQ8QI/8OVA2GecW LnOLFcLRv6By6X95lkufLqBoV1cUxtmWenfoASuIl6s+EJwF8Not4G8dxzXNcsBdYNY3xp9aC HsPpYPzHyjvdX6GdOX31iP6gRha7mpAsC7W+agsaKBRbVojQ/cb+zCMBsWdRjhzjZZ8ackFuF dlpLTsquphNdB0Cul54xInIYGtgfwbpVa+HHqMp+J6p2VU8DbO9RDqm5bRdRsEH4UxxUd9u48 rDvJG4B3+tn5sJkxC9z/eh6ed8c54u1698Zzb0vD2N/F2ez6VlnFGKvzctLQll/DuJJu448Mg rhJhpc4F9mXLNmp/V/dvrGROsu/igj0DFKJEZ9w3BieTRm1IQExIjMByNxBUu2jdONruSCkW5 HG0qsB/Hini1wGEwo3iP5MK4thTUz2yFt5X8++CNt+o0221HQSUhpsTe+BlC77pAcN3d4Cinb Ry6M8hVVoxdQ26WbgmHSmsXLrp6nzBUWDtNfQbbJ/22VVAcnGD4TpcJm5RUfrDRxOpeTrXiIr Rsy4uQxd9YGjMEdA2LbTDWKE7vQvVbG1+7JE3ORTe28xkAG2nxZZ4IGBA2Aab1RSMPqUhYscN MJpUXNetNIEh+KfRcHOlgjL46bMZLxpbhuoU1BwkbDIb/xuynwhR6z/KjnLKVuRmlYSa4PVW/ DntZ6xnG5wWL2VGPk62s1UDGd1IbpIaYfXXi/8yVejYMugK1OWel01lp/lxIFmtebFeFLSgMW 34lMsy5XE4P1fj3b8Yug== X-Archives-Salt: db9dd116-f154-470f-95d3-5aa81038aecb X-Archives-Hash: 68800c2bef0e91562b9a2d7a5473372e 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=C2=A0 /etc/group =C2=A0 File: `/etc/group' =C2=A0 Size: 907=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 Blocks: 8=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 IO Block: 4096 regular file Device: 801h/2049d=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Inode: 950897=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 Links: 1 Access: (0644/-rw-r--r--)=C2=A0 Uid: (=C2=A0=C2=A0=C2=A0 0/=C2=A0=C2=A0=C2= =A0 root)=C2=A0=C2=A0 Gid: ( 0/=C2=A0=C2=A0=C2=A0 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 =C2=A0Birth: - $ grep :7: /etc/group lp:x:7:lp:me cups was already installed.=C2=A0 I considered removing it, but several ot= her things, like ghostscript (!) are dependent on it.=C2=A0 I'm using =2D-keep-going for now.=C2=A0 I suspect a bug in acct-group/lp that will g= et cleared up. Why do you specify -1?=C2=A0 That's the most common advice I get for avoid= ing slot-conflicts, but I can't imagine a system without cups.