AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 792802
Accepted
hhlp
hhlp
Asked: 2025-03-21 18:41:15 +0800 CST2025-03-21 18:41:15 +0800 CST 2025-03-21 18:41:15 +0800 CST

Ansible - 无法安装某些指定的软件包

  • 772

这是我的 ansible 剧本:

---
  - name: "Setup local Fedora 41 system (root) Base"
    hosts: localhost
    connection: local
    become: yes
    tasks:

    - name: Install packages 
      ansible.builtin.dnf:
        name:
            - 'aajohan-comfortaa-fonts'
            - 'ack'
            - 'aide'
            - 'alacarte'
            - 'asciidoc-latex'
#            - 'asciinema'
            - 'autoconf'
            - 'automake'
#            - 'balena-etcher-electron'
            - 'bat'
            - 'blivet-gui'
            - 'boost'
            - 'bottom'
            - 'bpytop'
            - 'brasero'
#            - 'brave-browser'
            - 'breezy'
            - 'btrbk'
            - 'buildah'
            - 'bodhi-client'
            - 'btop'
            - 'cargo'
            - 'ccze'
            - 'celluloid'
            - 'choose'
            - 'cinelerra-gg'
            - 'clang'
            - 'cmake'
            - 'cmake-gui'
            - 'codeblocks'
            - 'codeblocks-contrib'
            - 'copr-cli'
            - 'conky'
            - 'cpulimit'
#            - 'curlie'
            - 'clean-rpm-gpg-pubkey'
            - 'dconf-editor'
            - 'ddclient'
            - 'dnf-utils'
            - 'dracut-live'
            - 'duf'
            - 'duply'
            - 'duf'
            - 'dynamips'
            - 'dkms'
            - 'difftastic'
            - 'easyeffects'
            - 'exa'
            - 'eza'
            - 'fd-find'
            - 'fedora-easy-karma'
            - 'fedpkg'
            - 'fontawesome5-fonts-all'
            - 'ffmpeg'
            - 'filezilla'
            - 'firewall-config'
            - 'foliate'
            - 'fontawesome-fonts'
            - 'gcc-c++'
            - 'gh'
            - 'gimp'
            - 'git-delta'
            - 'git-lfs'
            - 'git-cola'
            - 'gnome-builder'
            - 'gnome-extensions-app'
            - 'gnome-pomodoro'
            - 'gnome-shell-extension-appindicator'
            - 'gnome-shell-extension-dash-to-dock'
#            - 'gnome-shell-extension-emoji-selector'
            - 'gnome-shell-extension-gpaste'
            - 'gnome-shell-extension-openweather'
            - 'gnome-text-editor'
            - 'gnome-todo'
            - 'gnome-tweaks'
            - 'gnote'
            - 'gns3-gui'
            - 'gns3-server'
            - 'golang'
            - 'gparted'
            - 'gping'
            - 'hashcat'
            - 'haskell-platform'
            - 'hexchat'
            - 'htop'
            - 'httpie'
            - 'hunspell-es'
            - 'hyperfine'
            - 'hyphen-es'
            - 'inxi'
#            - 'ipscan'
            - 'imhex'
            - 'jq'
            - 'julia'
#            - 'keybase'
            - 'lame'
            - 'langpacks-core-es'
            - 'langpacks-core-font-es'
            - 'langpacks-en'
            - 'langpacks-es'
            - 'lazydocker'
            - 'lbzip2'
            - 'libvirt'
            - 'lnav'
            - 'lsd'
            - 'lshw'
            - 'lynis'
            - 'ftp'
            - 'lftp'
            - 'man-pages-es'
            - 'mediawriter'
            - 'meld'
            - 'most'
            - 'mplayer'
#            - 'mplayer-gui'
            - 'mpv'
            - 'mythes-es'
            - 'ncdu'
            - 'fastfetch'
            - 'onefetch'
            - 'neovim'
            - 'nm-connection-editor-desktop'
            - 'nmap'
            - 'nmstate'
            - 'nmstate-plugin-ovsdb'
            - 'nnn'
            - 'nodejs'
            - 'nvtop'
            - 'papirus-icon-theme'
            - 'pass'
            - 'pavucontrol'
            - 'pcsc-tools' 
            - 'perl'
            - 'pitivi'
            - 'poetry'
            - 'powerline-fonts'
            - 'procs'
