安装 Armory 和比特币 PPA 后无法解决缺少的 qt4 依赖项

安装 Armory 和比特币 PPA 后无法解决缺少的 qt4 依赖项

我决定通过 Armory 制作一个钱包,这样我就可以将比特币转移到冷库,所以我去安装了 Armory。

现在,Armory 安装一切顺利,然后要求我安装 PPA,我按照安装程序操作。然后我收到一个错误。

我之前说过,需要基于 qt4 的程序以及用于 armory 的 python-qt4 依赖项。现在我尝试通过以下方法解决它们:

sudo apt-get check

这是我得到的:

lipovi@lipovi:~$ sudo apt-get check
[sudo] password for lipovi: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:

libqt4-designer : Depends: libqt4-script (= 4:4.8.1-0ubuntu4.4) but 4:4.8.1-0ubuntu4.6 is installed
Depends: libqt4-xml (= 4:4.8.1-0ubuntu4.4) but 4:4.8.1-0ubuntu4.6 is installed
Depends: libqtcore4 (= 4:4.8.1-0ubuntu4.4) but 4:4.8.1-0ubuntu4.6 is installed
Depends: libqtgui4 (= 4:4.8.1-0ubuntu4.4) but 4:4.8.1-0ubuntu4.6 is installed

libqt4-dev : Depends: libqt4-designer (= 4:4.8.1-0ubuntu4.6) but 4:4.8.1-0ubuntu4.4 is installed
Depends: libqt4-help (= 4:4.8.1-0ubuntu4.6) but 4:4.8.1-0ubuntu4.4 is installed
Depends: libqt4-scripttools (= 4:4.8.1-0ubuntu4.6) but 4:4.8.1-0ubuntu4.4 is installed
Depends: libqt4-test (= 4:4.8.1-0ubuntu4.6) but 4:4.8.1-0ubuntu4.4 is installed

libqt4-help : Depends: libqt4-network (= 4:4.8.1-0ubuntu4.4) but 4:4.8.1-0ubuntu4.6 is     installed
Depends: libqt4-sql (= 4:4.8.1-0ubuntu4.4) but 4:4.8.1-0ubuntu4.6 is installed
Depends: libqtcore4 (= 4:4.8.1-0ubuntu4.4) but 4:4.8.1-0ubuntu4.6 is installed
Depends: libqtgui4 (= 4:4.8.1-0ubuntu4.4) but 4:4.8.1-0ubuntu4.6 is installed

libqt4-qt3support : Depends: libqt4-designer (= 4:4.8.1-0ubuntu4.6) but     4:4.8.1-0ubuntu4.4 is installed

libqt4-scripttools : Depends: libqt4-script (= 4:4.8.1-0ubuntu4.4) but     4:4.8.1-0ubuntu4.6 is installed
Depends: libqtcore4 (= 4:4.8.1-0ubuntu4.4) but 4:4.8.1-0ubuntu4.6 is installed
Depends: libqtgui4 (= 4:4.8.1-0ubuntu4.4) but 4:4.8.1-0ubuntu4.6 is installed

libqt4-test : Depends: libqtcore4 (= 4:4.8.1-0ubuntu4.4) but 4:4.8.1-0ubuntu4.6 is installed
E: Unmet dependencies. Try using -f.

然后我尝试了这个:

sudo apt-get -f install

这是打印出来的内容:

lipovi@lipovi:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libqt4-designer libqt4-help libqt4-scripttools libqt4-test
The following packages will be upgraded:
  libqt4-designer libqt4-help libqt4-scripttools libqt4-test
