Executar
sudo apt-get install --reinstall unity-tweak-tool
conforme recomendado pela mensagem de erro. Você provavelmente apagou alguns dos arquivos manualmente e quebrou o pacote.
quando eu executo o apt-get install, o apt-get upgrade, o apt-get -f install, ele sempre retorna isto:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
Need to get 0 B/333 kB of archives.
After this operation, 0 B of additional disk space will be used.
dpkg: error processing package unity-tweak-tool (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Errors were encountered while processing:
unity-tweak-tool
O que há de errado? Eu tento todos os comandos como apt-get remover, limpar, limpar e não há nenhum efeito e ainda retornar erro.
[EDIT] Eu tento reinstalar a ferramenta de ajuste de unidade, mas ela retorna:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
Need to get 0 B/333 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 216695 files and directories currently installed.)
Preparing to unpack .../unity-tweak-tool_0.0.6ubuntu1_all.deb ...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
Aborted (core dumped)
dpkg: warning: subprocess old pre-removal script returned error exit status 134
dpkg: trying script from the new package instead ...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
Aborted (core dumped)
dpkg: error processing archive /var/cache/apt/archives/unity-tweak-tool_0.0.6ubuntu1_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 134
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
Aborted (core dumped)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 134
Errors were encountered while processing:
/var/cache/apt/archives/unity-tweak-tool_0.0.6ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Executar
sudo apt-get install --reinstall unity-tweak-tool
conforme recomendado pela mensagem de erro. Você provavelmente apagou alguns dos arquivos manualmente e quebrou o pacote.
você pode tentar isso:
sudo apt-get purge unity-tweak-tool
sudo -i
sudo apt-get update --fix-missing
sudo apt-get upgrade
e pode funcionar bem assim.