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