#            - 'protonmail-bridge'
#            - 'protonvpn-cli'
#            - 'protonvpn-gui'
#            - 'protonvpn-stable-release'
            - 'python3-dnf-plugin-snapper'
            - 'python3-dnf-plugin-versionlock'
#            - 'python3-pipreqs'
            - 'python3-pygments-markdown-lexer'
            - 'python3-rich'
            - 'python3-spyder'
            - 'python3-virtualenvwrapper'
            - 'python3-idle'
            - 'python3-selenium'
            - 'qbittorrent'
            - 'qemu'
            - 'qt6-assistant'
            - 'qt6-designer'
            - 'qt6-qtbase'
            - 'qt6-qttools'
            - 'qutebrowser'
            - 'rcm'
            - 'readline-devel'
            - 'rednotebook'
            - 'ripgrep'
            - 'ugrep'
            - 'rpmconf'
#           - 'rstudio'
#           - 'rstudio-desktop'
            - 'rr'
            - 'ruby'
            - 'ruby-devel'
            - 'rubygem-asciidoctor-pdf'
            - 'rubygems-devel'
            - 'rust'
            - 'ruff'
            - 'sd'
            - 'scala'
            - 'seahorse'
            - 'seahorse-nautilus'
            - 'setools-console'
            - 'setroubleshoot'
            - 'simplescreenrecorder'
            - 'skopeo'
            - 'snapper'
#            - 'snort'
            - 'sox'
            - 'sqlitebrowser'
            - 'sscg'
            - 'stack'
            - 'starship'
            - 'strawberry'
            - 'task'
#            - 'teamviewer'
            - 'texlive-academicons'
            - 'texlive-babel-spanish'
            - 'texlive-fontawesome5'
            - 'texlive-imakeidx'
            - 'texlive-minted'
            - 'texlive-minted-doc'
            - 'texlive-pygmentex'
            - 'texlive-scheme-basic'
            - 'texstudio'
            - 'texlive-texdoc'
            - 'texlive-geometry-doc'
            - 'texlive-pgf-doc'
            - 'texlive-pgf-pie'
            - 'texlive-academicons-doc'
            - 'texlive-biblatex-doc'
            - 'texlive-amsmath-doc'
            - 'texlive-babel-spanish'
            - 'texlive-blindtext'
            - 'texlive-blindtext-doc'
            - 'texlive-fancyhdr-doc'
            - 'texlive-bigfoot-doc'
            - 'texlive-endnotes'
            - 'texlive-endnotes-doc'
            - 'texlive-footmisc-doc'
            - 'texlive-lipsum-doc'
            - 'texlive-ncctools-doc'
            - 'texlive-tools-doc'
            - 'texlive-ntheorem-doc'
            - 'texlive-mathtools-doc'
            - 'texlive-charissil'
            - 'texlive-doulossil'
            - 'the_silver_searcher'
            - 'tig'
            - 'tilix'
            - 'tilix-nautilus'
            - 'timeshift'
            - 'timew'
            - 'toolbox'
            - 'torbrowser-launcher'
            - 'transmission'
            - 'thonny'
            - 'udica'
            - 'ulauncher'
            - 'unrar'
            - 'vagrant'
            - 'virt-manager'
            - 'virt-viewer'
#            - 'vivaldi-stable'
            - 'vlc'
            - 'wavemon'
            - 'wine'
            - 'winetricks'
            - 'wireshark'
            - 'xinput'
            - 'xkill'
            - 'xset'
            - 'yaru-theme'
#            - 'zoom'
            - 'zoxide'
            - 'zsh'
            - 'swtpm-tools'
            - 'edk2-ovmf'
            - 'zeal'
            - 'remove-retired-packages'
            - 'gnome-console'                                           
