[Testing - Bookworm] After debian testing update ethernet device disappeared!?
[Testing - Bookworm] After debian testing update ethernet device disappeared!?
Hello!
I use debian testing. Both wired and wireless network work fine. 2023-01-22 after update upgrade dist-upgrade and reboot, wired network broken while wireless network work ok.
I tried to solve the problem but wired network still not work. So I need your help, thanks.
I use debian testing from 2019.9 and I don't want to reinstall debian operating system.
Thanks a lot.
1. During the upgrade process I select 'Y' not 'N' to use new version's config except samba and grub.
2. After reboot, wired network broken and ethernet device do not exist and a new error message display at boot: Failed to start Load AppArmor profiles.
3. I remove apparmor and rename /etc/apparmor.d
4. I download and install: dpkg -i firmware-realtek_20221214-3_all.deb
5. ethernet device enp3s0(like this name) disappeared.
root@debian:~# networkctl
WARNING: systemd-networkd is not running, output will be incomplete.
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback - unmanaged
2 wlp6s0 wlan - unmanaged
2 links listed.
root@debian:~#
root@debian:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
6. I tried to change 'managed=false' to 'managed=true', but the problem still remains.
root@debian:~# cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
7.
root@debian:/mnt/fctmpfs# lspci | grep Ethernet
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0b)
lspci
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0b)
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
05:00.0 USB controller: Etron Technology, Inc. EJ168 USB 3.0 Host Controller (rev 01)
06:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)
root@debian:~# lspci -knn |grep -A3 -i net
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0b)
Subsystem: Acer Incorporated [ALI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1025:063f]
Kernel modules: r8169
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader [10ec:5209] (rev 01)
Subsystem: Acer Incorporated [ALI] RTS5209 PCI Express Card Reader [1025:8020]
--
06:00.0 Network controller [0280]: Qualcomm Atheros AR9462 Wireless Network Adapter [168c:0034] (rev 01)
Subsystem: Lite-On Communications Inc AR9462 Wireless Network Adapter [11ad:6621]
Kernel driver in use: ath9k
Kernel modules: ath9k
root@debian:~#
root@debian:~# lsmod | grep r8169
r8169 94208 0
mdio_devres 16384 1 r8169
libphy 180224 3 r8169,mdio_devres,realtek
8. nm-connection-editor do not have ethernet device name ether.
I use debian testing. Both wired and wireless network work fine. 2023-01-22 after update upgrade dist-upgrade and reboot, wired network broken while wireless network work ok.
I tried to solve the problem but wired network still not work. So I need your help, thanks.
I use debian testing from 2019.9 and I don't want to reinstall debian operating system.
Thanks a lot.
1. During the upgrade process I select 'Y' not 'N' to use new version's config except samba and grub.
2. After reboot, wired network broken and ethernet device do not exist and a new error message display at boot: Failed to start Load AppArmor profiles.
3. I remove apparmor and rename /etc/apparmor.d
4. I download and install: dpkg -i firmware-realtek_20221214-3_all.deb
5. ethernet device enp3s0(like this name) disappeared.
root@debian:~# networkctl
WARNING: systemd-networkd is not running, output will be incomplete.
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback - unmanaged
2 wlp6s0 wlan - unmanaged
2 links listed.
root@debian:~#
root@debian:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
6. I tried to change 'managed=false' to 'managed=true', but the problem still remains.
root@debian:~# cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
7.
root@debian:/mnt/fctmpfs# lspci | grep Ethernet
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0b)
lspci
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0b)
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
05:00.0 USB controller: Etron Technology, Inc. EJ168 USB 3.0 Host Controller (rev 01)
06:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)
root@debian:~# lspci -knn |grep -A3 -i net
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0b)
Subsystem: Acer Incorporated [ALI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1025:063f]
Kernel modules: r8169
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader [10ec:5209] (rev 01)
Subsystem: Acer Incorporated [ALI] RTS5209 PCI Express Card Reader [1025:8020]
--
06:00.0 Network controller [0280]: Qualcomm Atheros AR9462 Wireless Network Adapter [168c:0034] (rev 01)
Subsystem: Lite-On Communications Inc AR9462 Wireless Network Adapter [11ad:6621]
Kernel driver in use: ath9k
Kernel modules: ath9k
root@debian:~#
root@debian:~# lsmod | grep r8169
r8169 94208 0
mdio_devres 16384 1 r8169
libphy 180224 3 r8169,mdio_devres,realtek
8. nm-connection-editor do not have ethernet device name ether.
Re: [Testing - Bookworm] After debian testing update ethernet device disappeared!?
You need to choose a form of network configuration.
See: https://wiki.debian.org/NetworkConfiguration
From the command output provided, the kernel sees your ethernet network adapter and has the correct driver to run it, r8169, so it's just a matter of configuration method you choose to use from the above link.
See: https://wiki.debian.org/NetworkConfiguration
From the command output provided, the kernel sees your ethernet network adapter and has the correct driver to run it, r8169, so it's just a matter of configuration method you choose to use from the above link.
Re: [Testing - Bookworm] After debian testing update ethernet device disappeared!?
I will do as your guidance.
Thank you very much.
Thank you very much.
Re: [Testing - Bookworm] After debian testing update ethernet device disappeared!?
I will do as your guidance.NorthEast wrote: ↑2023-01-25 03:30 You need to choose a form of network configuration.
See: https://wiki.debian.org/NetworkConfiguration
From the command output provided, the kernel sees your ethernet network adapter and has the correct driver to run it, r8169, so it's just a matter of configuration method you choose to use from the above link.
Thank you very much.
Re: [Testing - Bookworm] After debian testing update ethernet device disappeared!?
I read and learned 'https://wiki.debian.org/NetworkConfiguration'.
'3 ways to configure the network' all need the name of the interfaces.
root@debian:~# ls /sys/class/net
lo wlp6s0
How to get the name of the ethernet interface?
Thank a lot.
'3 ways to configure the network' all need the name of the interfaces.
root@debian:~# ls /sys/class/net
lo wlp6s0
How to get the name of the ethernet interface?
Thank a lot.
- sunrat
- Administrator
- Posts: 5194
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 56 times
- Been thanked: 196 times
Re: [Testing - Bookworm] After debian testing update ethernet device disappeared!?
Code: Select all
ip a
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Re: [Testing - Bookworm] After debian testing update ethernet device disappeared!?
Thank you, I tried, it shows:
root@debian:/home/fc# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 2c:d0:5a:06:4d:80 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.147/24 brd 192.168.1.255 scope global noprefixroute wlp6s0
valid_lft forever preferred_lft forever
inet6 2409:8a70:a64:bb90:8428:8364:415e:d6a5/64 scope global dynamic noprefixroute
valid_lft 259182sec preferred_lft 259182sec
inet6 fe80::49f6:c894:934c:92ec/64 scope link noprefixroute
valid_lft forever preferred_lft forever
root@debian:/home/fc#
Re: [Testing - Bookworm] After debian testing update ethernet device disappeared!?
The ethernet adapter is not showing up. Check that it's not blacklisted anywhere like in /etc/modules, /etc/modules-load.d/, /etc/modprobe.d/.
Re: [Testing - Bookworm] After debian testing update ethernet device disappeared!?
Thanks. I will read and learn and do as you say.
Re: [Testing - Bookworm] After debian testing update ethernet device disappeared!?
1. /etc/modules is empty.
root@debian:~# cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
2. There is no blacklist.conf file in both /etc/modules-load.d/ and /etc/modprobe.d/
/etc/modprobe.d/
amd64-microcode-blacklist.conf
blacklist-nouveau.conf.fcbk
bumblebee.conf
dkms.conf
nvidia-blacklists-nouveau.conf
nvidia.conf -> /etc/alternatives/glx--nvidia-modprobe.conf
nvidia-options.conf -> /etc/alternatives/nvidia--nvidia-options.conf
/etc/modules-load.d/
modules.conf -> ../modules
nvidia.conf -> /etc/alternatives/glx--nvidia-load.conf
3. Here is no "Kernel driver in use: " line in r8169
root@debian:~# lspci -v
... ...
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0b)
Subsystem: Acer Incorporated [ALI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
... ...
Capabilities: [160] Device Serial Number 1b-00-00-00-68-4c-e0-00
Kernel modules: r8169
... ...
06:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)
Subsystem: Lite-On Communications Inc AR9462 Wireless Network Adapter
... ...
Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
Kernel driver in use: ath9k
Kernel modules: ath9k
4. depends
root@debian:~# modinfo -F depends r8169
libphy,mdio_devres
root@debian:~#
root@debian:~# lsmod | grep r8169
r8169 94208 0
mdio_devres 16384 1 r8169
libphy 180224 3 r8169,mdio_devres,realtek
root@debian:~#
root@debian:~# cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
2. There is no blacklist.conf file in both /etc/modules-load.d/ and /etc/modprobe.d/
/etc/modprobe.d/
amd64-microcode-blacklist.conf
blacklist-nouveau.conf.fcbk
bumblebee.conf
dkms.conf
nvidia-blacklists-nouveau.conf
nvidia.conf -> /etc/alternatives/glx--nvidia-modprobe.conf
nvidia-options.conf -> /etc/alternatives/nvidia--nvidia-options.conf
/etc/modules-load.d/
modules.conf -> ../modules
nvidia.conf -> /etc/alternatives/glx--nvidia-load.conf
3. Here is no "Kernel driver in use: " line in r8169
root@debian:~# lspci -v
... ...
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0b)
Subsystem: Acer Incorporated [ALI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
... ...
Capabilities: [160] Device Serial Number 1b-00-00-00-68-4c-e0-00
Kernel modules: r8169
... ...
06:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)
Subsystem: Lite-On Communications Inc AR9462 Wireless Network Adapter
... ...
Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
Kernel driver in use: ath9k
Kernel modules: ath9k
4. depends
root@debian:~# modinfo -F depends r8169
libphy,mdio_devres
root@debian:~#
root@debian:~# lsmod | grep r8169
r8169 94208 0
mdio_devres 16384 1 r8169
libphy 180224 3 r8169,mdio_devres,realtek
root@debian:~#
Re: [Testing - Bookworm] After debian testing update ethernet device disappeared!?
I check and I found nothing. I do not know kernel logs a lot.
After dmesg, I search online and I read a lot of pages about this network problem.
Finally, I found the answer and now my wired network is working fine!
Thank very much to friends help me above!
The answer is:
lspci -v
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0b)
Kernel modules: r8169
r8168 Ethernet control chip is incorrectly driven by r8169 by Debian.
So, just three steps:
apt-get update
apt-get install r8168-dkms
reboot
fc@debian:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 70:54:d2:7d:bd:ba brd ff:ff:ff:ff:ff:ff
inet 192.168.1.64/24 brd 192.168.1.255 scope global dynamic noprefixroute enp3s0
valid_lft 86289sec preferred_lft 86289sec
inet6 2409:8a70:a64:bb90:ab0d:dee9:8ec8:de75/64 scope global dynamic noprefixroute
valid_lft 259092sec preferred_lft 259092sec
inet6 fe80::f364:8dc:7ae1:63b/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 2c:d0:5a:06:4d:80 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.147/24 brd 192.168.1.255 scope global noprefixroute wlp6s0
valid_lft forever preferred_lft forever
inet6 2409:8a70:a64:bb90:8428:8364:415e:d6a5/64 scope global dynamic noprefixroute
valid_lft 259094sec preferred_lft 259094sec
inet6 fe80::49f6:c894:934c:92ec/64 scope link noprefixroute
valid_lft forever preferred_lft forever
fc@debian:~$
Wish to help more friends!
Re: [Testing - Bookworm] After debian testing update ethernet device disappeared!?
Thanks for that solution. It sounds like your ethernet adapter is a little older than expected. In relation to that dkms package you needed to install, it's noted in the apt description that:
so it's handy to know that.This driver should only be used for devices not yet supported by the in-kernel driver r8169.
Re: [Testing - Bookworm] After debian testing update ethernet device disappeared!?
Thank your help very very much.NorthEast wrote: ↑2023-01-26 21:20 Thanks for that solution. It sounds like your ethernet adapter is a little older than expected. In relation to that dkms package you needed to install, it's noted in the apt description that:so it's handy to know that.This driver should only be used for devices not yet supported by the in-kernel driver r8169.
Below is for supplement for friends to reference:
https://www.realtek.com/zh-tw/directly- ... ceadcace96
GBE Ethernet LINUX driver r8169 for kernel up to 5.19 6.031.00 2022/11/04 36 KB
I download and do as driver folder's readme, but execute the command 'make clean modules', output a lot errors.
After install r8168-dkms:
root@debian:/home/fc# cat /etc/modprobe.d/r8168-dkms.conf
# settings for r8168-dkms
# map the specific PCI IDs instead of blacklisting the whole r8169 module
alias pci:v00001186d00004300sv00001186sd00004B10bc*sc*i* r8168
alias pci:v000010ECd00008168sv*sd*bc*sc*i* r8168
# if the aliases above do not work, uncomment the following line
# to blacklist the whole r8169 module
#blacklist r8169
root@debian:/home/fc#
root@debian:/home/fc# lspci -v
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0b)
Subsystem: Acer Incorporated [ALI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
... ...
Capabilities: [160] Device Serial Number 1b-00-00-00-68-4c-e0-00
Kernel driver in use: r8168
Kernel modules: r8168