mkdir:无法创建目录“.tmp_3983”:权限被拒绝内核版本解析失败! - 我正在尝试安装 wifi 反向移植

mkdir:无法创建目录“.tmp_3983”:权限被拒绝内核版本解析失败! - 我正在尝试安装 wifi 反向移植

在为我的 wifi 适配器安装反向移植时,我的终端出现以下错误。

我的 askubuntu 问题是我的 Qualcomm Atheros QCA9377 无线适配器无法在 Ubuntu 20.04 LTS 中使用(供应商:联想型号:E41-25)

我使用的内核版本:

wintersoldier@wintersoldier:~$ uname -s -r
Linux 5.8.12-050812-generic

我的错误是:

wintersoldier@wintersoldier:~$ cd backports-20151120
wintersoldier@wintersoldier:~/backports-20151120$ make defconfig-wifi
Generating local configuration database from kernel ...mkdir: cannot create directory ‘.tmp_4206’: Permission denied
mkdir: cannot create directory ‘.tmp_4208’: Permission denied
mkdir: cannot create directory ‘.tmp_4210’: Permission denied
mkdir: cannot create directory ‘.tmp_4212’: Permission denied
mkdir: cannot create directory ‘.tmp_4214’: Permission denied
mkdir: cannot create directory ‘.tmp_4216’: Permission denied
mkdir: cannot create directory ‘.tmp_4219’: Permission denied
mkdir: cannot create directory ‘.tmp_4221’: Permission denied
mkdir: cannot create directory ‘.tmp_4223’: Permission denied
mkdir: cannot create directory ‘.tmp_4225’: Permission denied
mkdir: cannot create directory ‘.tmp_4227’: Permission denied
mkdir: cannot create directory ‘.tmp_4229’: Permission denied
mkdir: cannot create directory ‘.tmp_4231’: Permission denied
mkdir: cannot create directory ‘.tmp_4233’: Permission denied
mkdir: cannot create directory ‘.tmp_4235’: Permission denied
mkdir: cannot create directory ‘.tmp_4237’: Permission denied
mkdir: cannot create directory ‘.tmp_4239’: Permission denied
mkdir: cannot create directory ‘.tmp_4241’: Permission denied
mkdir: cannot create directory ‘.tmp_4243’: Permission denied
mkdir: cannot create directory ‘.tmp_4245’: Permission denied
mkdir: cannot create directory ‘.tmp_4247’: Permission denied
mkdir: cannot create directory ‘.tmp_4249’: Permission denied
mkdir: cannot create directory ‘.tmp_4251’: Permission denied
mkdir: cannot create directory ‘.tmp_4253’: Permission denied
mkdir: cannot create directory ‘.tmp_4255’: Permission denied
mkdir: cannot create directory ‘.tmp_4257’: Permission denied
mkdir: cannot create directory ‘.tmp_4259’: Permission denied
mkdir: cannot create directory ‘.tmp_4261’: Permission denied
mkdir: cannot create directory ‘.tmp_4263’: Permission denied
mkdir: cannot create directory ‘.tmp_4265’: Permission denied
mkdir: cannot create directory ‘.tmp_4268’: Permission denied
mkdir: cannot create directory ‘.tmp_4270’: Permission denied
mkdir: cannot create directory ‘.tmp_4272’: Permission denied
mkdir: cannot create directory ‘.tmp_4274’: Permission denied
mkdir: cannot create directory ‘.tmp_4276’: Permission denied
mkdir: cannot create directory ‘.tmp_4278’: Permission denied
mkdir: cannot create directory ‘.tmp_4280’: Permission denied
mkdir: cannot create directory ‘.tmp_4282’: Permission denied
mkdir: cannot create directory ‘.tmp_4284’: Permission denied
mkdir: cannot create directory ‘.tmp_4286’: Permission denied
mkdir: cannot create directory ‘.tmp_4288’: Permission denied
mkdir: cannot create directory ‘.tmp_4290’: Permission denied
mkdir: cannot create directory ‘.tmp_4292’: Permission denied
mkdir: cannot create directory ‘.tmp_4294’: Permission denied
mkdir: cannot create directory ‘.tmp_4296’: Permission denied
mkdir: cannot create directory ‘.tmp_4298’: Permission denied
Kernel version parse failed!
make: *** [Makefile:42: defconfig-wifi] Error 1
wintersoldier@wintersoldier:~/backports-20151120$ 

请帮我解决我的问题

答案1

您无法在内核源代码树中创建目录,因为其中的文件/usr/src都归超级用户 ( root) 所有。

我尝试对脚本进行以下修改你的其它问题

tar zxvf backports-20151120.tar.gz # like original
cd backports-20151120 # like original
sudo rsync -axvH /usr/src/linux-headers-`uname -r` /usr/src/linux-headers-`uname -r`.backup # make a backup copy first
sudo chown -vR $USER /usr/src/linux-headers-`uname -r` # change ownership of all kernel headers
make defconfig-wifi # resume script

现在,这仍然失败,Generating local configuration database from kernel ...Kernel version parse failed!但没有cannot create directory错误。

您尝试安装的反向移植如下这个脚本它是在 2016 年创建的;你确定需要构建内核吗?(我的库存安装有 QCA9377 的固件):

ls -lR /lib/firmware/ath10k/QCA9377/

相关内容