Slow/Delayed Ethernet Performance

If you have PCI power management in your BIOS settings, try disabling it to improve net speed.

Can you try installing in terminal:

sudo apt install r8168-dkms

Once complete, reboot and test.

1 Like

I got this error while trying to install what you sent me:

E: Sub-process /usr/bin/dpkg returned an error code (1)

tried to troubleshoot with these commands but non worked.
also what happened is I LAN does not connect anymore X) so I had to bring a USB WiFi adapter to send this luckily it worked

sudo dpkg --configure -a
sudo apt-get install -f

You're right but truthfully it is very exhausting as a someone who just wants to do their computing without all of this hassle going on every time I turn on my computer.

Do you recommend me any distribution that's not an Ubuntu derivative that I can rely on without much issues like these?

I thought about Arch Linux or maybe Debian or even Fedora.

Can you run

sudo apt clean && sudo apt autoremove

sudo dpkg --configure -a

sudo apt update && sudo apt upgrade

Then try running the install for 8168-dkms again.

Please take a photo or screenshot of the full terminal output if it errors.

1 Like

freeasus@freeasus-System-Product-Name:~$ sudo apt clean && sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up r8168-dkms (8.049.02-1ubuntu1.2) ...
Removing old r8168-8.049.02 DKMS files...
Deleting module r8168-8.049.02 completely from the DKMS tree.
Loading new r8168-8.049.02 DKMS files...
Building for 6.5.0-15-generic
Building initial module for 6.5.0-15-generic
Error! Bad return status for module build on kernel: 6.5.0-15-generic (x86_64)
Consult /var/lib/dkms/r8168/8.049.02/build/make.log for more information.
dpkg: error processing package r8168-dkms (--configure):
installed r8168-dkms package post-installation script subprocess returned error exit status 10
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-6.5.0-15-generic
Errors were encountered while processing:
r8168-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
freeasus@freeasus-System-Product-Name:~$

sudo dpkg --configure -a

Setting up r8168-dkms (8.049.02-1ubuntu1.2) ...
Removing old r8168-8.049.02 DKMS files...
Deleting module r8168-8.049.02 completely from the DKMS tree.
Loading new r8168-8.049.02 DKMS files...
Building for 6.5.0-15-generic
Building initial module for 6.5.0-15-generic
Error! Bad return status for module build on kernel: 6.5.0-15-generic (x86_64)
Consult /var/lib/dkms/r8168/8.049.02/build/make.log for more information.
dpkg: error processing package r8168-dkms (--configure):
installed r8168-dkms package post-installation script subprocess returned error exit status 10
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-6.5.0-15-generic
Errors were encountered while processing:
r8168-dkms
freeasus@freeasus-System-Product-Name:~$

sudo apt update && sudo apt upgrade

