无法从 Ubuntu 14.04 LTS 中删除 qtspim

无法从 Ubuntu 14.04 LTS 中删除 qtspim

我最近尝试在我的计算机上安装 spim(mips 编译器),但没有成功。现在我试图删除整个东西,但我根本无法做到,更糟糕的是,每次我尝试安装一个完全不同的新包时,我都会得到相同的错误。我真的很担心我的机器坏了(虽然它还能用)。这是我最初做的事情:

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

然后我从以下链接下载了 .deb 文件并将文件夹复制到我的 usr 文件夹中。我还使用 dpkg 命令从终端运行了 debian 文件。

http://sourceforge.net/projects/spimsimulator/files/

我尝试使用以下命令删除 qt-sdk:

sudo apt-get remove qt-sdk

当我尝试删除 qt-sdk 时出现了下面的错误,但每次我尝试安装任何其他软件包或删除 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)

编辑:我尝试了 Ravan 的答案,但问题仍然存在:

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

编辑 2: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

编辑 3: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

答案1

软件包qtspim安装失败。只要该软件包被列为有缺陷的软件包,您就无能为力。

因此通过以下方式删除它

sudo apt-get purge qtspim

在那之后

sudo apt-get remove qt-sdk

你应该开始

sudo apt-get autoremove

因为您安装了很多不必要的包。;)

答案2

尝试使用以下命令安装 sqlite 驱动程序:

sudo apt-get install libqt5sql5-sqlite

然后再次运行命令:

sudo apt-get remove qt-sdk

如果它不起作用,则可能是由于您的 Qt 版本,因为我可以在错误日志中看到 5.5:

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

尝试重命名此文件:

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

然后再次重新运行 apt-get remove 命令。

相关内容