卸載 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_20.0.4-1.deb軟體包再次安裝 CrossOver,然後再次刪除它。

相關內容