安装 crossvc 时出现损坏的软件包错误

安装 crossvc 时出现损坏的软件包错误

我有 Ubuntu 14.04 LTS。尝试安装时crossvc,出现损坏软件包错误。

我尝试寻找解决方案并尝试了不同帖子中建议的所有步骤。但没有成功。

  • 日志sudo apt-get install crossvc

    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     crossvc : Depends: libqt3-mt (>= 3:3.3.8-b) but it is not installable
    E: Unable to correct problems, you have held broken packages.
    
  • 日志sudo aptitude install crossvc

    The following NEW packages will be installed:
      crossvc{b} libfam0{a} 
    0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
    Need to get 1300 kB of archives. After unpacking 4048 kB will be used.
    The following packages have unmet dependencies:
     crossvc : Depends: libqt3-mt (>= 3:3.3.8-b) which is a virtual package.
    The following actions will resolve these dependencies:
    
         Keep the following packages at their current version:
    1)     crossvc [Not Installed]                            
    
    
    
    Accept this solution? [Y/n/q/?] n
    
    *** No more solutions available ***
    
    The following actions will resolve these dependencies:
    
         Keep the following packages at their current version:
    1)     crossvc [Not Installed]                            
    
    
    
    Accept this solution? [Y/n/q/?] 
    
  • 使用 Ubuntu 软件中心安装时的日志

    Package dependencies cannot be resolved
    
    This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.
    
    Details:
    The following packages have unmet dependencies:
    
    crossvc: Depends: libc6 (>= 2.4) but 2.19-0ubuntu6 is to be installed
             Depends: libgcc1 (>= 1:4.1.1) but 1:4.9-20140406-0ubuntu1 is to be installed
             Depends: libqt3-mt (>= 3:3.3.8-b) but it is not going to be installed
             Depends: libstdc++6 (>= 4.2.1) but 4.8.2-19ubuntu1 is to be installed
    
  • 已尝试其他选项

    我甚至尝试按照以下方法解决损坏的包裹[来自不同的帖子],但没有成功。

    sudo dpkg --configure -a
    sudo apt-get clean && sudo apt-get update
    dpkg --get-selections | grep hold [ no package listed ]
    

答案1

libqt3-mt是旧的 Qt3 弃用库,支持 Qt4。它仅在 Lucid 和 Precise 存储库中可用:

http://packages.ubuntu.com/search?keywords=libqt3-mt

  1. 从以下位置下载 Precise 包(选择镜像):

    http://packages.ubuntu.com/precise/libqt3-mt

    例如,64 位:

    wget http://de.archive.ubuntu.com/ubuntu/pool/main/q/qt-x11-free/libqt3-mt_3.3.8-b-8ubuntu3_amd64.deb
    

    32位:

    wget http://de.archive.ubuntu.com/ubuntu/pool/main/q/qt-x11-free/libqt3-mt_3.3.8-b-8ubuntu3_i386.deb
    
  2. 安装它,64位::

    sudo dpkg -i libqt3-mt_3.3.8-b-8ubuntu3_amd64.deb
    

    32位:

    sudo dpkg -i libqt3-mt_3.3.8-b-8ubuntu3_i386.deb
    

再次尝试使用 crossvc。它应该可以工作,因为我已经在 Ubuntu 14.04 中测试过了。

仍然缺少一些依赖项,使用搜索http://packages.ubuntu.com/

答案2

// 在 32 位上安装

$ wget http://security.ubuntu.com/ubuntu/pool/multiverse/c/crossvc/crossvc_1.5.2-2_i386.deb
$ sudo dpkg -i crossvc_1.5.2-2_i386.deb

// 64 位

$ wget http://security.ubuntu.com/ubuntu/pool/multiverse/c/crossvc/crossvc_1.5.2-2_amd64.deb
$ sudo dpkg -i crossvc_1.5.2-2_amd64.deb

// 如果这对你不起作用你应该等待它的下一个版本

这不是 apt 的问题,而是存储库问题

相关内容