Slow/Delayed Ethernet Performance

I am extremely frustrated from this issue and I had it before on GNU/Linux Mint:

Basically my Ethernet connection does not function properly it says "connected" but it is super slow to visit website or do anything. However when I open Speedtest.net after some time it opens and does the test but it takes like 1 minute or so before it starts, the test shows my full speed! although it is super slow in action and even as I said connecting to Speedtest by itself.

Note that I don't have this issue when I connect through wifi. The cable works 100% and I tested it on other devices.

Also note that when I used to use mint I would mask the issue by using a VPN and the speed will become tolerable.

If anyone can please help me I am a beginner at GNU/Linux and have no idea how to use the terminal.

Hi ZorinEnjoyer, and welcome to the forum!

This handy guide might be able to assist. Please keep us posted.

I would also check power settings and follow the answer with most votes here:

1 Like

Thank you swarfendor437!

I truthfully appreciate your quick response and useful input <3

I didn't follow the guide exactly (since idk what's going on) but I messed around with what it. And download net-tools and then kept on the with guide.

And so far the result are satisfying I can browse and download software! :smiley:

In case of any issue that could pop I would come back to this Fourm.

Thanks again

2 Likes

Another update I still have the issue although it is reduced it varies from time to time although my internet is stable fiber-optic.

When I was on Windows I had non of these issues what so ever regarding networking every thing was fast as a bullet.

If you can help me swarfendor I will highly appreciate it since I installed Zorin Pro on my laptop today and the issue the same once again but worse.

What is your terminal output for

sudo lshw -C network

It sounds like you need to do as Swarf suggested and disable powersaving but also need a better driver for your network card.

1 Like

Just remember that most hardware was made for that other OS!

1 Like

sudo lshw -C network
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
logical name: enp3s0
version: 15
serial: 70:4d:7b:31:31:f0
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=6.5.0-15-generic duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.1.130 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:19 ioport:d000(size=256) memory:f7104000-f7104fff memory:f7100000-f7103fff

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