意外删除了 /usr/share/icons/DMZ-White

意外删除了 /usr/share/icons/DMZ-White

现在我丢失了 dmz 光标,并且总是在以下情况下收到以下错误:sudo apt upgrade

Setting up dmz-cursor-theme (0.4.5ubuntu1) ...
update-alternatives: error: alternative path /usr/share/icons/DMZ-White/cursor.theme doesn't exist
dpkg: error processing package dmz-cursor-theme (--configure):
 installed dmz-cursor-theme package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 dmz-cursor-theme
E: Sub-process /usr/bin/dpkg returned an error code (1)

我该如何恢复此文件?我已经尝试过,sudo apt install --reinstall dmz-cursor-theme但只收到错误

E: Internal Error, No file name for dmz-cursor-theme:amd64

答案1

您必须使用以下命令手动重新创建文件路径:

sudo mkdir -p /usr/share/icons/DMZ-White/

然后运行重新安装:

sudo apt-get install --reinstall dmz-cursor-theme

或者如果继续失败 - 直接从缓存中安装其包:

sudo dpkg -i --force-all /var/cache/apt/archives/dmz-cursor-theme*.deb

相关内容