最近我在桌面上全新安裝了 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
(描述為葡萄牙語。)
我嘗試了 ubuntuforums.org/showthread.php?t=1992200 上指示的方法,由 Elder Geek 引用。更具體地說,我使用了逐步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` 命令後,我重新啟動,它似乎工作正常, 現在。
感謝極客長老的幫助。
答案1
答案2
我需要將 Realtek 乙太網路控制器的驅動程式從 r8169 更改為 r8168。我使用了該方法https://unixblogger.wordpress.com/2011/10/18/the-pain-of-an-realtek-rtl8111rtl8168-ethernet-card/(透過使用者 Elder Geek 的連結)。