无法使用 apt 安装名为“fonts-noto-color-emoji”的 Ubuntu 22.04 软件包

无法使用 apt 安装名为“fonts-noto-color-emoji”的 Ubuntu 22.04 软件包

我删除了这个包并尝试更改默认的表情符号字体,现在我想重新安装它。

该包可以在这里找到:https://packages.ubuntu.com/jammy/fonts-noto-color-emoji

sudo apt install fonts-noto-color-emoji我尝试

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package fonts-noto-color-emoji is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'fonts-noto-color-emoji' has no installation candidate

这是什么意思?我该如何重新安装该软件包?

编辑1:

关于第三方 PPA,运行

grep -r --include '*.list' '^deb ' /etc/apt/ | sed -re 's/^\/etc\/apt\/sources\.list((\.d\/)?|(:)?)//' -e 's/(.*\.list):/\[\1\] /' -e 's/deb http:\/\/ppa.launchpad.net\/(.*?)\/ubuntu .*/ppa:\1/'

[vscode.list] deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
[mozillateam-ubuntu-ppa-jammy.list] deb https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu/ jammy main
[google-chrome.list] deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
[teams.list] deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main
[obsproject-ubuntu-obs-studio-jammy.list] deb https://ppa.launchpadcontent.net/obsproject/obs-studio/ubuntu/ jammy main
[signal-xenial.list] deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main
deb http://gr.archive.ubuntu.com/ubuntu/ jammy restricted
deb http://gr.archive.ubuntu.com/ubuntu/ jammy-updates restricted
deb http://gr.archive.ubuntu.com/ubuntu/ jammy universe
deb http://gr.archive.ubuntu.com/ubuntu/ jammy-updates universe
deb http://gr.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://gr.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
deb http://gr.archive.ubuntu.com/ubuntu/ jammy-backports restricted universe multiverse
deb http://security.ubuntu.com/ubuntu jammy-security restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse

编辑2:

结果apt-cache policy fonts-noto-color-emoji

fonts-noto-color-emoji:
  Installed: (none)
  Candidate: (none)
  Version table:

答案1

我找到了问题的原因:由于某种原因,软件和更新中的第一个选项“Cannonical 支持的免费和开源软件(主要)”未被选中:

在此处输入图片描述

我启用了该选项,现在一切都正常运行。

我现在的问题是这个选项是怎么被取消勾选的,因为我不到一周前进行了全新安装,而且我自己从来没有取消勾选过它。

相关内容