zsnes 未满足的依赖项(在一台计算机上有效,但在另一台计算机上无效)

zsnes 未满足的依赖项(在一台计算机上有效,但在另一台计算机上无效)

当我尝试(在 Ubuntu 18.04.5 LTS 上)

sudo apt install zsnes

我得到以下

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:
    zsnes:i386 : Depends: libsdl1.2debian:i386 (>= 1.2.11) but it is not going to be installed

然后我尝试

sudo apt install libsdl1.2debian:i386

我得到以下

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:
    kio : Depends: libkf5notifications5 (>= 4.96.0) but it is not going to be installed
          Depends: libkf5wallet-bin but it is not going to be installed
    libkf5wallet5 : Depends: libkwalletbackend5-5 (= 5.44.0-0ubuntu1) but it is not going to be installed
    libsdl1.2debian:i386 : Depends: libcaca0:i386 (>= 0.99.beta17-1) but it is not going to be installed

我一直在尝试安装这些未满足的依赖项,但完全不知所措。有人能给我指出正确的方向吗?我家里有 2 台 Linux 机器(2 台笔记本电脑)。一台笔记本电脑安装 zsnes 没有问题,但另一台笔记本电脑一直出错。我的两台笔记本电脑都运行 Ubuntu 18.04.5 LTS,所以我不明白为什么一台使用相同操作系统的计算机安装程序没有问题,而另一台却有问题。

我尝试了这里的解决方案,但没有效果未满足的依赖项(linux-headers、linux-image)

我试过了

sudo apt --fix-broken install

但这并没有解决问题。我已经运行了

sudo apt update

sudo apt upgrade

是的,甚至

sudo dpkg --configure -a
sudo apt clean
sudo apt autoclean
sudo apt -f install

仍然是同样的问题。当我运行

cat /etc/apt/sources.list

我明白了

deb http://us.archive.ubuntu.com/ubuntu/ bionic universe multiverse main
deb http://security.ubuntu.com/ubuntu bionic main
# deb-src http://security.ubuntu.com/ubuntu bionic main

答案1

谢谢吴瑞询问我的 sources.list 文件包含什么。最初它仅包含以下来源。

deb http://us.archive.ubuntu.com/ubuntu/ bionic universe multiverse main
deb http://security.ubuntu.com/ubuntu bionic main
# deb-src http://security.ubuntu.com/ubuntu bionic main

然后我检查了另一台计算机并使我的 sources.list 文件看起来像这样。

deb http://us.archive.ubuntu.com/ubuntu/ bionic universe multiverse main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main universe restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main multiverse universe restricted
deb http://security.ubuntu.com/ubuntu bionic main
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse

然后我运行了更新和升级,现在 zsnes 安装没有问题。谢谢!!!

相关内容