Não é possível remover qtspim do Ubuntu 14.04 LTS

5

Eu recentemente tentei instalar o spim (mips compilador) na minha máquina e não funcionou. Agora eu estou tentando remover a coisa toda, mas eu simplesmente não posso fazer isso e a pior parte é que toda vez que tento instalar um novo pacote completamente diferente, recebo o mesmo erro. Estou realmente enlouquecendo por ter quebrado minha máquina (embora ainda funcione). Aqui está o que eu fiz inicialmente:

sudo apt-get install spim
sudo apt-get install qt-sdk

Depois baixei o arquivo .deb do link a seguir e copiei as pastas na minha pasta usr. Eu também executei o arquivo debian a partir do terminal usando o comando dpkg.

link

Eu tentei remover o qt-sdk usando o seguinte:

sudo apt-get remove qt-sdk

O erro abaixo foi dado quando tentei remover o qt-sdk, mas o sitll aparece toda vez que tento instalar qualquer outro pacote ou remover o próprio spim:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  account-plugin-twitter account-plugin-windows-live appmenu-qt appmenu-qt5
  apturl-common ax25-node bamfdaemon cmake cmake-data consolekit
  dbconfig-common default-jdk docbook-xml docbook-xsl evolution-common friends
  friends-dispatcher friends-facebook friends-twitter gir1.2-accounts-1.0
  gir1.2-ebook-1.2 gir1.2-ebookcontacts-1.2 gir1.2-edataserver-1.2
  gir1.2-messagingmenu-1.0 gir1.2-signon-1.0 gnome-calculator
  gnome-system-monitor guile-2.0-libs gyp icoutils indicator-appmenu kate-data
  katepart kde-l10n-engb kde-runtime kde-runtime-data kdelibs-bin
  kdelibs5-data kdelibs5-plugins kdoctools kubuntu-debug-installer
  kwalletmanager laptop-detect libaio1 libatk-bridge2.0-0:i386
  libatspi2.0-0:i386 libattica0.4 libax25 libbaloocore4 libbaloofiles4
  libbalooxapian4 libbamf3-2 libbonobo2-0 libbonobo2-common libbotan-1.10-0
  libc-ares-dev libc-ares2 libck-connector0 libcolord1:i386
  libdbusmenu-gtk3-4:i386 libdevmapper1.02.1:i386 libdlrestrictions1 libepub0
  libevent-2.0-5 libevolution libfriends0 libgc1c2 libglew1.10 libglewmx1.10
  libgtk-3-0:i386 libgtkhtml-4.0-0 libgtkhtml-4.0-common
  libgtkhtml-editor-4.0-0 libice-dev libidl-common libidl0 libjs-codemirror
  libjs-jquery-cookie libjs-jquery-event-drag libjs-jquery-metadata
  libjs-jquery-mousewheel libjs-jquery-tablesorter libjs-jquery-ui
  libjs-node-uuid libjs-underscore libkactivities-bin libkactivities-models1
  libkactivities6 libkatepartinterfaces4 libkcmutils4 libkde3support4
  libkdeclarative5 libkdecore5 libkdesu5 libkdeui5 libkdewebkit5 libkdnssd4
  libkemoticons4 libkfile4 libkhtml5 libkidletime4 libkio5 libkjsapi4
  libkjsembed4 libkmediaplayer4 libknewstuff3-4 libknotifyconfig4 libkntlm4
  libkparts4 libkpty4 libkrosscore4 libktexteditor4 libkubuntu0
  libkxmlrpcclient4 liblcms2-2:i386 libmail-spf-perl libmcrypt4
  libmetacity-private0a libmkv0 libmodemmanagerqt1 libnatpmp1 libnepomuk4
  libnepomukcleaner4 libnepomukcore4abi1 libnepomukquery4a libnepomukutils4
  libnetaddr-ip-perl libnetworkmanagerqt1 libntrack-qt4-1 libntrack0
  libnux-4.0-0 libnux-4.0-common liboath0 libopenconnect2 liborbit-2-0
  liborbit2 libpam-ck-connector libphonon-dev libphonon4 libplasma3
  libpolkit-qt-1-1 libpoppler-qt4-4 libpst4 libpython2.7:i386
  libpython2.7-minimal:i386 libpython2.7-stdlib:i386 libqapt2 libqapt2-runtime
  libqca2 libqjson0 libqmobipocket1 libqt5clucene5 libqt5declarative5
  libqt5designer5 libqt5designercomponents5 libqt5help5 libqt5quickparticles5
  libqt5quicktest5 libqt5script5 libreoffice-gtk libsm-dev libsolid4
  libsoprano4 libssl-dev libssl-doc libstreamanalyzer0 libstreams0
  libsys-hostname-long-perl libthreadweaver4 libunity-core-6.0-9
  libunity-gtk2-parser0 libunity-gtk3-parser0 libunity-misc4 libupstart1
  libv8-3.14-dev libv8-3.14.5 libvirtodbc0 libwayland-client0:i386
  libwayland-cursor0:i386 libwnck-common libwnck22 libxkbcommon0:i386
  libxt-dev libytnef0 libzip2 metacity-common mysql-server-core-5.5
  nepomuk-core-data nepomuk-core-runtime ntrack-module-libnl-0 nux-tools
  oneconf oneconf-common openbsd-inetd openjdk-7-jdk oxygen-icon-theme phonon
  phonon-backend-gstreamer phonon-backend-gstreamer-common
  phonon-backend-gstreamer1.0 plasma-scriptengine-javascript python-debtagshw
  python-gconf python-oneconf python-piston-mini-client python3-crypto
  python3-feedparser python3-httplib2 python3-oauthlib python3-oneconf
  python3-piston-mini-client qapt-batch qmlscene qtcreator qtcreator-doc
  qtcreator-plugin-cmake qtcreator-plugin-qnx qtcreator-plugin-remotelinux
  qtcreator-plugin-valgrind qtdeclarative5-controls-plugin qtdeclarative5-dev
  qtdeclarative5-quicklayouts-plugin re2c sa-compile sgml-data
  shared-desktop-ontologies software-center-aptdaemon-plugins soprano-daemon
  spamassassin spamc telepathy-indicator transmission-common ttf-dejavu-core
  ubuntu-extras-keyring unity-gtk-module-common unity-gtk2-module
  unity-gtk3-module unity-lens-applications unity-lens-files
  unity-lens-friends unity-lens-music unity-lens-photos unity-lens-video
  unity-scope-audacious unity-scope-calculator unity-scope-chromiumbookmarks
  unity-scope-clementine unity-scope-colourlovers unity-scope-devhelp
  unity-scope-firefoxbookmarks unity-scope-gdrive unity-scope-gmusicbrowser
  unity-scope-gourmet unity-scope-guayadeque unity-scope-home
  unity-scope-manpages unity-scope-musicstores unity-scope-musique
  unity-scope-openclipart unity-scope-texdoc unity-scope-tomboy
  unity-scope-video-remote unity-scope-yelp unity-scope-zotero
  unity-scopes-master-default unity-scopes-runner unity-services
  virtuoso-minimal virtuoso-opensource-6.1-bin virtuoso-opensource-6.1-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  qt-sdk
