无法安装 CUPS

无法安装 CUPS

今天我进行了升级,但丢失了所有打印内容。

现在我尝试重新安装hplip,但毫无运气,我收到 CUPS 丢失的消息,我尝试安装 CUPS 并得到以下信息:

The following packages have unmet dependencies:
cups : Depends: libcups2 (= 2.1.3-4) but 2.1.3-4ubuntu0.2 is to be installed
    Depends: cups-core-drivers (>= 2.1.3-4)
    Depends: cups-daemon (>= 2.1.3-4)

有什么办法可以解决这个问题

我正在使用 Ubuntu 16.04

答案1

看起来您安装了非 Ubuntu 软件包。Ubuntu 软件包的版本中包含“ubuntu”字样。您需要删除不冲突的软件包才能将系统恢复到 Ubuntu 版本。

首先卸载libcups2:

sudo apt-get remove libcups2 cups-core-drivers cups-daemon

然后告诉 apt 修复它:

sudo apt-get -f install

然后确保其他一切都符合要求:

sudo apt-get install ubuntu-desktop

如果有其他非 Ubuntu 软件包发生冲突,您将收到类似的警告。如果发生这种情况,只需重复该过程,删除冲突的软件包并运行apt-get -f install

至于安装 hplip,那是另一个问题。

答案2

作为一些背景信息,这个主题正在 Mint 论坛上运行;(mint 使用 ubuntu);https://forums.linuxmint.com/viewtopic.php?f=51&t=242497&start=40

本页上大约有 9 个帖子是有效的,但 tudor 已为您提供非常仔细的说明以供遵循;

相关内容