Ethernet driver unavailable (RTL8125)

NNN = kernel number e.g. 419, 56, 57 etc.

Hope this doesn't break my install but:

1 do the makepkg -si
2 In the directory do sudo pacman -U r8125-dkms-9.003.05-0-x86_64.pkg.tar.zst

This works:

sudo pacman -U r8125-dkms-9.003.05-0-x86_64.pkg.tar.zst
Alias tip: _ pacman -U r8125-dkms-9.003.05-0-x86_64.pkg.tar.zst
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) r8125-dkms-9.003.05-0

Total Installed Size:  1.56 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                                           [----------------------------------------] 100%
(1/1) checking package integrity                                         [----------------------------------------] 100%
(1/1) loading package files                                              [----------------------------------------] 100%
(1/1) checking for file conflicts                                        [----------------------------------------] 100%
:: Processing package changes...
(1/1) installing r8125-dkms                                              [----------------------------------------] 100%
Optional dependencies for r8125-dkms
    linux-headers: Build the module for Arch kernel [installed]
    linux-lts-headers: Build the module for LTS Arch kernel
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> dkms install --no-depmod -m r8125 -v 9.003.05 -k 5.7.8-5-MANJARO
==> dkms install --no-depmod -m r8125 -v 9.003.05 -k 4.19.132-1-MANJARO
Error!  Build of r8125.ko failed for: 4.19.132-1-MANJARO (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/r8125/9.003.05/build/ for more information.
==> Warning, `dkms install --no-depmod -m r8125 -v 9.003.05 -k 4.19.132-1-MANJARO' returned 7
==> dkms install --no-depmod -m r8125 -v 9.003.05 -k 5.4.51-1-MANJARO
==> depmod 5.7.8-5-MANJARO
==> depmod 5.4.51-1-MANJARO
==> depmod 4.19.132-1-MANJARO

Now I have to remove it :smiley:

Just one problem: how should I do the second step if the first one doesn't work?

And if I run it it says can't find package 'r8125-dkms-9.003.05-0-x86_64.pkg.tar.gz.zst'

Are you in the directory with th PKGBUILD in?

yes i am

drwxr-xr-x   5 steve steve 4.0K Jul 12 14:39 .
drwxr-xr-x 549 steve steve  20K Jul 12 13:57 ..
-rw-r--r--   1 steve steve  87K Jul 12 12:30 9.003.05.tar.gz
-rw-r--r--   1 steve steve  360 Jul 12 12:30 dkms.conf
drwxr-xr-x   8 steve steve 4.0K Jul 12 14:32 .git
drwxr-xr-x   4 steve steve 4.0K Jul 12 14:39 pkg
-rw-r--r--   1 steve steve 1.7K Jul 12 12:36 PKGBUILD
-rw-r--r--   1 steve steve  95K Jul 12 14:39 r8125-9.003.05-0-x86_64.pkg.tar.zst
-rw-r--r--   1 steve steve 179K Jul 12 14:39 r8125-dkms-9.003.05-0-x86_64.pkg.tar.zst
drwxr-xr-x   3 steve steve 4.0K Jul 12 14:38 src
-rw-r--r--   1 steve steve  709 Jul 12 12:30 .SRCINFO

Is my directory listing - what is yours?

[stevie@MainPC EthDrivers]$ ls -lah
insgesamt 104K
drwxr-xr-x  3 stevie stevie 4,0K 12. Jul 15:50 .
drwx------ 23 stevie stevie 4,0K 12. Jul 15:27 ..
-rw-r--r--  1 stevie stevie  87K 12. Jul 15:50 9.003.05.tar.gz
-rw-r--r--  1 stevie stevie 1,7K 12. Jul 15:19 PKGBUILD
drwxr-xr-x  2 stevie stevie 4,0K 12. Jul 15:50 src

Run makepkg -si and post the output

if you know how to change the language I can do it but for now it's in german.

[stevie@MainPC EthDrivers]$ makepkg -si
==> Erstelle Paket: r8125 9.003.05-0 (So 12 Jul 2020 16:01:57 CEST)
==> Prüfe Laufzeit-Abhängigkeiten...
==> Prüfe Buildtime-Abhängigkeiten...
==> Empfange Quellen...
  -> 9.003.05.tar.gz gefunden
==> FEHLER: dkms.conf wurde nicht im build Verzeichnis gefunden und ist keine URL.
PACKAGE_NAME="@_PKGBASE@"
PACKAGE_VERSION="@PKGVER@"
MAKE="make -C $kernel_source_dir M=$source_tree/@_PKGBASE@-@PKGVER@/src modules"
CLEAN="make -C $kernel_source_dir M=$source_tree/@_PKGBASE@-@PKGVER@/src clean"
BUILT_MODULE_NAME[0]="@_PKGBASE@"
BUILT_MODULE_LOCATION[0]="src"
DEST_MODULE_LOCATION[0]="/kernel/drivers/net/ethernet/realtek"
AUTOINSTALL="yes"

Save this as dkms.conf. Do not know why it is working for me and not for you.

same directory as the other file?
or there:
/usr/src/${_pkgbase}-${pkgver}/dkms.conf of course adjusted to the version

Yes, same directory

lookin' good

but new problem r8125-dkms and r8125 conflicting

Now do sudo pacman -U r8125-dkms-9.003.05-0-x86_64.pkg.tar.zst

couldn't find or read package

Directory listing?

insgesamt 348K
drwxr-xr-x  4 stevie stevie 4,0K 12. Jul 16:12 .
drwx------ 23 stevie stevie 4,0K 12. Jul 15:27 ..
-rw-r--r--  1 stevie stevie  87K 12. Jul 15:50 9.003.05.tar.gz
-rw-r--r--  1 stevie stevie  360 12. Jul 16:12 dkms.conf
drwxr-xr-x  4 stevie stevie 4,0K 12. Jul 16:12 pkg
-rw-r--r--  1 stevie stevie 1,7K 12. Jul 15:19 PKGBUILD
-rw-r--r--  1 stevie stevie  81K 12. Jul 16:12 r8125-9.003.05-0-x86_64.pkg.tar.xz
-rw-r--r--  1 stevie stevie 150K 12. Jul 16:12 r8125-dkms-9.003.05-0-x86_64.pkg.tar.xz
drwxr-xr-x  3 stevie stevie 4,0K 12. Jul 16:12 src

change .zst to .xz - weird, arch moved to zst compression months ago.

How old was the iso you used?

iso was downloaded two weeks ago or so

manjaro-kde-20.0.3-200606-linux56
:: Starte post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> dkms install r8125/9.003.05 -k 5.4.44-1-MANJARO
==> dkms install r8125/9.003.05 -k 5.6.16-1-MANJARO
Error!  Build of r8125.ko failed for: 5.6.16-1-MANJARO (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/r8125/9.003.05/build/ for more information.
==> Warning, `dkms install r8125/9.003.05 -k 5.6.16-1-MANJARO' returned 7

what is this?

Hopefully just a warning, reboot does it work? I will look up the error.

OK can't find the message. Try booting with 5.4 kernel

"Consult the make.log in the build directory" - anything?

first of all, it didn't help:Network

this is a screenshot from network manager.

I'll try the kernel thing now

Forum kindly sponsored by