R8168 patch failed help!


New Member
Aug 6, 2023
Because my lan card is r8168 and i’m using proxmox 7.4 with pve 5.15, my server is killing its self randomly. So i tried to patch with apt install r8168-dkms, it prints error
apt install r8168-dkms
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libjs-sencha-touch openvswitch-common
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu build-essential chrony cpp cpp-12 dkms dpkg-dev
fakeroot g++ g++-12 gcc gcc-12 gcc-12-base libabsl20220623 libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libanyevent-perl libaom3 libapt-pkg-perl libasan8
libatomic1 libauthen-pam-perl libavif15 libbinutils libc-bin libc-dev-bin libc-devtools libc-l10n libc6
libc6-dev libcc1-0 libclone-perl libcommon-sense-perl libcrypt-dev libcrypt-openssl-bignum-perl
libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libcrypt-ssleay-perl libcrypt1 libctf-nobfd0
libctf0 libdav1d6 libdbd-sqlite3-perl libdbi-perl libde265-0 libdeflate0 libdpkg-perl libfakeroot
libfile-fcntllock-perl libfilesys-df-perl libgav1-1 libgcc-12-dev libgcc-s1 libgd3 libgdbm6 libgmp10
libgnutls-dane0 libgnutls30 libgomp1 libgprofng0 libheif1 libhtml-parser-perl libisl23 libitm1
libjansson4 libjbig0 libjson-xs-perl liblerc4 liblinux-inotify2-perl liblocale-gettext-perl liblsan0
liblzma5 libmpc3 libmpfr6 libnet-dbus-perl libnet-ssleay-perl libnetaddr-ip-perl libnsl-dev libpam0g
libperl5.36 libposix-strptime-perl libquadmath0 librav1e0 libreadline8 librrds-perl libsqlite3-0 libssl3
libstdc++-12-dev libstdc++6 libsvtav1enc1 libtemplate-perl libterm-readline-gnu-perl
libtext-charwidth-perl libtext-iconv-perl libtiff6 libtirpc-common libtirpc-dev libtirpc3 libtsan2
libubsan1 libuuid-perl libwebp7 libx265-199 libxml-libxml-perl libxml-parser-perl libxpm4 libyaml-0-2
libyaml-libyaml-perl libyuv0 libzstd1 linux-libc-dev locales lsb-release manpages manpages-dev perl
perl-base perl-modules-5.36 perl-openssl-defaults rpcsvc-proto sqlite3 sudo xz-utils
Suggested packages:
binutils-doc networkd-dispatcher cpp-doc gcc-12-locales cpp-12-doc menu debian-keyring g++-multilib
g++-12-multilib gcc-12-doc gcc-multilib autoconf automake libtool flex bison gdb gcc-doc gcc-12-multilib
libev-perl libevent-perl libio-async-perl libpoe-perl libtask-weaken-perl glibc-doc libnss-nis
libnss-nisplus libmldbm-perl libnet-daemon-perl libsql-statement-perl bzr libgd-tools gdbm-l10n
dns-root-data libdata-dump-perl iwatch libpam-doc libstdc++-12-doc libtemplate-plugin-gd-perl
libtemplate-plugin-xml-perl perl-doc libtap-harness-archive-perl debhelper sqlite3-doc
Recommended packages:
libasync-interrupt-perl libev-perl | libevent-perl libguard-perl libsocket6-perl
The following packages will be REMOVED:
libgnutlsxx28 libproxmox-acme-perl libproxmox-rs-perl libpve-access-control libpve-cluster-api-perl
libpve-cluster-perl libpve-common-perl libpve-guest-common-perl libpve-http-server-perl libpve-rs-perl
libpve-storage-perl libpve-u2f-server-perl librados2-perl lxc-pve proxmox-ve pve-cluster pve-container
pve-firewall pve-ha-manager pve-manager qemu-server
The following NEW packages will be installed:
build-essential cpp cpp-12 dkms dpkg-dev fakeroot g++ g++-12 gcc gcc-12 gcc-12-base libabsl20220623
libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libaom3 libasan8 libatomic1
libavif15 libc-dev-bin libc-devtools libc6-dev libcc1-0 libcrypt-dev libdav1d6 libde265-0 libdeflate0
libdpkg-perl libfakeroot libfile-fcntllock-perl libgav1-1 libgcc-12-dev libgd3 libgomp1 libgprofng0
libheif1 libisl23 libitm1 libjbig0 liblerc4 liblsan0 libmpc3 libmpfr6 libnsl-dev libperl5.36
libquadmath0 librav1e0 libssl3 libstdc++-12-dev libsvtav1enc1 libtiff6 libtirpc-dev libtsan2 libubsan1
libwebp7 libx265-199 libxpm4 libyuv0 linux-libc-dev lsb-release manpages-dev perl-modules-5.36
r8168-dkms rpcsvc-proto sudo
The following packages will be upgraded:
binutils binutils-common binutils-x86-64-linux-gnu chrony libanyevent-perl libapt-pkg-perl
libauthen-pam-perl libbinutils libc-bin libc-l10n libc6 libclone-perl libcommon-sense-perl
libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libcrypt-ssleay-perl
libcrypt1 libctf-nobfd0 libctf0 libdbd-sqlite3-perl libdbi-perl libfilesys-df-perl libgcc-s1 libgdbm6
libgmp10 libgnutls-dane0 libgnutls30 libhtml-parser-perl libjansson4 libjson-xs-perl
liblinux-inotify2-perl liblocale-gettext-perl liblzma5 libnet-dbus-perl libnet-ssleay-perl
libnetaddr-ip-perl libpam0g libposix-strptime-perl libreadline8 librrds-perl libsqlite3-0 libstdc++6
libtemplate-perl libterm-readline-gnu-perl libtext-charwidth-perl libtext-iconv-perl libtirpc-common
libtirpc3 libuuid-perl libxml-libxml-perl libxml-parser-perl libyaml-0-2 libyaml-libyaml-perl libzstd1
locales manpages perl perl-base perl-openssl-defaults sqlite3 xz-utils
62 upgraded, 65 newly installed, 21 to remove and 469 not upgraded.
Need to get 0 B/108 MB of archives.
After this operation, 295 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
W: (pve-apt-hook) !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook) touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
W: (pve-apt-hook) and repeat your apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook) - your APT repository settings
W: (pve-apt-hook) - that you are using 'apt full-upgrade' to upgrade your system
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook
And idk what to do…
Last edited:


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!