#            - 'gnome-console-nautilus'
            - 'helm'
            - 'spice-webdavd'
            - 'v4l2loopback' 
            - 'kmod-v4l2loopback'
            - 'obs-studio'
            - 'geany'
            - 'geany-plugins-addons'
            - 'geany-plugins-latex'
            - 'geany-plugins-markdown'
            - 'geany-plugins-git-changebar'
            - 'geany-plugins-geanypg'
            - 'geany-plugins-debugger'
            - 'geany-plugins-sendmail'
            - 'geany-plugins-scope'
            - 'kubernetes-client'
            - 'yamllint'
            - 'inotify-tools'
            - 'emoji-picker'
            - 'google-noto-emoji-fonts'
            - 'tito'
            - 'python3-PyMuPDF'
            - 'clang-tools-extra'
            - 'remmina'
            - 'v4l-utils'
            - 'guvcview'
            - 'piper'
            - 'flameshot'
            - 'peek'
            - 'iperf'
            - 'gnome-shell-extension-pop-shell'
            - 'xprop'
            - 'vokoscreenNG'
# ansible
            - 'ansible'
            - 'ansible-collection-community-general'
            - 'ansible-collection-community-docker'
            - 'ansible-collection-community-kubernetes' 
            - 'ansible-collection-containers-podman' 
            - 'ansible-packaging' 
            - 'ansible-srpm-macros' 
            - 'ansible-collection-community-libvirt'
# AWS
            - 'awscli2'
# java and testing framework
            - 'junit5' 
            - 'jmock-junit5'
            - 'jmock'
            - 'java-11-openjdk-devel' 
            - 'java-17-openjdk-devel'
            - 'java-21-openjdk-devel'
            - 'java-latest-openjdk-devel'
            - 'java-latest-openjdk'
            - 'openjfx'
# Programs for Data Science
            - 'python3-notebook'
            - 'mathjax'
            - 'sscg'
            - 'python3-seaborn' 
            - 'python3-lxml '
            - 'python3-basemap' 
            - 'python3-scikit-image' 
            - 'python3-scikit-learn'
            - 'python3-sympy'
            - 'python3-dask+dataframe' 
            - 'python3-nltk'
            - 'google-noto-sans-jp-fonts'
            - 'diff-so-fancy'
            - 'python3-torch'
# kerberos
            - 'python3-requests-kerberos'
            - 'fedora-packager'
# Pythom PEP8
            - 'python3-flake8\*'
            - 'python3-pytest-flake8-path'
            - 'python3-pep8-naming'
#            - 'pipenv'
        state: present

我正在运行:

ANSIBLE_DEBUG=true ansible-playbook -K f41-setup-programs.yaml -vvvv 

如何知道缺少的包是什么包?

有想法吗?有任何线索吗?

痕迹

