Results 1 to 8 of 8

Thread: can't apt-get or install dpkg packag dpkg: syntax error: unknown group `root' in stat

  1. #1
    Join Date
    May 2006
    Beans
    8

    can't apt-get or install dpkg packag dpkg: syntax error: unknown group `root' in stat

    this is the error I get

    dpkg: syntax error: unknown group `root' in statoverride file

    i look in the statoverride file and this is what is in there
    hplip root 755 /var/run/hplip

    i tried to delete this but then it complains statoverride file is empty

    i uninstalled a program and then tried to install another package when this happened
    any help please

  2. #2
    Join Date
    May 2005
    Location
    Helsinki, Finland
    Beans
    Hidden!

    Re: can't apt-get or install dpkg packag dpkg: syntax error: unknown group `root' in stat

    You of course shouldn't have to do this at all, but... You can use dpkg-statoverride program to edit the file, see man dpkg-statusoverride. Maybe something like:
    Code:
    dpkg-statoverride --remove /var/run/hplip

  3. #3
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: dpkg: syntax error: unknown group `root' in statoverride

    Hello,

    I've only been running Ubuntu (and Linux for that matter) for a couple days. I just ran into this problem myself where I tried to run updates and got:

    "dpkg: erro: unknown group 'root' in statoverride file"

    I don't know if this is a healthy solution for the problem, but I checked Users and Groups and found that there was no "root" group. I had recently run into some problems messing around with users and groups and had to edit a couple files as root to get myself access to everything as my personal login again. So I wonder if maybe I screwed up the root group or it got wiped or something while I was tinkering with stuff. I'm not really sure but a friend of mine said there should be a root group on the system. So since there wasn't, I created the group named "root" (didn't add any users as members) and ran updates again and everything updated fine.

    Hope that helps and doesn't break anything further. If somebody with more experienced could comment on how this might be a feasible fix and won't break anything further, it would be nice =) But everything seems to be working ok for me now that I did that.

  4. #4
    Join Date
    Jan 2007
    Beans
    62

    Re: can't apt-get or install dpkg packag dpkg: syntax error: unknown group `root' in

    Quote Originally Posted by Jussi Kukkonen View Post
    You of course shouldn't have to do this at all, but... You can use dpkg-statoverride program to edit the file, see man dpkg-statusoverride. Maybe something like:
    Code:
    dpkg-statoverride --remove /var/run/hplip
    Thanks that worked out.

  5. #5
    Join Date
    Jan 2007
    Beans
    62

    Re: can't apt-get or install dpkg packag dpkg: syntax error: unknown group `root' in

    So I guess that didn't work out so well, now I have this error when I try and install or uninstall something.

    hplip: subprocess post-installation script returned error exit status 2

    So probably want to recreate the hplip?

  6. #6
    Join Date
    Oct 2007
    Beans
    3

    Re: can't apt-get or install dpkg packag dpkg: syntax error: unknown group `root' in

    Thanks man, That completely solved my problem, too.

    Edit:
    Oh wait, actually i have the same problem as Sonicgoo.
    Last edited by TechnoBabble4444; October 14th, 2007 at 07:04 AM.

  7. #7
    Join Date
    Sep 2009
    Beans
    1

    Re: can't apt-get or install dpkg packag dpkg: syntax error: unknown group `root' in

    I had something smilar:
    # apt-get install ddclient
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
    libio-socket-ssl-perl libnet-libidn-perl libnet-ssleay-perl
    The following NEW packages will be installed:
    ddclient libio-socket-ssl-perl libnet-libidn-perl libnet-ssleay-perl
    0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0B/343kB of archives.
    After this operation, 1528kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Preconfiguring packages ...
    dpkg: unrecoverable fatal error, aborting:
    syntax error: unknown group `mlocate' in statoverride file
    E: Sub-process /usr/bin/dpkg returned an error code (2)
    I have fixed this problem.

    The problem was related to the contents of /etc/group.

    I had been running my server a very long time and needed to rebuild it. I wanted to keep the groups from my old server installation on the new one as I have some external drives attached that are ext2/3 that have permissions stored that are in groups.

    I orinally saved /etc/group as /etc/group.default and then copied the group file from my old installation.

    After reaching this problem and reading this forum post I noticed the error here states "unknown group `root`, where mine said `mlocate`. When did this:
    # cat /etc/group.default |grep mloc
    mlocate : x : 106 :
    (I had to put spaces in above to stop text being converted to a smiley)
    it was clear that I needed to put this 'mlocate' group back onto the system.

    To fix it I did:

    1. `cat /etc/group`
    2. selected the groups I wanted to preserve for the new installation and copied those lins to the clipboard (user created groups are usually >1000
    3. `cp /etc/group.default /etc/group`
    4. `nano /etc/group`
    5. pasted the lines into the bottom of the file and saved the new /etc/group
    6. ran apt-get again and it's working again

    Hopefully that helps someone.

    -studotwho.
    Last edited by studotwho; September 29th, 2009 at 01:32 PM. Reason: Some text incorrectly parsed as a smiley

  8. #8
    Join Date
    Sep 2011
    Beans
    1

    Re: can't apt-get or install dpkg packag dpkg: syntax error: unknown group `root' in

    I am getting a similar problem but not quite the same. I cannot seem to install any packages via apt-get. All of them fail with the same error. Is this problem known and is there a way to build the package database again?


    sudo apt-get install scons
    Password:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
    scons
    0 upgraded, 1 newly installed, 0 to remove and 364 not upgraded.
    Need to get 0B/591kB of archives.
    After this operation, 2,519kB of additional disk space will be used.
    dpkg: unrecoverable fatal error, aborting:
    syntax error in statoverride file
    E: Sub-process /usr/bin/dpkg returned an error code (2)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •