运行命令时出现以下错误sudo apt upgrade
:
dpkg: error processing archive /var/cache/apt/archives/wireless-regdb_2018.05.09-0ubuntu1~16.04.1_all.deb (--unpack):
trying to overwrite '/lib/crda/pubkeys/sforshee.key.pub.pem', which is also in package crda 3.18-0ubuntu1
Errors were encountered while processing:
/var/cache/apt/archives/wireless-regdb_2018.05.09-0ubuntu1~16.04.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
你有两种方法:
1)干净的方法是删除冲突的包:
sudo apt remove crda
sudo apt upgrade
2)不干净的方法是强制覆盖:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/wireless-regdb_2018.05.09-0ubuntu1~16.04.1_all.deb
sudo apt upgrade
如果有帮助的话点个赞https://askubuntu.com/a/176132/486734和https://askubuntu.com/a/433510/486734,一旦你有了足够的声誉。