![光标包不会被删除](https://linux22.com/image/77237/%E5%85%89%E6%A0%87%E5%8C%85%E4%B8%8D%E4%BC%9A%E8%A2%AB%E5%88%A0%E9%99%A4.png)
我正在运行 Linux Mint 17.2 Cinnamon。我疯狂地添加了 PPA(我知道……我知道)并下载了一堆主题、图标和光标。问题是我下载的众多软件包之一不知何故损坏了!包裹mbuntu-y-icons-v4
来自ppa:noobslab/themes
.
当我这样做时,它是这样说的sudo apt-get install mbuntu-y-icons-v4
:
Reading package lists... Done
Building dependency tree
Reading state information... Done
mbuntu-y-icons-v4 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 12.3 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ppa.launchpad.net/noobslab/themes/ubuntu/ trusty/main mbuntu-y-icons-v4 all 3.12.2~trusty~NoobsLab.com [12.3 MB]
Fetched 12.3 MB in 35s (347 kB/s)
dpkg: error processing package mbuntu-y-icons-v4 (--configure):
package mbuntu-y-icons-v4 is not ready for configuration
cannot configure (current status `half-installed')
Errors were encountered while processing:
mbuntu-y-icons-v4
E: Sub-process /usr/bin/dpkg returned an error code (1)
使用sudo apt-get remove
orclean
或autoremove
orsudo apt-get install -f
对解决问题没有任何作用。
当我这样做时,它是这样说的sudo dpkg --remove --force-remove-reinstreq mbuntu-y-icons-v4
:
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
dpkg: warning: files list file for package 'totem-mozilla' missing; assuming package has no files currently installed
(Reading database ... 2508592 files and directories currently installed.)
Removing mbuntu-y-icons-v4 (3.12.2~trusty~NoobsLab.com) ...
update-alternatives: warning: forcing reinstallation of alternative (null) because link group x-cursor-theme is broken
update-alternatives: using /usr/share/icons/DMZ-White/cursor.theme to provide /etc/alternatives/x-cursor-theme (x-cursor-theme) in auto mode
update-alternatives: error: unable to install `/etc/alternatives/x-cursor-theme.dpkg-tmp' as `/etc/alternatives/x-cursor-theme': No such file or directory
dpkg: error processing package mbuntu-y-icons-v4 (--remove):
subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
mbuntu-y-icons-v4
正如您所看到的,问题之一是底部显然x-cursor-theme
已/etc/alternatives
损坏。然后我查找了如何解决这个问题,所以我执行了以下操作:
sudo rm -i /etc/alternatives/x-cursor-theme
sudo ln -sf /usr/share/icons/DMZ-White/cursor.theme /etc/alternatives/x-cursor-theme
CURSOR=DMZ-White
gsettings set org.gnome.desktop.interface cursor-theme "$CURSOR"
sudo update-alternatives --set x-cursor-theme /usr/share/icons/$CURSOR/cursor.theme
最后一行给出了以下结果:
update-alternatives: warning: forcing reinstallation of alternative /usr/share/icons/DMZ-White/cursor.theme because link group x-cursor-theme is broken
update-alternatives: error: unable to install `/etc/alternatives/x-cursor-theme.dpkg-tmp' as `/etc/alternatives/x-cursor-theme': No such file or directory
我只是想摆脱那个愚蠢的mbuntu-y-icons-v4
包并让我的光标再次正常工作(它根据它悬停的程序而变化)。我花了5个小时!请帮忙。