最近我在我的桌面上全新安装了 14.04 版本。尽管有些问题,但一切运行正常。唯一无法正常工作的是我的以太网连接。
当我尝试打开连接或插入电缆时,系统会不断尝试连接,但几分钟后就会放弃。有时(主要是在重新启动后)我会收到已连接的消息,但当我尝试在浏览器上打开网站时,我会收到一条错误消息,提示没有连接。
我不知道这有多大帮助,但作为替代方案,我正在使用无线 USB 加密狗,而且它工作得很好(尽管有一些怪癖)。
如果有人能帮助我,我将非常感激。
以下是输出sudo lshw -class network
:
*-network
descrição: Ethernet interface
produto: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
fabricante: Realtek Semiconductor Co., Ltd.
ID físico: 0
informações do barramento: pci@0000:03:00.0
nome lógico: eth0
versão: 06
serial: 94:de:80:2f:aa:76
tamanho: 100Mbit/s
capacidade: 1Gbit/s
largura: 64 bits
clock: 33MHz
capacidades: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuração: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
recursos: irq:73 porta de E/S:d000(tamanho=256) memória:d0004000-d0004fff memória:d0000000-d0003fff
*-network
descrição: Interface sem fio
ID físico: 1
informações do barramento: usb@8:1
nome lógico: wlan0
serial: c4:6e:1f:14:38:9d
capacidades: ethernet physical wireless
configuração: broadcast=yes driver=r8188eu ip=192.168.0.13 multicast=yes wireless=IEEE 802.11bg
(描述是葡萄牙语。)
我尝试了 Elder Geek 提到的 ubuntuforums.org/showthread.php?t=1992200 上的方法。更具体地说,我使用了https://unixblogger.wordpress.com/2011/10/18/the-pain-of-an-realtek-rtl8111rtl8168-ethernet-card/当我完成这些步骤时,我收到已连接的消息,然后我尝试重新启动,但我的电脑在关机启动屏幕上挂起了。
硬重启后,问题又出现了。我使用lspci -v
第二个链接末尾指示的命令,得到了以下结果:
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
Subsystem: Gigabyte Technology Co., Ltd Motherboard
Flags: bus master, fast devsel, latency 0, IRQ 73
I/O ports at d000 [size=256]
Memory at d0004000 (64-bit, prefetchable) [size=4K]
Memory at d0000000 (64-bit, prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 01
Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
Capabilities: [d0] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 01-00-00-00-68-4c-e0-00
Kernel driver in use: r8169
我猜系统没有保存我对驱动程序所做的更改。我不知道这是否有帮助,但是,当我使用命令mkinitramfs -o /boot/initrd.img-
uname -r uname -r`(链接上的第 8 步)时,我一遍又一遍地收到此错误:
libkmod: ERROR ../libkmod/libkmod-config.c:686 kmod_config_parse: /etc/modprobe.d/blacklist.conf line 57: ignoring bad line starting with '“blacklist'
libkmod: ERROR ../libkmod/libkmod-config.c:686 kmod_config_parse: /etc/modprobe.d/blacklist.conf line 56: ignoring bad line starting with '“blacklist'
正在起作用!
我得到的最后一个错误是因为我在命令上遗漏了“ echo “blacklist r8169″ >> /etc/modprobe.d/blacklist.conf
(步骤 5)。最后我得到了两行blacklist r8169
。在更正该错误并重新使用mkinitramfs -o /boot/initrd.img-
uname -r uname -r` 命令后,我重新启动了系统,现在它似乎运行正常。
感谢 Elder Geek 的帮助。
答案1
答案2
我需要将 Realtek 以太网控制器的驱动程序从 r8169 更改为 r8168。我使用了https://unixblogger.wordpress.com/2011/10/18/the-pain-of-an-realtek-rtl8111rtl8168-ethernet-card/(通过用户 Elder Geek 的链接)。