Linux 依赖性错误(无法安装 Stella)

Linux Dependency Errors (can't install Stella)

我正在尝试在 Ubuntu 20.04 上安装 Stella Atari 模拟器,用于我正在学习的课程。

我收到以下错误:

sudo dpkg -i stella_6.5.3_amd64.deb 
Selecting previously unselected package stella.
(Reading database ... 202707 files and directories currently installed.)
Preparing to unpack stella_6.5.3_amd64.deb ...
Unpacking stella (6.5.3) ...
dpkg: dependency problems prevent configuration of stella:
 stella depends on libsdl2-2.0-0 (>= 2.0.14); however:
  Version of libsdl2-2.0-0:amd64 on system is 2.0.10+dfsg1-3.

dpkg: error processing package stella (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
 stella

我一直在想办法安装此安装所需的特定版本的 libsdl2,但我不知道如何获得 2.0.14 版本。有什么建议吗?

我试过了

sudo apt-get install libsdl2-2.0-0=2.0.14

和类似的命令,但没有运气。

您下载的 stella 版本与 Ubuntu 版本的官方 libsdl2 数据包版本不兼容。如果您只想使用 stella,可以通过 apt:

安装为兼容版本
apt install stella