卸载 Crossover 返回错误,如何修复?

卸载 Crossover 返回错误,如何修复?

在执行命令时sudo apt remove crossover返回以下错误

    Removing crossover (20.0.4-1) ...
/var/lib/dpkg/info/crossover.prerm: 47: /opt/cxoffice/bin/cxtie: not found
dpkg: error processing package crossover (--remove):
 installed crossover package pre-removal script subprocess returned error exit s
tatus 127
dpkg: too many errors, stopping
Errors were encountered while processing:
 crossover
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

然后通过以下方式重新创建丢失的文件

sudo mkdir -p /opt/cxoffice/bin/
sudo touch /opt/cxoffice/bin/cxtie
sudo chmod a+x /opt/cxoffice/bin/cxtie

然后照常删除应用程序

sudo apt remove crossover

注意:更好的方法是使用其包再次安装 CrossOver crossover_20.0.4-1.deb,然后再次将其删除。

相关内容