如何在这里安装特定的软件包或阻止 apt 中的通知?

如何在这里安装特定的软件包或阻止 apt 中的通知?

我更新了apt软件包,发现有一个软件包可以更新,因为有以下通知。

1 package can be upgraded. Run 'apt list --upgradable' to see it.

选项有

  1. 更新到版本 libreoffice-sdbc-firebird/stretch-backports 1:5.4.0-1~bpo9+1 amd64
  2. 为了防止通知

复制通知的代码

masi@masi:~$ sudo apt update
...
Hit:15 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists... Done
Building dependency tree       
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.

查看软件包列表,在其中选择要更新的软件包以及当前状态

masi@masi:~$ apt list -a --upgradable
Listing... Done
libreoffice-sdbc-firebird/unstable 1:5.4.0-1 amd64 [upgradable from: 1:4.3.3-2+deb8u7]
libreoffice-sdbc-firebird/stretch-backports 1:5.4.0-1~bpo9+1 amd64
libreoffice-sdbc-firebird/now 1:4.3.3-2+deb8u7 amd64 [installed,upgradable to: 1:5.4.0-1]

1. 尝试将软件包更新为不稳定版本

这样做但有冲突,所以选项(2)似乎更好

masi@masi:~$ sudo apt install libreoffice-sdbc-firebird/stretch-backports
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Selected version '1:5.4.0-1~bpo9+1' (Debian Backports:stretch-backports [amd64]) for 'libreoffice-sdbc-firebird'
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:
 libreoffice-sdbc-firebird : Depends: libreoffice-core (= 1:5.4.0-1~bpo9+1) but 1:5.2.7-1 is to be installed
                             Depends: uno-libs3 (>= 5.3.0~alpha) but 5.2.7-1 is to be installed
E: Unable to correct problems, you have held broken packages.

2. 防止出现此通知

我认为最好保留当前的包,但保留通知一段时间。也许与equivs和 特别是equivs-control.

操作系统:Debian 9.1
相关:apt update 说软件包可以升级,但升级说相反

答案1

要安装libreoffice-sdbc-firebird(仅在拉伸向后移植上可用),您应该从向后移植升级libreoffice-coreuno-libs3

sudo apt install -t stretch-backports libreoffice-core uno-libs3
sudo apt install -t stretch-backports libreoffice-sdbc-firebird

相关内容