【问题标题】:Unable to install update-notifier-common on Debian Stretch无法在 Debian Stretch 上安装 update-notifier-common
【发布时间】:2018-08-07 13:18:28
【问题描述】:

我目前正在尝试在 Debian Stretch 上安装一些字体

g@i-3-nstance:~$ sudo apt-get install ttf-mscorefonts-installer
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:
 ttf-mscorefonts-installer : Depends: update-notifier-common (>= 0.119ubuntu2) but it is not installable
E: Unable to correct problems, you have held broken packages.
g@i-3-nstance:~$

...但似乎这个包已被删除。

https://github.com/plone/ansible-playbook/issues/98

https://github.com/jnv/ansible-role-unattended-upgrades/issues/6#issuecomment-93569818

有解决办法吗?

【问题讨论】:

标签: linux dependencies debian apt-get debian-stretch


【解决方案1】:

更新:我基于此进行了手动安装:https://askubuntu.com/a/861476

sudo apt-get install cabextract libmspack0
wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb
sudo dpkg -i ttf-mscorefonts-installer_3.6_all.deb

【讨论】:

  • 尽管有人对此表示反对,但仍支持您的答案。它确实帮助我在构建 Docker 时解决了这个问题。就我而言,将 PHP 容器 php:7.3-fpm-stretch 更新为 php:7.4-fpm-buster 后会出现问题。
【解决方案2】:

apt-get 尝试安装的 ttf-mscorefonts-installer 软件包来自 Ubuntu 存储库,而不是 Debian 存储库(请注意,它依赖于 update-notifier-common >= 0.119ubuntu2)。 p>

您可能在 /etc/apt/sources.list 中混合了 Debian 和 Ubuntu 存储库。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-11
    • 2017-12-03
    • 1970-01-01
    • 2014-06-09
    • 2021-08-25
    相关资源
    最近更新 更多