linux - 在 debian 9.5 中安装头文件的问题
问题描述
当我尝试使用此命令安装标头时:
apt install linux-headers-$(uname -r)
然后我得到这个输出错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.9.124-xxxx-std-ipv6-64
E: Couldn't find any package by glob 'linux-headers-4.9.124-xxxx-std-ipv6-64'
E: Couldn't find any package by regex 'linux-headers-4.9.124-xxxx-std-ipv6-64'
我需要这些标头来安装 geoip,而无需执行以下命令:
modprobe xt_geoip
返回此错误:
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.9.124-xxxx-std-ipv6-64/modules.dep.bin'
modprobe: FATAL: Module xt_geoip not found in directory /lib/modules/4.9.124-xxxx-std-ipv6-64
这是我的sources.list:
https://pastebin.com/6eVpTuUD
我的debian版本:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.5 (stretch)
Release: 9.5
Codename: stretch
我只想指出我是 linux 的新手,如果这个问题很明显,我很抱歉。我试图在谷歌上找到答案,但我没有设法。
解决方案
推荐阅读
- robotframework - 如何使用机器人框架在 SAP GUIShell 上双击元素?
- sql - 在 SQL 中的同一查询中引用不同的 id
- android - 如何将viewModel注入Fragment?
- c# - 使用 Linq Select 创建一个包含比原始列表更多项目的列表
- linux - 如何在没有 libstdc++ 依赖的情况下使用 b2 构建 C 程序?
- java - 在arraylist中查找特定元素的位置
- perl - 如何将命令行参数传递给 Perl 脚本?
- javascript - 在输入值中显示和检索特殊字符 (\r\n\t)
- bash - 重命名多个目录,同时将一部分保留在中间并带有不同的后缀
- javascript - Javascript 回调未按预期工作