在debian上安装linux-header,无法定位包。

时间:2022-01-25 10:40:19

I am trying to install the linux-headers for my Kernel Version 3.4.61+ and Debian Version 7.1

我正在尝试为内核版本3.4.61+和Debian版本7.1安装linux-header。

I typed this Commands:

我输入这个命令:

apt-get update
apt-get install linux-headers-$(uname -r)

On the last command I always get an Error:

在最后一个命令中,我总是会出错:

E: Unable to locate package linux-headers-3.4.61
E: Couldn't find any package by regex 'linux-headers-3.4.61'

btw: It´s all based on a Cubietruck/Cubieboard3

顺便说一句:´s所有基于Cubietruck / Cubieboard3

3 个解决方案

#1


9  

You could search first, then choose the closest one.

你可以先搜索,然后选择最近的。

For example, on my system:

例如,在我的系统上:

$ apt-cache search linux-headers
linux-headers-3.2.0-4-all - All header files for Linux 3.2 (meta-package)
linux-headers-3.2.0-4-all-amd64 - All header files for Linux 3.2 (meta-package)
linux-headers-3.2.0-4-amd64 - Header files for Linux 3.2.0-4-amd64

So I can install any one of these three.

所以我可以安装这三个中的任何一个。

#2


3  

Here's what you may need to do

以下是你可能需要做的。

sudo apt-get update # This will update the repositories list
sudo apt-get upgrade # This will update all the necessary packages on your system
sudo apt-get dist-upgrade # This will add/remove any needed packages
reboot # You may need this since sometimes after a upgrade/dist-upgrade, there are some left over entries that get fixed after a reboot
sudo apt-get install linux-headers-$(uname -r) # This should work now

#3


0  

Check the Source.list file to contain the repository entries. You can find them at - https://docs.kali.org/general-use/kali-linux-sources-list-repositories. After editing the file, save it and run "apt-get update && apt-get upgrade". Now run "apt-get install linux-headers-$(uname -r)"

检查源。列表文件以包含存储库条目。您可以在- https://docs.kali.org/generuse/kali-linux - sourcs -list-储存库中找到它们。编辑完文件后,保存并运行“apt-get update && apt-get upgrade”。现在运行“apt-get安装linux-header -$(uname -r)”

#1


9  

You could search first, then choose the closest one.

你可以先搜索,然后选择最近的。

For example, on my system:

例如,在我的系统上:

$ apt-cache search linux-headers
linux-headers-3.2.0-4-all - All header files for Linux 3.2 (meta-package)
linux-headers-3.2.0-4-all-amd64 - All header files for Linux 3.2 (meta-package)
linux-headers-3.2.0-4-amd64 - Header files for Linux 3.2.0-4-amd64

So I can install any one of these three.

所以我可以安装这三个中的任何一个。

#2


3  

Here's what you may need to do

以下是你可能需要做的。

sudo apt-get update # This will update the repositories list
sudo apt-get upgrade # This will update all the necessary packages on your system
sudo apt-get dist-upgrade # This will add/remove any needed packages
reboot # You may need this since sometimes after a upgrade/dist-upgrade, there are some left over entries that get fixed after a reboot
sudo apt-get install linux-headers-$(uname -r) # This should work now

#3


0  

Check the Source.list file to contain the repository entries. You can find them at - https://docs.kali.org/general-use/kali-linux-sources-list-repositories. After editing the file, save it and run "apt-get update && apt-get upgrade". Now run "apt-get install linux-headers-$(uname -r)"

检查源。列表文件以包含存储库条目。您可以在- https://docs.kali.org/generuse/kali-linux - sourcs -list-储存库中找到它们。编辑完文件后,保存并运行“apt-get update && apt-get upgrade”。现在运行“apt-get安装linux-header -$(uname -r)”