今天我尝试更新集群节点上的 Linux。apt-get upgrade
以 root 身份运行后,出现以下错误:
Setting up passwd (1:4.1.5.1-1ubuntu9.2) ...
groupadd: GID '42' already exists
Group ID 42 has been allocated for the shadow group. You have either
used 42 yourself or created a shadow group with a different ID.
Please correct this problem and reconfigure with dpkg --configure passwd''.
Note that both user and group IDs in the range 0-99 are globally
allocated by the Debian project and must be the same on every Debian
system.
dpkg: error processing package passwd (--configure):
subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
当我输入时less /etc/group
,我注意到 gdm 列出的是 42 ID。
我必须提到,我的集群有点特殊。因为我不允许接触主节点,所以我在主节点上安装了旧版本的 Scientific Linux,在节点上安装了 ubuntu 14.04。当我们添加新用户时,我只需从主节点复制group
、passwd
和shadow
到我的节点上。到目前为止,这都没问题,但现在我想知道我搞砸了什么导致出现此错误。不幸的是,我忘记备份group
、passwd
和shadow
文件了。