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 / 问题 / 743416
Accepted
vfclists
vfclists
Asked: 2023-04-19 20:16:35 +0800 CST2023-04-19 20:16:35 +0800 CST 2023-04-19 20:16:35 +0800 CST

如何诊断是什么阻碍了 Linux 软件包的安装?

  • 772

firmware-misc-nonfree我正在尝试在特定的 Linux 安装上安装 Debian 包。

╰─○ apt install firmware-misc-nonfree
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package firmware-misc-nonfree 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 'firmware-misc-nonfree' has no installation candidate

似乎有什么东西阻碍了它,但在其他两个系统上它很好。

这是输出apt-cache policy

╰─○ apt-cache policy firmware-misc-nonfree
firmware-misc-nonfree:
  Installed: (none)
  Candidate: (none)
  Version table:
     20210315-3 -1
         -1 http://uk.mirrors.clouvider.net/debian bullseye/non-free amd64 Packages

有什么方法可以自动找到冲突的原因吗?

这些是的内容/etc/apt/sources.list

# updated 2023-03-11-1956 for Debian 11 Bullseye

deb http://uk.mirrors.clouvider.net/debian/ bullseye main contrib non-free
deb-src http://uk.mirrors.clouvider.net/debian/ bullseye main contrib non-free

deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free

# bullseye-updates, previously known as 'volatile'
deb http://uk.mirrors.clouvider.net/debian/ bullseye-updates main contrib non-free
deb-src http://uk.mirrors.clouvider.net/debian/ bullseye-updates main contrib non-free

# deb http://uk.mirrors.clouvider.net/debian/ bullseye-backports main contrib non-free
# deb-src http://uk.mirrors.clouvider.net/debian/ bullseye-backports main contrib non-free

我唯一能想到的是,这个安装是一个 VirtualBox 系统,虚拟化可能与它有关。

它需要一些不在正确目录中的二进制固件,但我可以将它从其他系统复制到它可以在启动时加载的正确位置。

当一个软件包的安装触发另一个软件包的保留、删除或阻止时,Debian 打包系统是否维护发出命令的日志?

我在https://askubuntu.com/questions/640986/how-to-get-a-list-of-installed-packages-held-back-from-upgrade上尝试了一些建议,但命令没有显示任何事物。

debian
  • 3 3 个回答
  • 45 Views

3 个回答

  • Voted
  1. Best Answer
    A.B
    2023-04-21T06:09:05+08:002023-04-21T06:09:05+08:00

    apt-cache policy firmware-misc-nonfree显示包可用,优先级为 -1。-1 防止它被选为多个候选者中的候选者(即使它是唯一的候选者)。来自apt_preferences(5):

    APT 如何解释优先级

    [...]

    P < 0

    阻止安装版本

    您仍然可以通过自己声明候选版本来覆盖设置。例如,这应该安装包:

    apt-get install firmware-misc-nonfree=20210315-3
    

    有可能更改了有关 apt 首选项的一些设置。首先要看的地方是/etc/apt/preferences或 in /etc/apt/preferences.d/。

    • 2
  2. currawong
    2023-04-20T07:28:13+08:002023-04-20T07:28:13+08:00

    软件包 firmware-misc-nonfree 可以从以下网址下载: https: //packages.debian.org/sid/all/firmware-misc-nonfree/download。那是最新的。如果您想要旧的 bullseye 软件包,请使用: https ://packages.debian.org/bullseye/all/firmware-misc-nonfree/download 。

    它可以安装: dpkg -i 。

    如果运行:apt-file list firmware-misc-nonfree,它将显示包中的所有文件及其在 /lib/firmware 目录下的位置。

    /var/log/apt 目录保存 apt 活动的历史记录。

    • 1
  3. Shadur
    2023-04-20T16:31:11+08:002023-04-20T16:31:11+08:00

    发生的事情是 Debian 将各种非自由固件移动到它自己的存储库树中,与 分开,non-free因为不幸的是,其中一些对于许多现代系统(尤其是笔记本电脑)来说太重要了,无法默认忽略。

    按如下方式更新您的来源:

    deb http://uk.mirrors.clouvider.net/debian/ bullseye main contrib non-free
    

    到

    deb http://uk.mirrors.clouvider.net/debian/ bullseye main contrib non-free non-free-firmware
    

    你应该再次看到包裹。

    • 1

相关问题

  • GRUB 配置以识别同一 Linux 发行版的不同桌面环境(安装)

  • astyle 不会更改源文件格式

  • 接收有关全新 Debian 的电子邮件

  • Debian Stretch:libgs_plugin_systemd-updates.so 中的 gnome-software 段错误

  • 如何在拼音输入法中输入ü?

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