运行apt-get upgrade 和 apt-get dist-upgrade 时遇到下面的错误:
dpkg: error processing /var/cache/apt/archives/debianutils_2.22.1_i386.deb (--unpack):
trying to overwrite '/usr/sbin/add-shell', which is also in package passwd
经过Google发现原来是一个文件出现在两个deb包中,运行下面的命令可解决:
dpkg --force overwrite -i /var/cache/apt/archives/debianutils_2.22.1_i386.deb
阅读(945) | 评论(0) | 转发(0) |