Score:1

chown: invalid group: ‘root:adm’ problem when installing apache2

co flag

I tried to install apache2 with apt install apache2 but it didn't get fully installed, and I got this message:

chown: invalid group: ‘root:adm’
dpkg: error processing package apache2 (--configure):
 installed apache2 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried rebooting and still the same problem. I am using Ubuntu 22.04

it flag
Our SlickStack community is also aware of this error on certain cloud providers, we believe it might be caused by certain providers not properly setting up their Ubuntu images and `root` user permissions: https://slickstack.io/forum/topic/chown-invalid-group-rootadm-error-on-racknerd
it flag
TLDR you might need to ask your cloud provider to fix it, otherwise you might be stuck having to create group `adm` and adding `root` user into that group every time.
Score:0
za flag

grep adm /etc/group do you have an adm group defined ?

getent group | grep adm should also return something like

adm:x:4:

Debian and CentOS both a group called adm with a GID of 4, so its likely a standard. Did you ever tweak your local groups ?

Ignacio Pozo avatar
co flag
It returns nothing, and I haven't modified the groups. But I am using root
Criggie avatar
za flag
@IgnacioPozo the packaging the DEB is such that it expects a group of that name. Did you add any package repositories to this host so its getting a deb from outside of the distro's tree ?
Ignacio Pozo avatar
co flag
I don't know how to check that :(, but I haven't changed anything
Rajitha Bandara avatar
bs flag
I'm also facing the same issue. @IgnacioPozo Did you solve this?
Ignacio Pozo avatar
co flag
@RajithaBandara I had to downgrade to Ubuntu 20.04. I thought that it might be a problem with the server provider, but never created a ticket for that
Rajitha Bandara avatar
bs flag
@IgnacioPozo That might be correct. What I did was creating adm group and adding root user to that group as I couldn't find other solution.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.