fatal: [127.0.0.1]: FAILED! => {
    "changed": false,
    "failures": [
        "No package choose available."
    ],
    "invocation": {
        "module_args": {
            "allow_downgrade": false,
            "allowerasing": false,
            "auto_install_module_deps": true,
            "autoremove": false,
            "bugfix": false,
            "cacheonly": false,
            "conf_file": null,
            "disable_excludes": null,
            "disable_gpg_check": false,
            "disable_plugin": [],
            "disablerepo": [],
            "download_dir": null,
            "download_only": false,
            "enable_plugin": [],
            "enablerepo": [],
            "exclude": [],
            "install_repoquery": true,
            "install_weak_deps": true,
            "installroot": "/",
            "list": null,
            "lock_timeout": 30,
            "name": [
                "aajohan-comfortaa-fonts",
                "ack",
                "aide",
                "alacarte",
                "asciidoc-latex",
                "autoconf",
                "automake",
                "bat",
                "blivet-gui",
                "boost",
                "bottom",
                "bpytop",
                "brasero",
                "breezy",
                "btrbk",
                "buildah",
                "bodhi-client",
                "btop",
                "cargo",
                "ccze",
                "celluloid",
                "choose",
                "cinelerra-gg",
                "clang",
                "cmake",
                "cmake-gui",
                "codeblocks",
                "codeblocks-contrib",
                "copr-cli",
                "conky",
                "cpulimit",
                "clean-rpm-gpg-pubkey",
                "dconf-editor",
                "ddclient",
                "dnf-utils",
                "dracut-live",
                "duf",
                "duply",
                "duf",
                "dynamips",
                "dkms",
                "difftastic",
                "easyeffects",
                "exa",
                "eza",
                "fd-find",
                "fedora-easy-karma",
                "fedpkg",
                "fontawesome5-fonts-all",
                "ffmpeg",
                "filezilla",
                "firewall-config",
                "foliate",
                "fontawesome-fonts",
                "gcc-c++",
                "gh",
                "gimp",
                "git-delta",
                "git-lfs",
                "git-cola",
                "gnome-builder",
                "gnome-extensions-app",
                "gnome-pomodoro",
                "gnome-shell-extension-appindicator",
                "gnome-shell-extension-dash-to-dock",
                "gnome-shell-extension-gpaste",
                "gnome-shell-extension-openweather",
                "gnome-text-editor",
                "gnome-todo",
                "gnome-tweaks",
                "gnote",
                "gns3-gui",
                "gns3-server",
                "golang",
                "gparted",
                "gping",
                "hashcat",
                "haskell-platform",
                "hexchat",
                "htop",
                "httpie",
                "hunspell-es",
                "hyperfine",
                "hyphen-es",
                "inxi",
                "imhex",
                "jq",
                "julia",
                "lame",
                "langpacks-core-es",
                "langpacks-core-font-es",
                "langpacks-en",
                "langpacks-es",
                "lazydocker",
                "lbzip2",
                "libvirt",
                "lnav",
                "lsd",
                "lshw",
                "lynis",
                "ftp",
                "lftp",
                "man-pages-es",
                "mediawriter",
                "meld",
                "most",
                "mplayer",
                "mpv",
                "mythes-es",
                "ncdu",
                "fastfetch",
                "onefetch",
                "neovim",
                "nm-connection-editor-desktop",
                "nmap",
                "nmstate",
                "nmstate-plugin-ovsdb",
                "nnn",
                "nodejs",
                "nvtop",
                "papirus-icon-theme",
                "pass",
                "pavucontrol",
                "pcsc-tools",
                "perl",
                "pitivi",
                "poetry",
                "powerline-fonts",
                "procs",
                "python3-dnf-plugin-snapper",
                "python3-dnf-plugin-versionlock",
                "python3-pygments-markdown-lexer",
                "python3-rich",
                "python3-spyder",
                "python3-virtualenvwrapper",
                "python3-idle",
                "python3-selenium",
                "qbittorrent",
                "qemu",
                "qt6-assistant",
                "qt6-designer",
                "qt6-qtbase",
                "qt6-qttools",
                "qutebrowser",
                "rcm",
                "readline-devel",
                "rednotebook",
                "ripgrep",
                "ugrep",
                "rpmconf",
                "rr",
                "ruby",
                "ruby-devel",
                "rubygem-asciidoctor-pdf",
                "rubygems-devel",
                "rust",
                "ruff",
                "sd",
                "scala",
                "seahorse",
                "seahorse-nautilus",
                "setools-console",
                "setroubleshoot",
                "simplescreenrecorder",
                "skopeo",
                "snapper",
                "sox",
                "sqlitebrowser",
                "sscg",
                "stack",
                "starship",
                "strawberry",
                "task",
                "texlive-academicons",
                "texlive-babel-spanish",
                "texlive-fontawesome5",
                "texlive-imakeidx",
                "texlive-minted",
                "texlive-minted-doc",
                "texlive-pygmentex",
                "texlive-scheme-basic",
                "texstudio",
                "texlive-texdoc",
                "texlive-geometry-doc",
                "texlive-pgf-doc",
                "texlive-pgf-pie",
                "texlive-academicons-doc",
                "texlive-biblatex-doc",
                "texlive-amsmath-doc",
                "texlive-babel-spanish",
                "texlive-blindtext",
                "texlive-blindtext-doc",
                "texlive-fancyhdr-doc",
                "texlive-bigfoot-doc",
                "texlive-endnotes",
                "texlive-endnotes-doc",
                "texlive-footmisc-doc",
                "texlive-lipsum-doc",
                "texlive-ncctools-doc",
                "texlive-tools-doc",
                "texlive-ntheorem-doc",
                "texlive-mathtools-doc",
                "texlive-charissil",
                "texlive-doulossil",
                "the_silver_searcher",
                "tig",
                "tilix",
                "tilix-nautilus",
                "timeshift",
                "timew",
                "toolbox",
                "torbrowser-launcher",
                "transmission",
                "thonny",
                "udica",
                "ulauncher",
                "unrar",
                "vagrant",
                "virt-manager",
                "virt-viewer",
                "vlc",
                "wavemon",
                "wine",
                "winetricks",
                "wireshark",
                "xinput",
                "xkill",
                "xset",
                "yaru-theme",
                "zoxide",
                "zsh",
                "swtpm-tools",
                "edk2-ovmf",
                "zeal",
                "remove-retired-packages",
                "gnome-console",
                "helm",
                "spice-webdavd",
                "v4l2loopback",
                "kmod-v4l2loopback",
                "obs-studio",
                "geany",
                "geany-plugins-addons",
                "geany-plugins-latex",
                "geany-plugins-markdown",
                "geany-plugins-git-changebar",
                "geany-plugins-geanypg",
                "geany-plugins-debugger",
                "geany-plugins-sendmail",
                "geany-plugins-scope",
                "kubernetes-client",
                "yamllint",
                "inotify-tools",
                "emoji-picker",
                "google-noto-emoji-fonts",
                "tito",
                "python3-PyMuPDF",
                "clang-tools-extra",
                "remmina",
                "v4l-utils",
                "guvcview",
                "piper",
                "flameshot",
                "peek",
                "iperf",
                "gnome-shell-extension-pop-shell",
                "xprop",
                "vokoscreenNG",
                "ansible",
                "ansible-collection-community-general",
                "ansible-collection-community-docker",
                "ansible-collection-community-kubernetes",
                "ansible-collection-containers-podman",
                "ansible-packaging",
                "ansible-srpm-macros",
                "ansible-collection-community-libvirt",
                "awscli2",
                "junit5",
                "jmock-junit5",
                "jmock",
                "java-11-openjdk-devel",
                "java-17-openjdk-devel",
                "java-21-openjdk-devel",
                "java-latest-openjdk-devel",
                "java-latest-openjdk",
                "openjfx",
                "python3-notebook",
                "mathjax",
                "sscg",
                "python3-seaborn",
                "python3-lxml ",
                "python3-basemap",
                "python3-scikit-image",
                "python3-scikit-learn",
                "python3-sympy",
                "python3-dask+dataframe",
                "python3-nltk",
                "google-noto-sans-jp-fonts",
                "diff-so-fancy",
                "python3-torch",
                "python3-requests-kerberos",
                "fedora-packager",
                "python3-flake8\*",
                "python3-pytest-flake8-path",
                "python3-pep8-naming"
            ],
            "nobest": false,
            "releasever": null,
            "security": false,
            "skip_broken": true,
            "sslverify": true,
            "state": "present",
            "update_cache": false,
            "update_only": false,
            "validate_certs": true
        }
    },
    "msg": "Failed to install some of the specified packages",
    "rc": 1
}

问候。,

fedora
  • 1 1 个回答
  • 22 Views

1 个回答

  • Voted
  1. Best Answer
    Marcus Müller
    2025-03-21T20:17:15+08:002025-03-21T20:17:15+08:00

    如上所述,系统会告诉您出了什么问题:

    "failures": [
        "No package choose available."
    ],
    

    包“选择”不可用。

    • 2

相关问题

  • 无法使用 git 克隆 https 网址

  • VirtualBox 无法在 Fedora 26 中安装

  • 使用触摸屏时如何禁用屏幕键盘?

  • 如何找出 nmcli 中缺少的插件?

  • 如何正确分区 SSD 以进行双启动设置

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve