现在,我丢失了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发布于 2019-11-04 22:00:43
您必须使用以下方法手动重新创建文件路径:
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*.debhttps://askubuntu.com/questions/1186259
复制相似问题