Make Command Not working

super488

New Member
Apr 7, 2023
9
0
1
I'm trying to install realtek r8152 driver but when I trying to do "make" command its not working and show following output

Code:
root@super:~/ue300/r8152-2.16.3# make && make install
make -C /lib/modules/5.15.102-1-pve/build M=/root/ue300/r8152-2.16.3 modules
make[1]: *** /lib/modules/5.15.102-1-pve/build: No such file or directory.  Stop.
make: *** [Makefile:24: modules] Error 2
 
Hi,

make[1]: *** /lib/modules/5.15.102-1-pve/build: No such file or directory. Stop.
May you try to install the pve-header-5.15.102-1-pve then try to do a make install command?

Bash:
apt install pve-headers-5.15.102-1-pve
 
Hi,


May you try to install the pve-header-5.15.102-1-pve then try to do a make install command?

Bash:
apt install pve-headers-5.15.102-1-pve
Doesn't work the output are

Code:
root@super:~/ue300/r8152-2.16.3# apt install pve-headers-5.15.102-1-pve
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package pve-headers-5.15.102-1-pve
E: Couldn't find any package by glob 'pve-headers-5.15.102-1-pve'
 
Hello,


Thank you for the output!

Can you please try with the following command instead?

Bash:
apt install pve-headers$(uname -r)


EDIT: if this also didn't work, please provide us with the output of pveversion -v
 
Hello,


Thank you for the output!

Can you please try with the following command instead?

Bash:
apt install pve-headers$(uname -r)


EDIT: if this also didn't work, please provide us with the output of pveversion -v
Also doesn't work

Here are the result of that command

Bash:
root@super:~/ue300/r8152-2.16.3# pveversion -v
proxmox-ve: 7.4-1 (running kernel: 5.15.102-1-pve)
pve-manager: 7.4-3 (running version: 7.4-3/9002ab8a)
pve-kernel-5.15: 7.3-3
pve-kernel-5.15.102-1-pve: 5.15.102-1
ceph-fuse: 15.2.17-pve1
corosync: 3.1.7-pve1
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.24-pve2
libproxmox-acme-perl: 1.4.4
libproxmox-backup-qemu0: 1.3.1-1
libproxmox-rs-perl: 0.2.1
libpve-access-control: 7.4-1
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.3-3
libpve-guest-common-perl: 4.2-4
libpve-http-server-perl: 4.2-1
libpve-rs-perl: 0.7.5
libpve-storage-perl: 7.4-2
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 5.0.2-2
lxcfs: 5.0.3-pve1
novnc-pve: 1.4.0-1
proxmox-backup-client: 2.3.3-1
proxmox-backup-file-restore: 2.3.3-1
proxmox-kernel-helper: 7.4-1
proxmox-mail-forward: 0.1.1-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.6.3
pve-cluster: 7.3-3
pve-container: 4.4-3
pve-docs: 7.4-2
pve-edk2-firmware: 3.20221111-1
pve-firewall: 4.3-1
pve-firmware: 3.6-4
pve-ha-manager: 3.6.0
pve-i18n: 2.11-1
pve-qemu-kvm: 7.2.0-8
pve-xtermjs: 4.16.0-1
qemu-server: 7.4-2
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.8.0~bpo11+3
vncterm: 1.7-1
zfsutils-linux: 2.1.9-pve1
 
Just to make sure, you're trying to install the r8152 on the PVE itself, right? If yes, first please make sure that you have internet to install the pve-header as I said above, first issue the following command:

Code:
apt update

Then

Code:
apt install pve-headers-$(uname -r)

In my first command `apt install pve-headers$(uname -r)` I did mistake with `-` where it is missing after the pve-header. This important since the err output of the `make install` says the `No such file or directory. Stop.`

If also this didn't help, I would check the below video [0], maybe this give you an information about the installation.


[0] https://youtu.be/sAfPm2CxfI4?t=176
 
Just to make sure, you're trying to install the r8152 on the PVE itself, right? If yes, first please make sure that you have internet to install the pve-header as I said above, first issue the following command:

Code:
apt update

Then

Code:
apt install pve-headers-$(uname -r)

In my first command `apt install pve-headers$(uname -r)` I did mistake with `-` where it is missing after the pve-header. This important since the err output of the `make install` says the `No such file or directory. Stop.`

If also this didn't help, I would check the below video [0], maybe this give you an information about the installation.


[0] https://youtu.be/sAfPm2CxfI4?t=176
I've tried to do apt update before posting this but it seems like it also failed to do so

Bash:
root@super:~/ue300/r8152-2.16.3# apt update
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://ftp.debian.org/debian bullseye InRelease
Hit:3 http://ftp.debian.org/debian bullseye-updates InRelease
Err:4 https://enterprise.proxmox.com/debian/pve bullseye InRelease
  401  Unauthorized [IP: 51.79.159.216 443]
Reading package lists... Done           
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/bullseye/InRelease  401  Unauthorized [IP: 51.79.159.216 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
 
I've tried to do apt update before posting this but it seems like it also failed to do so

Err:4 https://enterprise.proxmox.com/debian/pve bullseye InRelease 401 Unauthorized [IP: 51.79.159.216 443]
You need a subscription to use the enterprise repository. You can use the free no-subscription repository by configuring it as described in the manual. Lots of threads about this as it is easy to forget to make this change.
 
  • Like
Reactions: Moayad
Alright I successfully installed the driver, are there a way to check if usb NIC are actually working?