Estou executando o Linux Mint 17.2 Cinnamon. Eu fui em um add-over de PPA (eu sei ... eu sei) e baixei um monte de temas, ícones e cursores. Problema é um dos muitos pacotes que eu baixei está quebrado de alguma forma! O pacote é mbuntu-y-icons-v4
de ppa:noobslab/themes
.
Veja o que ele diz quando eu faço 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)
Usar sudo apt-get remove
ou clean
ou autoremove
ou sudo apt-get install -f
não faz nada em termos de solução do problema.
Veja o que ele diz quando eu faço 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
Como você pode ver, um dos problemas é que aparentemente o x-cursor-theme
sob /etc/alternatives
está quebrado. Então eu procurei como resolver isso, então fiz o seguinte:
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
A última linha me dá o seguinte resultado:
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
Eu só quero me livrar desse pacote estúpido de mbuntu-y-icons-v4
e fazer meu cursor funcionar normalmente de novo (ele muda dependendo do programa em que ele passa). Eu passei 5 horas nisso! Por favor ajude.
Tags package-management cursor