Ign:1 https://brave-browser-apt-release.s3.... stable InRelease
Ign:1 https://brave-browser-apt-release.s3.... stable InRelease
Ign:1 https://brave-browser-apt-release.s3.... stable InRelease
Err:1 https://brave-browser-apt-release.s3.... stable InRelease
Could not resolve 'brave-browser-apt-release.s3....'
Hit:2 Index of /ubuntu jammy InRelease
Ign:3 Index of /ubuntu jammy InRelease
Ign:4 Index of /zorinos/apps/ubuntu jammy InRelease
Get:5 Index of /ubuntu jammy-security InRelease [110 kB]
Ign:6 Index of /stable/ jammy InRelease
Get:7 Index of /ubuntu jammy-updates InRelease [119 kB]
Hit:8 Index of /ubuntu jammy-backports InRelease
Hit:3 Index of /ubuntu jammy InRelease
Hit:9 Index of /zorinos/drivers/ubuntu jammy InRelease
Hit:10 Index of /zorinos/patches/ubuntu jammy InRelease
Hit:11 Index of /zorinos/stable/ubuntu jammy InRelease
Hit:4 Index of /zorinos/apps/ubuntu jammy InRelease
Ign:12 Index of /patches/ jammy InRelease
Hit:13 Index of /apps/ jammy InRelease
Hit:14 Index of /drivers/ jammy InRelease
Hit:15 Zorin OS Pro - Zorin OS jammy InRelease
Hit:6 Index of /stable/ jammy InRelease
Hit:12 Index of /patches/ jammy InRelease
Fetched 229 kB in 1min 21s (2,818 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch https://brave-browser-apt-release.s3..../dists/stable/InRelease Could not resolve 'brave-browser-apt-release.s3....'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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 r8168-dkms (8.049.02-1ubuntu1.2) ...
Removing old r8168-8.049.02 DKMS files...
Deleting module r8168-8.049.02 completely from the DKMS tree.
Loading new r8168-8.049.02 DKMS files...
Building for 6.5.0-15-generic
Building initial module for 6.5.0-15-generic
Error! Bad return status for module build on kernel: 6.5.0-15-generic (x86_64)
Consult /var/lib/dkms/r8168/8.049.02/build/make.log for more information.
dpkg: error processing package r8168-dkms (--configure):
installed r8168-dkms package post-installation script subprocess returned error exit status 10
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-6.5.0-15-generic
Errors were encountered while processing:
r8168-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
freeasus@freeasus-System-Product-Name:~$

sudo apt install r8168-dkms

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
r8168-dkms is already the newest version (8.049.02-1ubuntu1.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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 r8168-dkms (8.049.02-1ubuntu1.2) ...
Removing old r8168-8.049.02 DKMS files...
Deleting module r8168-8.049.02 completely from the DKMS tree.
Loading new r8168-8.049.02 DKMS files...
Building for 6.5.0-15-generic
Building initial module for 6.5.0-15-generic
Error! Bad return status for module build on kernel: 6.5.0-15-generic (x86_64)
Consult /var/lib/dkms/r8168/8.049.02/build/make.log for more information.
dpkg: error processing package r8168-dkms (--configure):
installed r8168-dkms package post-installation script subprocess returned error exit status 10
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-6.5.0-15-generic
Errors were encountered while processing:
r8168-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
freeasus@freeasus-System-Product-Name:~$

It does not like the kernel version...
Which led me to a bug report for it...
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050287

Please run

sudo apt --fix-broken install

In the meantime, are you on a notebook computer? Have you disabled the in-built PowerSave:

and also done this?

Sorry not derive topics but you can also recommend me some other distros that will save me time to do my computing without much driver issues and thanks I really appreciate your help <3

I can recommend distros, but if there was a perfect OS or Distro that never has Driver issues, we would all be on it. Windows OS, MacOS and all varieties of GnuLinux, BSD, etc all run into driver issues.
I would be remiss to make a recommendation that you only end up running into driver issues on.

For now, let's see if you are on a notebook computer and if disabling powersave helps:

1 Like

Same error and no I am using a custom desktop computer i5-7400 ~ 32GB DDR4 RAM with an ASUS MotherBoard H110-k

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up r8168-dkms (8.049.02-1ubuntu1.2) ...
Removing old r8168-8.049.02 DKMS files...
Deleting module r8168-8.049.02 completely from the DKMS tree.
Loading new r8168-8.049.02 DKMS files...
Building for 6.5.0-15-generic
Building initial module for 6.5.0-15-generic
Error! Bad return status for module build on kernel: 6.5.0-15-generic (x86_64)
Consult /var/lib/dkms/r8168/8.049.02/build/make.log for more information.
dpkg: error processing package r8168-dkms (--configure):
installed r8168-dkms package post-installation script subprocess returned error exit status 10
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-6.5.0-15-generic
Errors were encountered while processing:
r8168-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

In that case,

sudo apt remove r8168-dkms

I actually thought the apt --fix-broken would just remove it due to the breakage. It usually does...

1 Like

It worked now how can I restore back my Ethernet connection? because its lost

freeasus@freeasus-System-Product-Name:~$

sudo apt remove r8168-dkms

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
r8168-dkms
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 1,377 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 314082 files and directories currently installed.)
Removing r8168-dkms (8.049.02-1ubuntu1.2) ...
Deleting module r8168-8.049.02 completely from the DKMS tree.
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-6.5.0-15-generic
freeasus@freeasus-System-Product-Name:~$

Download the driver:
https://www.realtek.com/en/directly-download?downloadid=98145fdc0ec1b6270e7ce75e6af78834

Once it finishes downloading, go to your Downloads folder and right click the zipped file and select "Extract here".
Enter the extracted folder and right click the autorun.sh and choose Properties > Permissions and ensure it is checked to run as executable.
Then double click it to run it.

1 Like

It's not downloading what so ever it shows this after I click download:

I tried XDM manually and still didn't work

Computers can turn even the simplest of tasks into a chain of nightmares...

Well... The driver is included in the Linux kernel.
Can you post the output of

uname -r

We can try reinstalling the Linux Kernel, then rebooting.

1 Like

hahahah

freeasus@freeasus-System-Product-Name:~$

uname -r

6.5.0-15-generic

Ok run

sudo apt install --reinstall linux-headers-6.5.0-15-generic linux-image-6.5.0-15-generic linux-modules-6.5.0-15-generic linux-modules-extra-6.5.0-15-generic

Then, reboot and test...

1 Like

Apparently on an old version of Mint, R8169 works:

https://forums.linuxmint.com/viewtopic.php?p=1649832&sid=45e69b36ff7c147229ccc8854c665241#p1649832

Also see this where user had issues with dual boot with Windows 10:

2 Likes

did not work..........

thanks i will look into it, i don't have dual boot with windows i went on with bare-metal installation X)

honestly I will try with this issue more if it kept going i will go to debian or anything other than Ubuntu since my personal experience with it so far is extremely bad XXXXXXXX))))

why can't i just ignore this new linux kernel and get an older one that's like 5 something?

or Zorin won't function well with it?