1 |
On 12/31/20 1:29 AM, Michael wrote: |
2 |
> On Wednesday, 30 December 2020 23:33:47 GMT Jack wrote: |
3 |
>> On 2020.12.30 17:17, n952162 wrote: |
4 |
>>> When I try to restore my pkgs, after the --depclean, the emerge |
5 |
>>> fails. |
6 |
>>> It seems like there's an error in the pre-inst script of |
7 |
>>> acct-group/lp? |
8 |
>>> That's need by cups: |
9 |
>>> |
10 |
>>> 1270~/adm/gentoo/emerged>sudo cat |
11 |
>>> /var/tmp/portage/acct-group/lp-0-r1/temp/build.log |
12 |
>>> * Package: acct-group/lp-0-r1 |
13 |
>>> * Repository: gentoo |
14 |
>>> * Maintainer: systemd@g.o printing@g.o |
15 |
>>> * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU |
16 |
>>> * FEATURES: network-sandbox preserve-libs sandbox userpriv |
17 |
>>> usersandbox |
18 |
>>> |
19 |
>>>>>> Unpacking source... |
20 |
>>>>>> Source unpacked in /var/tmp/portage/acct-group/lp-0-r1/work |
21 |
>>>>>> Preparing source in /var/tmp/portage/acct-group/lp-0-r1/work ... |
22 |
>>>>>> Source prepared. |
23 |
>>>>>> Configuring source in /var/tmp/portage/acct-group/lp-0-r1/work ... |
24 |
>>>>>> Source configured. |
25 |
>>>>>> Compiling source in /var/tmp/portage/acct-group/lp-0-r1/work ... |
26 |
>>>>>> Source compiled. |
27 |
>>>>>> Test phase [not enabled]: acct-group/lp-0-r1 |
28 |
>>>>>> |
29 |
>>>>>> Install acct-group/lp-0-r1 into |
30 |
>>> /var/tmp/portage/acct-group/lp-0-r1/image |
31 |
>>> |
32 |
>>>>>> Completed installing acct-group/lp-0-r1 into |
33 |
>>> /var/tmp/portage/acct-group/lp-0-r1/image |
34 |
>>> |
35 |
>>> * Final size of build directory: 4 KiB |
36 |
>>> * Final size of installed tree: 20 KiB |
37 |
>>> |
38 |
>>> * checking 1 files for package collisions |
39 |
>>> |
40 |
>>>>>> Merging acct-group/lp-0-r1 to / |
41 |
>>> error writing group entry: Invalid argument |
42 |
>>> * Adding group 'lp' to your system ... |
43 |
>>> error writing group entry: Invalid argument |
44 |
>>> * - Groupid: 7 |
45 |
>>> groupadd: group 'lp' already exists |
46 |
>> This seems to be the basic cause. However, I have no idea what that |
47 |
>> emerge should do if the group it wants to install does already exist. |
48 |
>> I can re-emerge this package with no problems. Is this a new install |
49 |
>> or reinstall? All the logic is in the eclass which does have the |
50 |
>> comment "Creates the group if it does not exist." |
51 |
>> |
52 |
>> What happens if you just run "emerge -1 acct-group/lp"? Have you done |
53 |
>> a successful "emerge -auDvN @system" ? There may well be something |
54 |
>> else required still missing, but not an explicit dependency because it |
55 |
>> is part of @system. |
56 |
> Some other things to try after @system if the problem persists: |
57 |
> |
58 |
> Check the ownership and access rights of /etc/group: |
59 |
> |
60 |
> $ stat /etc/group |
61 |
> File: /etc/group |
62 |
> Size: 855 Blocks: 8 IO Block: 4096 regular file |
63 |
> Device: 80ah/2058d Inode: 1055521 Links: 1 |
64 |
> Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) |
65 |
> Access: 2020-10-25 16:25:42.814894971 +0000 |
66 |
> Modify: 2020-10-25 16:25:42.815894988 +0000 |
67 |
> Change: 2020-10-25 16:25:42.892896366 +0000 |
68 |
> Birth: 2020-10-25 16:25:42.814894971 +0000 |
69 |
> |
70 |
> |
71 |
> Check the particular group ID: |
72 |
> |
73 |
> $ grep :7: /etc/group |
74 |
> lp:x:7:lp |
75 |
> |
76 |
> |
77 |
> Emerge cups which installs lp: |
78 |
> |
79 |
> emerge -1aDv net-print/cups |
80 |
> |
81 |
> Then try again as suggested: |
82 |
> |
83 |
> emerge -1aDv acct-group/lp |
84 |
> |
85 |
> |
86 |
> |
87 |
|
88 |
$ ls -l /etc/group |
89 |
-rw-r--r-- 1 root root 907 Dec 30 20:53 /etc/group |
90 |
|
91 |
$ stat /etc/group |
92 |
File: `/etc/group' |
93 |
Size: 907 Blocks: 8 IO Block: 4096 regular file |
94 |
Device: 801h/2049d Inode: 950897 Links: 1 |
95 |
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) |
96 |
Access: 2020-12-30 20:53:13.000000000 +0100 |
97 |
Modify: 2020-12-30 20:53:12.000000000 +0100 |
98 |
Change: 2020-12-30 20:53:12.000000000 +0100 |
99 |
Birth: - |
100 |
$ grep :7: /etc/group |
101 |
lp:x:7:lp:me |
102 |
|
103 |
|
104 |
cups was already installed. I considered removing it, but several other |
105 |
things, like ghostscript (!) are dependent on it. I'm using |
106 |
--keep-going for now. I suspect a bug in acct-group/lp that will get |
107 |
cleared up. |
108 |
|
109 |
|
110 |
Why do you specify -1? That's the most common advice I get for avoiding |
111 |
slot-conflicts, but I can't imagine a system without cups. |