Ubuntu 20.04 LTS中ubuntu-advantage-tools与ubuntu-pro-client依赖冲突导致更新失败的求助
Ubuntu 20.04 LTS中ubuntu-advantage-tools与ubuntu-pro-client依赖冲突导致更新失败的求助
大家好,我在Ubuntu 20.04 LTS上不小心点了软件更新器里的推广按钮,导致ubuntu-pro安装失败,现在尝试修复这个问题时,遇到了ubuntu-advantage-tools和ubuntu-pro-client之间的依赖冲突。我试过用aptitude处理,但它跑了几个小时后就卡住了,有没有人遇到过同样的问题,有没有简单可行的解决办法?
执行sudo apt-get upgrade时的错误输出:
~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: ubuntu-advantage-tools : Depends: ubuntu-pro-client (>= 31.2~20.04) but it is not installed ubuntu-pro-client-l10n : Depends: ubuntu-pro-client (= 31.2~20.04) but it is not installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
接着执行sudo apt --fix-broken install的错误输出:
$ sudo apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: ubuntu-pro-client The following NEW packages will be installed: ubuntu-pro-client 0 upgraded, 1 newly installed, 0 to remove and 55 not upgraded. 2 not fully installed or removed. Need to get 0 B/196 kB of archives. After this operation, 1,116 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 413409 files and directories currently installed.) Preparing to unpack .../ubuntu-pro-client_31.2~20.04_amd64.deb ... Unpacking ubuntu-pro-client (31.2~20.04) ... dpkg: error processing archive /var/cache/apt/archives/ubuntu-pro-client_31.2~20.04_amd64.deb (--unpack): trying to overwrite '/etc/apt/apt.conf.d/20apt-esm-hook.conf', which is also in package ubuntu-advantage-tools 31.2~20.04 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/ubuntu-pro-client_31.2~20.04_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
编辑补充:我试过网上建议的卸载ubuntu-advantage-tools的方法,但这个包没法直接移除,报错如下:
dpkg: error processing package ubuntu-advantage-tools (--purge): dependency problems - not removing Errors were encountered while processing: ubuntu-advantage-tools
备注:内容来源于stack exchange,提问作者Toby B
相关产品推荐
相关产品推荐

