ubuntu 无法升级

ubuntu 无法升级

我输入

sudo apt-get upgrade

我得到了这个

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  bind9-host dnsutils google-chrome-stable libbind9-161 libdns-export1104
  libdns1104 libirs161 libisc-export1100 libisc1100 libisccc161 libisccfg163
  liblwres161 python3-distupgrade ubuntu-release-upgrader-core
  ubuntu-release-upgrader-gtk
15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/61.1 MB of archives.
After this operation, 1,769 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
dpkg: unrecoverable fatal error, aborting:
 unknown system group 'smmsp' in statoverride file; the system group got removed
before the override, which is most probably a packaging bug, to recover you
can remove the override manually with dpkg-statoverride
E: Sub-process /usr/bin/dpkg returned an error code (2)

有人可以解释一下这个问题吗?

答案1

我得到了答案http://rickfoosusa.blogspot.com/2012/04/howto-ubuntu-unknown-user-in.html

当我输入

$ grep 'smmsp' /var/lib/dpkg/statoverride

我懂了

root smmsp 2755 /usr/lib/sm.bin/sendmail

所以我使用sed如下方法删除了它

$ sudo sed -i '/smmsp/d' /var/lib/dpkg/statoverride

现在$ sudo apt-get upgrade运行完美。

相关内容