Upgrade problem to 8.2 (6.8 kernel - r8168 )

kwenosaure

New Member
Apr 4, 2024
7
3
3
Hi evryone,


I'm having some trouble since yesterday to update Proxmox. Is there a way to solve that?

Code:
apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
proxmox-kernel-6.5.13-3-pve-signed
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up proxmox-kernel-6.8.4-2-pve-signed (6.8.4-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.8.4-2-pve /boot/vmlinuz-6.8.4-2-pve
dkms: running auto installation service for kernel 6.8.4-2-pve.
Sign command: /lib/modules/6.8.4-2-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub


Building module:
Cleaning build area...
make -j6 KERNELRELEASE=6.8.4-2-pve -C /lib/modules/6.8.4-2-pve/build M=/var/lib/dkms/r8168/8.052.01-1/build........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.8.4-2-pve (x86_64)
Consult /var/lib/dkms/r8168/8.052.01-1/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.8.4-2-pve failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.8.4-2-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.8.4-2-pve-signed (--configure):
installed proxmox-kernel-6.8.4-2-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.8:
proxmox-kernel-6.8 depends on proxmox-kernel-6.8.4-2-pve-signed | proxmox-kernel-6.8.4-2-pve; however:
Package proxmox-kernel-6.8.4-2-pve-signed is not configured yet.
Package proxmox-kernel-6.8.4-2-pve is not installed.
Package proxmox-kernel-6.8.4-2-pve-signed which provides proxmox-kernel-6.8.4-2-pve is not configured yet.


dpkg: error processing package proxmox-kernel-6.8 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-default-kernel:
proxmox-default-kernel depends on proxmox-kernel-6.8; however:
Package proxmox-kernel-6.8 is not configured yet.


dpkg: error processing package proxmox-default-kernel (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-ve:
proxmox-ve depends on proxmox-default-kernel; however:
Package proxmox-default-kernel is not configured yet.


dpkg: error processing package proxmox-ve (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
proxmox-kernel-6.8.4-2-pve-signed
proxmox-kernel-6.8
proxmox-default-kernel
proxmox-ve
E: Sub-process /usr/bin/dpkg returned an error code (1)

and the var/lib/dkms/r8168/8.052.01-1/build/make.log content :

Code:
DKMS make.log for r8168-8.052.01-1 for kernel 6.8.4-2-pve (x86_64)
Fri Apr 26 06:54:34 CEST 2024
make: Entering directory '/usr/src/linux-headers-6.8.4-2-pve'
  CC [M]  /var/lib/dkms/r8168/8.052.01-1/build/r8168_n.o
  CC [M]  /var/lib/dkms/r8168/8.052.01-1/build/r8168_asf.o
  CC [M]  /var/lib/dkms/r8168/8.052.01-1/build/rtl_eeprom.o
  CC [M]  /var/lib/dkms/r8168/8.052.01-1/build/rtltool.o
/var/lib/dkms/r8168/8.052.01-1/build/rtl_eeprom.c:96:5: warning: no previous prototype for ‘rtl8168_eeprom_cmd_done’ [-Wmissing-prototypes]
   96 | int rtl8168_eeprom_cmd_done(struct rtl8168_private *tp)
      |     ^~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/r8168/8.052.01-1/build/r8168_n.c:1624:6: warning: no previous prototype for ‘_proc_dump_tx_desc’ [-Wmissing-prototypes]
 1624 | void _proc_dump_tx_desc(struct seq_file *m, struct TxDesc *desc_base,
      |      ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/r8168/8.052.01-1/build/r8168_n.c:2949:5: warning: no previous prototype for ‘mdio_real_read’ [-Wmissing-prototypes]
 2949 | u32 mdio_real_read(struct rtl8168_private *tp,
      |     ^~~~~~~~~~~~~~
/var/lib/dkms/r8168/8.052.01-1/build/r8168_n.c:5726:1: warning: no previous prototype for ‘rtl8168_set_rx_vlan_filter’ [-Wmissing-prototypes]
 5726 | rtl8168_set_rx_vlan_filter(struct rtl8168_private *tp)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/r8168/8.052.01-1/build/r8168_n.c: In function ‘rtl8168_get_drvinfo’:
/var/lib/dkms/r8168/8.052.01-1/build/r8168_n.c:6296:17: error: implicit declaration of function ‘strlcpy’; did you mean ‘strscpy’? [-Werror=implicit-function-declaration]
 6296 |                 strlcpy(info->fw_version, rtl_fw->version,
      |                 ^~~~~~~
      |                 strscpy
/var/lib/dkms/r8168/8.052.01-1/build/r8168_n.c: At top level:
/var/lib/dkms/r8168/8.052.01-1/build/r8168_n.c:28087:5: warning: no previous prototype for ‘rtl8168_enable_msix’ [-Wmissing-prototypes]
28087 | int rtl8168_enable_msix(struct rtl8168_private *tp)
      |     ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/r8168/8.052.01-1/build/r8168_n.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.8.4-2-pve/Makefile:1926: /var/lib/dkms/r8168/8.052.01-1/build] Error 2
make: *** [Makefile:240: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.8.4-2-pve'

Have someone an idea?

Thanks in advance for your answer.

Kwenosaure
 
Last edited:
for this particular dkms-package we ship a version which contains a fix for it to work with the 6.8 kernel - try installing:
r8168-dkms from the proxmox repositories.

I hope this helps!
 
Thank you very much for your answer.

I try to install r8168-dkms , but I have always the same problem :-'( .

Here is the complete prompt

Code:
apt install r8168-dkms
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
r8168-dkms is already the newest version (8.052.01-1-bpo12).
The following package was automatically installed and is no longer required:
proxmox-kernel-6.5.13-3-pve-signed
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up proxmox-kernel-6.8.4-2-pve-signed (6.8.4-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.8.4-2-pve /boot/vmlinuz-6.8.4-2-pve
dkms: running auto installation service for kernel 6.8.4-2-pve.
Sign command: /lib/modules/6.8.4-2-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub


Building module:
Cleaning build area...
make -j6 KERNELRELEASE=6.8.4-2-pve -C /lib/modules/6.8.4-2-pve/build M=/var/lib/dkms/r8168/8.052.01-1/build........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.8.4-2-pve (x86_64)
Consult /var/lib/dkms/r8168/8.052.01-1/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.8.4-2-pve failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.8.4-2-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.8.4-2-pve-signed (--configure):
installed proxmox-kernel-6.8.4-2-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.8:
proxmox-kernel-6.8 depends on proxmox-kernel-6.8.4-2-pve-signed | proxmox-kernel-6.8.4-2-pve; however:
Package proxmox-kernel-6.8.4-2-pve-signed is not configured yet.
Package proxmox-kernel-6.8.4-2-pve is not installed.
Package proxmox-kernel-6.8.4-2-pve-signed which provides proxmox-kernel-6.8.4-2-pve is not configured yet.


dpkg: error processing package proxmox-kernel-6.8 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-default-kernel:
proxmox-default-kernel depends on proxmox-kernel-6.8; however:
Package proxmox-kernel-6.8 is not configured yet.


dpkg: error processing package proxmox-default-kernel (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-ve:
proxmox-ve depends on proxmox-default-kernel; however:
Package proxmox-default-kernel is not configured yet.


dpkg: error processing package proxmox-ve (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
proxmox-kernel-6.8.4-2-pve-signed
proxmox-kernel-6.8
proxmox-default-kernel
proxmox-ve
E: Sub-process /usr/bin/dpkg returned an error code (1)


and the var/lib/dkms/r8168/8.052.01-1/build/make.log content :

Code:
DKMS make.log for r8168-8.052.01-1 for kernel 6.8.4-2-pve (x86_64)
Fri Apr 26 01:19:53 PM CEST 2024
make: Entering directory '/usr/src/linux-headers-6.8.4-2-pve'
CC [M] /var/lib/dkms/r8168/8.052.01-1/build/r8168_n.o
CC [M] /var/lib/dkms/r8168/8.052.01-1/build/r8168_asf.o
CC [M] /var/lib/dkms/r8168/8.052.01-1/build/rtl_eeprom.o
CC [M] /var/lib/dkms/r8168/8.052.01-1/build/rtltool.o
/var/lib/dkms/r8168/8.052.01-1/build/rtl_eeprom.c:96:5: warning: no previous prototype for ‘rtl8168_eeprom_cmd_done’ [-Wmissing-prototypes]
96 | int rtl8168_eeprom_cmd_done(struct rtl8168_private *tp)
| ^~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/r8168/8.052.01-1/build/r8168_n.c:1624:6: warning: no previous prototype for ‘_proc_dump_tx_desc’ [-Wmissing-prototypes]
1624 | void _proc_dump_tx_desc(struct seq_file *m, struct TxDesc *desc_base,
| ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/r8168/8.052.01-1/build/r8168_n.c:2949:5: warning: no previous prototype for ‘mdio_real_read’ [-Wmissing-prototypes]
2949 | u32 mdio_real_read(struct rtl8168_private *tp,
| ^~~~~~~~~~~~~~
/var/lib/dkms/r8168/8.052.01-1/build/r8168_n.c:5726:1: warning: no previous prototype for ‘rtl8168_set_rx_vlan_filter’ [-Wmissing-prototypes]
5726 | rtl8168_set_rx_vlan_filter(struct rtl8168_private *tp)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/r8168/8.052.01-1/build/r8168_n.c: In function ‘rtl8168_get_drvinfo’:
/var/lib/dkms/r8168/8.052.01-1/build/r8168_n.c:6296:17: error: implicit declaration of function ‘strlcpy’; did you mean ‘strscpy’? [-Werror=implicit-function-declaration]
6296 | strlcpy(info->fw_version, rtl_fw->version,
| ^~~~~~~
| strscpy
/var/lib/dkms/r8168/8.052.01-1/build/r8168_n.c: At top level:
/var/lib/dkms/r8168/8.052.01-1/build/r8168_n.c:28087:5: warning: no previous prototype for ‘rtl8168_enable_msix’ [-Wmissing-prototypes]
28087 | int rtl8168_enable_msix(struct rtl8168_private *tp)
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/r8168/8.052.01-1/build/r8168_n.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.8.4-2-pve/Makefile:1926: /var/lib/dkms/r8168/8.052.01-1/build] Error 2
make: *** [Makefile:240: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.8.4-2-pve'

Can I restart my Proxmox server or is this a risk?

Thanks in advance for your answer.

Kwenosaure
 
try removing the current dkms package - wipe it ... install the new one.

Can I restart my Proxmox server or is this a risk?
I would only do this if you have access to the server physically - or if the r8168 module is not needed for access (meaning if you can reach the server on a NIC, which does not need the out of tree realtek driver...)
 
  • Like
Reactions: kwenosaure
Just to be sure, i have to removing dkms package :
Code:
apt remove r8168-dkms

Wipe it :
Code:
apt purge r8168-dkms

Install the new one :
Code:
apt install r8168-dkms

Is that right?

Thanks for your answer,

Kwenosaure
 
Last edited:
Thanks for your answer.

So I apt remove r8168-dkms, and try to install r8169-dkms but I have this message
Code:
E: Unable to locate package r8169-dkms

The r8169 is installed by default normaly? Or shoud I do something?

Thanks in advance for your answer

Kwenosaure
 
So I apt remove r8168-dkms, and try to install r8169-dkms but I have this message
the r8169 driver is in-tree - this means it is part of the linux kernel and thus shipped with our kernel package.
no need for a dkms package

I hope this explains it!
 
You're welcome - glad it worked out so well!

Have a nice weekend as well!
 
I found this thread because I have the same issue - the 6.8 kernel upgrade didn't complete.

I had this same problem previously when Proxmox went to kernel 6.5. Luckily at the time a new Realtek r8168 driver (version 8.052.01) fixed that problem. This time though there isn't a new Realtek driver as far as I can tell - they're here

So I'm now at a bit of a loss. Unfortunately I know that my particular hardware does not work reliably with the in-tree r8169 driver - it runs for a few hours then has all sorts of issues and fails rendering the server (let's be clear it's not a server it's a mini PC) unreachable.

I appreciate that this isn't a Proxmox issue per se, but it does leave me now in a quandry. I guess I'll have to stay on 6.5 for that node.

Anyway, just thought I'd let others know if they're in the same situation. And also that using the in-tree r8169 driver on r8168 hardware isn't always a reliable fix.
 
The logs from the first post show, the kernel installation is trying to use drivers version 8.052.01 (which work with kernel max 6.5), Realtek has released new drivers version 8.053.00 which work with kernel 6.8: https://www.realtek.com/Download/List?cate_id=584
I had similar issue with my Wyse 5070, I managed to update the system as follows.
Downloaded new driver, copied the contents of the "src" directory to /usr/src/r8168-8.053.00/ and issued the following commands:
Code:
echo PACKAGE_NAME="r8168" > /usr/src/r8168-8.053.00/dkms.conf
echo PACKAGE_VERSION="8.053.00" >> /usr/src/r8168-8.053.00/dkms.conf
echo BUILT_MODULE_NAME[0]="$PACKAGE_NAME" >> /usr/src/r8168-8.053.00/dkms.conf
echo DEST_MODULE_LOCATION[0]="/updates/dkms" >> /usr/src/r8168-8.053.00/dkms.conf
echo AUTOINSTALL="YES" >> /usr/src/r8168-8.053.00/dkms.conf
echo REMAKE_INITRD="YES" >> /usr/src/r8168-8.053.00/dkms.conf
Next:
Code:
dkms add -m r8168 -v 8.053.00
In my case, dkms status returned 3 kernel versions working with the 8.052.01 driver, some of them were no longer used, but at this point I didn't want to complicate things and did the following for all kernels (xxx):
Code:
dkms build -m r8168 -v 8.053.00 -k 6.5.13-xxx-pve
dkms install -m r8168 -v 8.053.00 -k 6.5.13-xxx-pve
and additionally:
Code:
dkms build -m r8168 -v 8.053.00 -k 6.8.4-2-pve
dkms install -m r8168 -v 8.053.00 -k 6.8.4-2-pve
I removed the old version of the driver:
Code:
dkms remove r8168/8.052.01 --all
after the above 'dkms status' showed only modules based on the new driver version, then I performed
Code:
apt install pve-kernel-6.8.4-2-pve
Everything went without any error and after reboot the system works with the new kernel and the appropriate driver.


To be clear, I haven't tried the r8168-dkms reinstallation solution. I installed the current server with ISO 8.1 and from the very beginning I had a problem with the network card driver, only manual installation of the driver version 8.052.01 solved the problem (from what I remember, installing 'r8168-dkms' still caused the system to use the r8169 driver) .
 
  • Like
Reactions: pringlestuffs
I face the same issue. Since upgrading to 8.2, the r8168-dkms module does not work anymore.
After some research, I saw that a patch has been merged in the Linux Kernel upstream, which should fix the issue, at least for my specific network card: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=39f59c72ad3a

According to https://lore.kernel.org/all/8bacfc9f-7194-4376-acf7-38a935d735be@gmail.com/T/, this patch will be included starting from kernel 6.10. It will take quite some time until kernel 6.10 is released, let alone integrated into PVE. So, how can I already use this patch now? I guess the only way is to manually patch the kernel?
 
The logs from the first post show, the kernel installation is trying to use drivers version 8.052.01 (which work with kernel max 6.5), Realtek has released new drivers version 8.053.00 which work with kernel 6.8: https://www.realtek.com/Download/List?cate_id=584
I had similar issue with my Wyse 5070, I managed to update the system as follows.
Downloaded new driver, copied the contents of the "src" directory to /usr/src/r8168-8.053.00/ and issued the following commands:
Code:
echo PACKAGE_NAME="r8168" > /usr/src/r8168-8.053.00/dkms.conf
echo PACKAGE_VERSION="8.053.00" >> /usr/src/r8168-8.053.00/dkms.conf
echo BUILT_MODULE_NAME[0]="$PACKAGE_NAME" >> /usr/src/r8168-8.053.00/dkms.conf
echo DEST_MODULE_LOCATION[0]="/updates/dkms" >> /usr/src/r8168-8.053.00/dkms.conf
echo AUTOINSTALL="YES" >> /usr/src/r8168-8.053.00/dkms.conf
echo REMAKE_INITRD="YES" >> /usr/src/r8168-8.053.00/dkms.conf
Next:
Code:
dkms add -m r8168 -v 8.053.00
In my case, dkms status returned 3 kernel versions working with the 8.052.01 driver, some of them were no longer used, but at this point I didn't want to complicate things and did the following for all kernels (xxx):
Code:
dkms build -m r8168 -v 8.053.00 -k 6.5.13-xxx-pve
dkms install -m r8168 -v 8.053.00 -k 6.5.13-xxx-pve

I got to this step and build failed:

Code:
# dkms build -m r8168 -v 8.053.00 -k 6.5.13-5-pve
Sign command: /lib/modules/6.5.13-5-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/r8168/8.053.00/source/dkms.conf)

Building module:
Cleaning build area...
make -j6 KERNELRELEASE=6.5.13-5-pve -C /lib/modules/6.5.13-5-pve/build M=/var/lib/dkms/r8168/8.053.00/build...
Error!  Build of r8168.ko failed for: 6.5.13-5-pve (x86_64)
Make sure the name of the generated module is correct and at the root of the
build directory, or consult make.log in the build directory
/var/lib/dkms/r8168/8.053.00/build for more information.

The log file contains only

Code:
DKMS make.log for r8168-8.053.00 for kernel 6.5.13-5-pve (x86_64)
Sat May  4 02:21:08 PM EDT 2024
make: Entering directory '/usr/src/linux-headers-6.5.13-5-pve'
  MODPOST /var/lib/dkms/r8168/8.053.00/build/Module.symvers
make: Leaving directory '/usr/src/linux-headers-6.5.13-5-pve'
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!