4 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
6 not fully installed or removed.
Need to get 0 B/4,155 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of libqt4-designer:
 libqt4-designer depends on libqt4-script (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqt4-script on system is 4:4.8.1-0ubuntu4.6.
 libqt4-designer depends on libqt4-xml (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqt4-xml on system is 4:4.8.1-0ubuntu4.6.
 libqt4-designer depends on libqtcore4 (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqtcore4 on system is 4:4.8.1-0ubuntu4.6.
 libqt4-designer depends on libqtgui4 (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqtgui4 on system is 4:4.8.1-0ubuntu4.6.
dpkg: error processing libqt4-designer (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-help:
 libqt4-help depends on libqt4-network (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqt4-network on system is 4:4.8.1-0ubuntu4.6.
 libqt4-help depends on libqt4-sql (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqt4-sql on system is 4:4.8.1-0ubuntu4.6.
 libqt4-help depends on libqtcore4 (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqtcore4 on system is 4:4.8.1-0ubuntu4.6.
 libqt4-help depends on libqtgui4 (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqtgui4 on system is 4:4.8.1-0ubuntu4.6.
dpkg: error processing libqt4-help (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-scripttools:
 libqt4-scripttools depends on libqt4-script (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqt4-script on system isNo apport report written because the error     message indicates its a followup error from a previous failure.
                                                                 No apport report     written because the error message indicates its a followup error from a     previous failure.
           No apport report written because the error message indicates its a     followup error from a previous failure.
                                     No apport report written because the error     message indicates its a followup error from a previous failure.
                                                               No apport report     written because the error message indicates its a followup error from a previous failure.
         No apport report written because the error message indicates its a followup     error from a previous failure.
                                    4:4.8.1-0ubuntu4.6.
 libqt4-scripttools depends on libqtcore4 (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqtcore4 on system is 4:4.8.1-0ubuntu4.6.
 libqt4-scripttools depends on libqtgui4 (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqtgui4 on system is 4:4.8.1-0ubuntu4.6.
dpkg: error processing libqt4-scripttools (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-test:
 libqt4-test depends on libqtcore4 (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqtcore4 on system is 4:4.8.1-0ubuntu4.6.
dpkg: error processing libqt4-test (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-qt4:
 python-qt4 depends on libqt4-designer (>= 4:4.8.0-1~); however:
  Package libqt4-designer is not configured yet.
 python-qt4 depends on libqt4-help (>= 4:4.8.0-1~); however:
  Package libqt4-help is not configured yet.
 python-qt4 depends on libqt4-scripttools (>= 4:4.8.0-1~); however:
  Package libqt4-scripttools is not configured yet.
 python-qt4 depends on libqt4-test (>= 4:4.8.0-1~); however:
  Package libqt4-test is not configured yet.
dpkg: error processing python-qt4 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of armory:
 armory depends on python-qt4; however:
  Package python-qt4 is not configured yet.
dpkg: error processing armory (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libqt4-designer
 libqt4-help
 libqt4-scripttools
 libqt4-test
 python-qt4
 armory
E: Sub-process /usr/bin/dpkg returned an error code (1)

执行完上一条命令后,出现如下命令:

sudo apt-get install -f

它打印的东西几乎相同。

我也尝试过:

sudo dpkg --configure -a

打印出来是这样的:

lipovi@lipovi:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of libqt4-designer:
 libqt4-designer depends on libqt4-script (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqt4-script on system is 4:4.8.1-0ubuntu4.6.
 libqt4-designer depends on libqt4-xml (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqt4-xml on system is 4:4.8.1-0ubuntu4.6.
 libqt4-designer depends on libqtcore4 (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqtcore4 on system is 4:4.8.1-0ubuntu4.6.
 libqt4-designer depends on libqtgui4 (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqtgui4 on system is 4:4.8.1-0ubuntu4.6.
dpkg: error processing libqt4-designer (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-help:
 libqt4-help depends on libqt4-network (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqt4-network on system is 4:4.8.1-0ubuntu4.6.
 libqt4-help depends on libqt4-sql (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqt4-sql on system is 4:4.8.1-0ubuntu4.6.
 libqt4-help depends on libqtcore4 (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqtcore4 on system is 4:4.8.1-0ubuntu4.6.
 libqt4-help depends on libqtgui4 (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqtgui4 on system is 4:4.8.1-0ubuntu4.6.
dpkg: error processing libqt4-help (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-scripttools:
 libqt4-scripttools depends on libqt4-script (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqt4-script on system is 4:4.8.1-0ubuntu4.6.
 libqt4-scripttools depends on libqtcore4 (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqtcore4 on system is 4:4.8.1-0ubuntu4.6.
 libqt4-scripttools depends on libqtgui4 (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqtgui4 on system is 4:4.8.1-0ubuntu4.6.
dpkg: error processing libqt4-scripttools (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-qt4:
 python-qt4 depends on libqt4-designer (>= 4:4.8.0-1~); however:
  Package libqt4-designer is not configured yet.
 python-qt4 depends on libqt4-help (>= 4:4.8.0-1~); however:
  Package libqt4-help is not configured yet.
 python-qt4 depends on libqt4-scripttools (>= 4:4.8.0-1~); however:
  Package libqt4-scripttools is not configured yet.
dpkg: error processing python-qt4 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-test:
 libqt4-test depends on libqtcore4 (= 4:4.8.1-0ubuntu4.4); however:
  Version of libqtcore4 on system is 4:4.8.1-0ubuntu4.6.
dpkg: error processing libqt4-test (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of armory:
 armory depends on python-qt4; however:
  Package python-qt4 is not configured yet.
dpkg: error processing armory (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libqt4-designer
 libqt4-help
 libqt4-scripttools
 python-qt4
 libqt4-test
 armory

无论我做什么,都无法解决这个问题。

现在,我真的很想询问是否有人遇到了这个问题,并且恰巧提供了一个解决方案,我会非常感激。

这些硬币都在我的手机上,我想尽快把它们移走。

PS:不要问他们......

答案1

在终端上尝试以下命令强制删除所有未配置的包,

sudo dpkg -P --force-all --force-remove-reinstreq libqt4-designer
sudo dpkg -P --force-all --force-remove-reinstreq libqt4-help
sudo dpkg -P --force-all --force-remove-reinstreq libqt4-scripttools
sudo dpkg -P --force-all --force-remove-reinstreq libqt4-test
sudo dpkg -P --force-all --force-remove-reinstreq python-qt4
sudo dpkg -P --force-all --force-remove-reinstreq armory

然后尝试通过以下方式安装所有软件包apt-get

sudo apt-get install libqt4-designer
sudo apt-get install libqt4-help
sudo apt-get install libqt4-scripttools
sudo apt-get install libqt4-test
sudo apt-get install python-qt4
sudo apt-get install armory

相关内容