【异常】 ubuntu-advantage-tools

系统环境:ubuntu 16.04

查了好多资料都无法解决?

dpkg: ubuntu-advantage-tools: dependency problems, but removing anyway as you requested:

 ubuntu-minimal depends on ubuntu-advantage-tools.

(Reading database … 68227 files and directories currently installed.)

Removing ubuntu-advantage-tools (27.1~16.04.1) …

Traceback (most recent call last):

  File “<string>”, line 2, in <module>

ModuleNotFoundError: No module named ‘uaclient’

dpkg: error processing package ubuntu-advantage-tools (–purge):

 subprocess installed pre-removal script returned error exit status 1

Errors were encountered while processing:

 ubuntu-advantage-tools

最后解决办法;

sudo mv /var/lib/dpkg/info/ubuntu-advantage-tools.* /tmp/
sudo dpkg --force-remove-reinstreq --purge ubuntu-advantage-tools
sudo dpkg --remove --force-remove-reinstreq ubuntu-advantage-tools

转载随意~:陶醉 » 【异常】 ubuntu-advantage-tools

赞 (10)
分享到:更多 ()