0 upgraded, 0 newly installed, 1 to remove and 7 not upgraded.
1 not fully installed or removed.
After this operation, 32,8 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 393716 files and directories currently installed.)
Removing qt-sdk (2ubuntu3) ...
Setting up qtspim (9.1.16) ...
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: 
Error reading collection file '/home/sabir/.local/share/QtProject/Assistant/qthelpcollection_5.5.0.qhc': Cannot load sqlite database driver..
dpkg: error processing package qtspim (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 qtspim
E: Sub-process /usr/bin/dpkg returned an error code (1)

Editar: Eu tentei a resposta de Ravan e o problema ainda persiste:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  spim*
0 upgraded, 0 newly installed, 1 to remove and 7 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 365735 files and directories currently installed.)
Removing spim (8.0+dfsg-6) ...
Purging configuration files for spim (8.0+dfsg-6) ...
Setting up qtspim (9.1.16) ...
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: 
Error reading collection file '/home/sabir/.local/share/QtProject/Assistant/qthelpcollection_5.5.0.qhc': Cannot load sqlite database driver..
dpkg: error processing package qtspim (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 qtspim

Editar 2: política do apt-cache

spim:
  Installed: (none)
  Candidate: 8.0+dfsg-6
  Version table:
     8.0+dfsg-6 0
        500 http://za.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
     8.0+dfsg-5.1 0
        500 http://old-releases.ubuntu.com/ubuntu/ raring/universe amd64 Packages

Editar 3: política do apt-cache qt-sdk

qt-sdk:
  Installed: (none)
  Candidate: 2ubuntu3
  Version table:
     2ubuntu3 0
        500 http://za.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        500 http://old-releases.ubuntu.com/ubuntu/ raring/universe amd64 Packages
    
por nTuply 08.09.2015 / 16:45

2 respostas

1

O pacote qtspim não foi instalado com sucesso. Enquanto o pacote estiver listado como um pacote defeituoso, você não poderá fazer nada.

Portanto, remova-o via

sudo apt-get purge qtspim

Depois disso

sudo apt-get remove qt-sdk

E você deve começar um

sudo apt-get autoremove

porque você tem muitos pacotes desnecessários instalados. ;)

    
por A.B. 08.09.2015 / 17:59
1

Tente instalar o driver sqlite com:

sudo apt-get install libqt5sql5-sqlite

Em seguida, execute novamente o comando:

sudo apt-get remove qt-sdk

Se não funcionar, provavelmente é devido à sua versão do Qt, como posso ver no 5.5 os registros de erro:

/home/sabir/.local/share/QtProject/Assistant/qthelpcollection_5.5.0.qhc

Tente renomear este arquivo:

mv /home/sabir/.local/share/QtProject/Assistant/qthelpcollection_5.5.0.qhc /home/sabir/.local/share/QtProject/Assistant/qthelpcollection_5.5.0.qhc.bak

E novamente execute novamente o comando apt-get remove.

    
por Sylvain Pineau 08.09.2015 / 17:39