![我该如何修复上次更新时导致 Makerware 崩溃的依赖问题?](https://linux22.com/image/871018/%E6%88%91%E8%AF%A5%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%E4%B8%8A%E6%AC%A1%E6%9B%B4%E6%96%B0%E6%97%B6%E5%AF%BC%E8%87%B4%20Makerware%20%E5%B4%A9%E6%BA%83%E7%9A%84%E4%BE%9D%E8%B5%96%E9%97%AE%E9%A2%98%EF%BC%9F.png)
今天我更新了 Ubuntu 14.04,创客软件被删除了!我尝试安装它,然后收到他的消息:
$ sudo apt-get install makerware
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:
makerware : Depends: libqt5multimedia5 (>= 5.0.2) but it is not going to be installed
Depends: libqt5multimediawidgets5 (>= 5.0.2) but it is not going to be installed or
libqt5multimediawidgets5-gles (>= 5.0.2) but it is not installable
E: Unable to correct problems, you have held broken packages.
我尝试安装缺少的软件包并收到以下消息:
$ sudo apt-get install libqt5multimedia5
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:
libqt5multimedia5 : Depends: qtbase-abi-5-2-1
E: Unable to correct problems, you have held broken packages.
然后我尝试安装该软件包,并发现自己在这里:
$ sudo apt-get 安装 qtbase-abi-5-2-1 正在读取软件包列表...完成 构建依赖关系树 正在读取状态信息...完成 软件包 qtbase-abi-5-2-1 是由以下机构提供的虚拟包: libqt5core5a 5.2.1+dfsg-1ubuntu14.2 [非候选版本] libqt5core5a 5.2.1+dfsg-1ubuntu14 [非候选版本] E: 软件包‘qtbase-abi-5-2-1’没有安装候选项
$ sudo apt-get 安装 libqt5core5a 正在读取软件包列表...完成 构建依赖关系树 正在读取状态信息...完成 libqt5core5a 已经是最新版本。
该软件包libqt5core5a
已经安装,所以我陷入困境。
答案1
我安装了 aptitude 并得到了以下建议的解决方案:
$ sudo aptitude 安装makerware 将会安装以下新软件包: avrdude{a} 传送带{a} 传送带通用{a} 传送带用户界面{a} libarmadillo4{a} libarpack2{一} libboost-program-options1.54.0{一} libcoin80{一} libdap11{一} libdapclient3{一个} libdigitizer{一个} libepsilon1{一个} libfreexl1{一个} libftdi1{一个} libgdal1h{一个} libgeos-3.4.2{一个} libgeos-c1{一个} libgraphicsmagick3{一个} libhdf4-0-alt{一个} libhdf5-7{一个} libjsoncpp0{一个} libkml0{一个} libmbqtutils{一个} libmysqlclient18{一个} libnetcdfc7{一个} libogdi3.2{一个} libopenmesh-3.2{一个} libopenscenegraph99{一个} libopenthreads14{一个} libpq5{一个} libproj0{一个} libqt5multimedia5{ab} libqt5multimediawidgets5{a} libspatialite5{a} libthing{一个} libtinything{一个} libtoolpathviz{一个} liburiparser1{一个} libxerces-c3.1{a} libxine2{a} libxine2-bin{a} libxine2-doc{a} libxine2-ffmpeg{一个} libxine2-misc-plugins{一个} libxine2-plugins{一个} makerbot-driver{a} makerware mb-libjsonrpc{a} mb-libopencv2.4{a} mb-libstdc++6{a} mb-libvtk5.10{a} mb-pyserial{a} miracle-grue{a} mysql-common{a} proj-bin{a} proj-data{a} 升级了 0 个软件包,新安装了 56 个,删除了 0 个,并且未升级 0 个。 需要获取 206 MB/206 MB 的档案。解压后将使用 340 MB。 以下软件包具有未满足的依赖关系: libqt5multimedia5:依赖:qtbase-abi-5-2-1,它是一个虚拟包。 以下操作将解决这些依赖关系: 保留以下软件包的当前版本: 1)libqt5multimedia5 [未安装] 2)libqt5multimediawidgets5 [未安装] 3)makerware [未安装] 接受这个解决方案吗?[Y/n/q/?] n 以下操作将解决这些依赖关系: 删除以下软件包: 1)libqt5help5 2)libqt5xmlpatterns5 3)musescore 4)qml-模块-qtquick-localstorage 5) qml-模块-qtquick-window2 6)qml-模块-qtquick2 7)qml-模块-qtwebkit 安装以下软件包: 8)libqt5positioning5 [5.2.1-1ubuntu2(现可信赖)] 9)libqt5sensors5 [5.2.1+dfsg-2ubuntu2(现可信赖)] 降级以下软件包: 10) libqt5clucene5 [5.3.0-5~trusty1 (现在,trusty) -> 5.2.1-8build1 (trusty)] 11) libqt5core5a [5.3.0+dfsg-2ubuntu9~trusty1 (现在为 trusty) -> 5.2.1+dfsg-1u 12) libqt5dbus5 [5.3.0+dfsg-2ubuntu9~trusty1 (现在为 trusty) -> 5.2.1+dfsg-1ub 13) libqt5gui5 [5.3.0+dfsg-2ubuntu9~trusty1 (现在为 trusty) -> 5.2.1+dfsg-1ubu 14) libqt5network5 [5.3.0+dfsg-2ubuntu9~trusty1 (现在为 trusty) -> 5.2.1+dfsg- 15) libqt5opengl5 [5.3.0+dfsg-2ubuntu9~trusty1 (现在,trusty) -> 5.2.1+dfsg-1 16) libqt5printsupport5 [5.3.0+dfsg-2ubuntu9~trusty1 (现在为 trusty) -> 5.2.1+ 17) libqt5qml5 [5.3.0-3ubuntu13~trusty1 (现在,trusty) -> 5.2.1-3ubuntu15.1 ( 18) libqt5quick5 [5.3.0-3ubuntu13~trusty1 (现在,trusty) -> 5.2.1-3ubuntu15.1 19)libqt5sql5 [5.3.0+dfsg-2ubuntu9~trusty1(现在为trusty)-> 5.2.1+dfsg-1ubu 20) libqt5sql5-sqlite [5.3.0+dfsg-2ubuntu9~trusty1 (现在为 trusty) -> 5.2.1+df 21) libqt5svg5 [5.3.0-2~trusty1 (现在,trusty) -> 5.2.1-1 (trusty)] 22) libqt5test5 [5.3.0+dfsg-2ubuntu9~trusty1 (现在为 trusty) -> 5.2.1+dfsg-1ub 23) libqt5webkit5 [5.3.0+dfsg-1ubuntu2~trusty1 (现在为 trusty) -> 5.1.1-1ubunt 24)libqt5webkit5-qmlwebkitplugin [5.3.0+dfsg-1ubuntu2~trusty1(现在为 trusty) 25) libqt5widgets5 [5.3.0+dfsg-2ubuntu9~trusty1 (现在,trusty) -> 5.2.1+dfsg- 26) libqt5xml5 [5.3.0+dfsg-2ubuntu9~trusty1 (现在为 trusty) -> 5.2.1+dfsg-1ubu 27)qtdeclarative5-localstorage-plugin [5.3.0-3ubuntu13~trusty1(现在,trusty 28) qtdeclarative5-qtquick2-plugin [5.3.0-3ubuntu13~trusty1 (现在,trusty) -> 29) qtdeclarative5-window-plugin [5.3.0-3ubuntu13~trusty1 (现在,trusty) -> 5 接受这个解决方案吗?[Y/n/q/?]
似乎当我添加 MuseScore 的存储库并将 MuseScore 升级到 2.0 时,它也会将 qt 更新到 5.3,这似乎与 Makerware 不兼容。
目前,看来我必须降级 MuseScore 或不使用 Makerware。
答案2
您需要先运行命令下载并手动安装 MySQL Workbench:
sudo apt-get -f install
仅运行此命令,它将解决您的问题。
它在 Linux Mint 上对我有用