Como faço para remover manualmente pacotes malformados?

8

Eu tentei instalar o typo3 através do gerenciador de pacotes apt-get no Ubuntu 13.10 Saucy. Durante a instalação, o pacote typo3-dummy não pôde ser configurado e permaneceu em status: meio-instalado

sudo dpkg --purge --force-all typo3-dummy 
(Reading database ... 107326
files and directories currently installed.) Removing typo3-dummy ...
apache2-maintscript-helper invoked from a modified environment. Please
hint required arguments manually dpkg: error processing typo3-dummy
(--purge):  subprocess installed post-removal script returned error
exit status 1 Processing triggers for ureadahead ... Errors were
encountered while processing:  typo3-dummy

O que mais eu poderia tentar me livrar deste pacote? Eu gostaria de evitar a instalação nova. Ty

EDITAR : usando o sudo apt-get install -f retorna a seguinte saída

ben@cloudy:/etc$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  typo3-dummy
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 484 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 107326 files and directories currently installed.)
Removing typo3-dummy ...
apache2-maintscript-helper invoked from a modified environment. Please hint requ          ired arguments manually
dpkg: error processing typo3-dummy (--remove):
 subprocess installed post-removal script returned error exit status 1
Processing triggers for ureadahead ...
No apport report written because MaxReports is reached already
                                                              Errors were encoun          tered while processing:
 typo3-dummy
E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por Ben Matheja 06.03.2014 / 11:29

2 respostas

19

Tente:

sudo vi /var/lib/dpkg/status 

remova todas as entradas sobre o pacote, salve e tente novamente.

sudo apt-get update
    
por nux 06.03.2014 / 11:31
0

Passo 1, crie um arquivo falso:

touch ~/Desktop/test.sh

Etapa 2, criar um link simbólico:

sudo ln -fs  ~/Desktop/test.sh /usr/share/mysql-common/configure-symlinks

Passo 3, execute autoremove:

sudo apt-get autoremove
    
por user400760 23.04.2015 / 11:12