我的dpkg
包坏了,所以无法升级。运行sudo dpkg --configure -a
产生:
ben@Friday:~$ sudo dpkg --configure -a
Setting up pop-default-settings (4.0.6~1611854075~20.04~6a2277e) ...
Leaving 'diversion of /etc/gdm3/custom.conf to /etc/gdm3/custom.conf.diverted by pop-default-settings'
Leaving 'diversion of /etc/issue to /etc/issue.diverted by pop-default-settings'
Leaving 'diversion of /etc/issue.net to /etc/issue.net.diverted by pop-default-settings'
Leaving 'diversion of /etc/legal to /etc/legal.diverted by pop-default-settings'
Leaving 'diversion of /etc/update-motd.d/10-help-text to /etc/update-motd.d/10-help-text.diverted by pop-default-settings'
Leaving 'diversion of /etc/update-motd.d/50-motd-news to /etc/update-motd.d/50-motd-news.diverted by pop-default-settings'
Leaving 'diversion of /etc/lsb-release to /etc/lsb-release.diverted by pop-default-settings'
Leaving 'diversion of /etc/os-release to /etc/os-release.diverted by pop-default-settings'
dpkg-divert: error: 'diversion of /usr/lib/os-release to /usr/lib/os-release.diverted by pop-default-settings' clashes with 'diversion of /usr/lib/os-release to /usr/lib/os-release.oem-release by oem-release'
dpkg: error processing package pop-default-settings (--configure):
installed pop-default-settings package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of pop-desktop:
pop-desktop depends on pop-default-settings; however:
Package pop-default-settings is not configured yet.
dpkg: error processing package pop-desktop (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
pop-default-settings
pop-desktop
我担心pop-default-settings
这oem-release
两个都是核心系统包试图转移同一个文件。 (我不太使用 dpkg,所以我犹豫是否要删除其中一个转移。)我已经四处搜索,但没有找到针对此错误的良好结果。对于如何解决这个问题有什么建议吗?我应该删除转移吗?哪一个?