使用 Synaptic 包管理器时出现错误,未满足依赖关系

使用 Synaptic 包管理器时出现错误,未满足依赖关系

我正在运行 ubuntu 18.04。当我尝试使用 synaptic 包管理器进行更新时,我收到以下消息

E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

于是我上网寻找解决方案,并尝试了很多方法。以下是我目前收集到的信息。所有这些都是我在阅读其他帖子后尝试的方法,所以我不确定它们是否相关,但我想尽可能多地提供信息。

当我这样做时,sudo apt-get update它工作正常。当我这样做时,sudo apt-get upgrade我收到以下消息。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libegl-mesa0 libegl-mesa0:i386 libgbm1 libgbm1:i386 libgl1-mesa-dri
  libgl1-mesa-dri:i386 libglapi-mesa libglapi-mesa:i386 libglx-mesa0
  libglx-mesa0:i386 libosmesa6 libosmesa6:i386 libxatracker2 mesa-va-drivers
  mesa-va-drivers:i386 mesa-vdpau-drivers mesa-vulkan-drivers
  mesa-vulkan-drivers:i386 netplan.io
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.

当我这样做时,sudo apt-get dist-upgrade我收到以下消息。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Error!
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:
 gvfs : Depends: gvfs-daemons (>= 1.36.1-0ubuntu1.3.3)
        Depends: gvfs-daemons (< 1.36.1-0ubuntu1.3.3.1~)
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

当我这样做时,sudo apt-get install -f我收到以下消息。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.

因此,我认为我有未满足的依赖关系,但我不知道如何修复它,或者这是否是问题所在。如果有人能帮助我,我将不胜感激。

更新

不知道发生了什么,但过了一会儿,一切又恢复正常了。Synaptic 又开始工作了,但是文件管理器上出现了一个新位置,名为 x-nautilus-desktop:///。当我点击它时,它说无法显示。很奇怪。

答案1

尝试这个:

sudo dpkg --configure -a

然后通过运行此命令删除输出中出现的包

sudo dpkg --remove package-name

相关内容