尝试安装 Dolphin-Emu 时,我遇到了未满足的依赖关系,导致安装无法进行。我将 Dolphin-Emu 安装为 PPA,因此我可以手动安装该软件包。每次尝试安装时,我都会使用以下代码以及收到的消息。
$ sudo apt-get install dolphin-emu
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:
dolphin-emu : Depends: libstdc++6 (>= 4.9) but 4.8.4-2ubuntu1~14.04 is to be installed
E: Unable to correct problems, you have held broken packages.
任何帮助都将不胜感激。
答案1
根据安装指南可以在线获取,以下应该可以工作:
sudo add-apt-repository ppa:dolphin-emu/ppa
sudo apt-get update
sudo apt-get install dolphin-emu-master
您也可以在命令sudo apt-get upgrade
后立即尝试update
(当 apt 在 ubuntu 上出现故障/遇到问题时,这两个通常是值得尝试的好命令)。
更新:此外,根据 dolphin 安装指南,如果运行 ubuntu 12.04 或 14.04,请先运行以下命令:
sudo add-apt-repository ppa:dolphin-emu/gcc-for-dolphin
sudo apt-get update
答案2
在尝试其他操作之前,请尝试按照上一个答案 ppa 中的说明进行操作,它说:
Unofficial builds for Dolphin Wii/Gamecube Emulator.
Install the dolphin-emu package for the latest stable release of Dolphin.
Install the dolphin-emu-master package for weekly builds that include the latest upstream changes from git.
The dolphin-emu-triforce package will allow you play Triforce games, as well Wii/Gamecube games. It's based on the old Triforce fork (4.0-315).
You'll need to enable the Universe repo before install Dolphin.
For Ubuntu 12.04 and 14.04 users: dolphin-emu-master needs an updated libstdc++6 (>=4.9), so install this PPA first:
https://launchpad.net/~dolphin-emu/+archive/ubuntu/gcc-for-dolphin
It will update libstdc++6 in your system to version 4.9.2, so be careful.
If you found a problem to update libstdc++6, use this PPA instead:
https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
THERE'S NO 32-bit (i386) BUILDS ANYMORE: https://dolphin-emu.org/blog/2014/05/19/obituary-32bit/
ARMv8/AArch64/arm64 packages now ;)
因此如果您遇到 libstdc++6 问题,请尝试:
- 注意警告然后使用
add-apt-repository
以下方式添加 ppahttps://launchpad.net/~dolphin-emu/+archive/ubuntu/gcc-for-dolphin - 做
sudo apt-get update
- 做
sodo apt-get upgrade
然后尝试再次安装,如果不行的话请尝试:
- 添加 ppahttps://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
- 然后
sudo apt-get update
做sudo apt-get upgrade
然后尝试再次安装 dolphin-emu。但是,正如自述文件所说,这会将 libstdc++6 更新至版本 4.9.2,所以这取决于你。