/var/cache/apt/archives/base-files_10.1ubuntu2.2_amd64.deb 尝试更新软件包时遇到错误

mca*_*dio 3 updates

我尝试了多种方法来使其正常工作,但它不起作用:

我正在运行sudo apt-get upgrade并收到以下错误:

Preparing to unpack .../base-files_10.1ubuntu2.2_amd64.deb ...
Unpacking base-files (10.1ubuntu2.2) over (9.4ubuntu4.13) ...
dpkg: error processing archive /var/cache/apt/archives/base-files_10.1ubuntu2.2_amd64.deb (--unpack):
 trying to overwrite '/etc/default/motd-news', which is also in package motd-news-config 9.4ubuntu4.13
Errors were encountered while processing:
 /var/cache/apt/archives/base-files_10.1ubuntu2.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)

我怎样才能解决这个问题?

N0r*_*ert 8

然后强制安装基本文件

sudo dpkg -i --force-all /var/cache/apt/archives/base-files_10.1ubuntu2.2_amd64.deb
Run Code Online (Sandbox Code Playgroud)

并通过以下方式恢复升级

sudo apt-get install -f
sudo apt-get dist-upgrade
Run Code Online (Sandbox Code Playgroud)