Ubuntu 20.04 没有有线网络,无线正常

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
wzhxxt
帖子: 4
注册时间: 2021-03-11 9:35
系统: Ubuntu 20.04

Ubuntu 20.04 没有有线网络,无线正常

#1

帖子 wzhxxt » 2021-03-11 9:50

做为一名新手,第一次提问,有很多让人见笑的问题,请多见谅。 :Cry
我用的是Dell老笔记本练手(Inspiron-3521)独显是Radeon HD 7670M
无线连接正常,没有有线网,独显驱动也装不上
oot@wzhxxt-Inspiron-3521:/home/wzhxxt/amd# ifconfig -a
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (本地环回)
RX packets 3956 bytes 387139 (387.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3956 bytes 387139 (387.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlp8s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.50.101 netmask 255.255.255.0 broadcast 192.168.50.255
inet6 fe80::4790:1304:96d4:4012 prefixlen 64 scopeid 0x20<link>
ether bc:85:56:45:58:2f txqueuelen 1000 (以太网)
RX packets 335846 bytes 411120808 (411.1 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 150127 bytes 65912250 (65.9 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
我这那个叫LO不是网卡吗?这不是有了吗?但是我在「设置」-「网络」里看不到呀?
我把dmesg信息放在附档了,请高手帮我看看,已经搞了2天了,都没搞定,多谢! :Haha
附件
1.txt
(102.84 KiB) 已下载 99 次
linuxmm9
帖子: 214
注册时间: 2017-08-19 10:12
系统: linux

Re: Ubuntu 20.04 没有有线网络,无线正常

#2

帖子 linuxmm9 » 2021-03-11 11:04

是不是BIOS里面把设备关闭了
头像
astolia
论坛版主
帖子: 6469
注册时间: 2008-09-18 13:11

Re: Ubuntu 20.04 没有有线网络,无线正常

#3

帖子 astolia » 2021-03-11 11:41

lo是本地环回,你可以理解为一个仅供本机应用程序之间相互通讯的虚拟网卡。内核自带独显驱动radeon,不需要额外安装,或者你遇到了什么问题?
你的有线网卡是RTL8105e,系统给你匹配到了自带的r8169驱动,但它对你的网卡支持上似乎存在问题。你可以尝试安装r8168驱动并禁用自带的r8169驱动

代码: 全选

sudo apt install r8168-dkms
echo "blacklist r8169" | sudo tee /etc/modprobe.d/blacklist-r8169.conf
然后重启系统
wzhxxt
帖子: 4
注册时间: 2021-03-11 9:35
系统: Ubuntu 20.04

Re: Ubuntu 20.04 没有有线网络,无线正常

#4

帖子 wzhxxt » 2021-03-11 11:53

linuxmm9 写了: 2021-03-11 11:04 是不是BIOS里面把设备关闭了
不知道呀,等下我看看
wzhxxt
帖子: 4
注册时间: 2021-03-11 9:35
系统: Ubuntu 20.04

Re: Ubuntu 20.04 没有有线网络,无线正常

#5

帖子 wzhxxt » 2021-03-11 15:32

astolia 写了: 2021-03-11 11:41 lo是本地环回,你可以理解为一个仅供本机应用程序之间相互通讯的虚拟网卡。内核自带独显驱动radeon,不需要额外安装,或者你遇到了什么问题?
你的有线网卡是RTL8105e,系统给你匹配到了自带的r8169驱动,但它对你的网卡支持上似乎存在问题。你可以尝试安装r8168驱动并禁用自带的r8169驱动

代码: 全选

sudo apt install r8168-dkms
echo "blacklist r8169" | sudo tee /etc/modprobe.d/blacklist-r8169.conf
然后重启系统
版主:
帮我看看哪里出了问题

root@wzhxxt-Inspiron-3521:/home/wzhxxt# sudo apt install r8168-dkms
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
r8168-dkms 已经是最新版 (8.048.00-1ubuntu0.20.04.1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 1 个软件包未被升级。
有 3 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
您希望继续执行吗? [Y/n] y
正在设置 fglrx-core (2:15.201-0ubuntu1) ...
dpkg: 错误: 版本号 '-' 语法错误: 版本号为空
dpkg: 错误: 版本号 '-' 语法错误: 版本号为空
Removing old fglrx-core-15.201 DKMS files...

------------------------------
Deleting module version: 15.201
completely from the DKMS tree.
------------------------------
Done.
Loading new fglrx-core-15.201 DKMS files...
Building for 5.8.0-44-generic
Building for architecture x86_64
Building initial module for 5.8.0-44-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/fglrx-core.0.c
rash'
Error! Bad return status for module build on kernel: 5.8.0-44-generic (x86_64)
Consult /var/lib/dkms/fglrx-core/15.201/build/make.log for more information.
dpkg: 处理软件包 fglrx-core (--configure)时出错:
已安装 fglrx-core 软件包 post-installation 脚本 子进程返回错误状态 10
正在设置 r8168-dkms (8.048.00-1ubuntu0.20.04.1) ...
Removing old r8168-8.048.00 DKMS files...

------------------------------
Deleting module version: 8.048.00
completely from the DKMS tree.
------------------------------
Done.
Loading new r8168-8.048.00 DKMS files...
Building for 5.8.0-44-generic
Building initial module for 5.8.0-44-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/r8168-dkms.0.c
rash'
Error! Bad return status for module build on kernel: 5.8.0-44-generic (x86_64)
Consult /var/lib/dkms/r8168/8.048.00/build/make.log for more information.
dpkg: 处理软件包 r8168-dkms (--configure)时出错:
已安装 r8168-dkms 软件包 post-installation 脚本 子进程返回错误状态 10
dpkg: 依赖关系问题使得 fglrx-dev 的配置工作不能继续:
fglrx-dev 依赖于 fglrx-core | fglrx;然而:
软件包 fglrx-core 尚未配置。
未安装软件包 fglrx。

dpkg: 处理软件包 fglrx-dev (--configure)时出错:
依赖关系问题 - 仍未被配置
因为错误消息指示这是由于上一个问题导致的错误,没有写入 apport 报告。
在处理时有
错误发生:
fglrx-core
r8168-dkms
fglrx-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
头像
astolia
论坛版主
帖子: 6469
注册时间: 2008-09-18 13:11

Re: Ubuntu 20.04 没有有线网络,无线正常

#6

帖子 astolia » 2021-03-13 15:39

驱动编译失败,看/var/lib/dkms/r8168/8.048.00/build/make.log 里面报了什么错
wzhxxt
帖子: 4
注册时间: 2021-03-11 9:35
系统: Ubuntu 20.04

Re: Ubuntu 20.04 没有有线网络,无线正常

#7

帖子 wzhxxt » 2021-03-18 12:00

我来反馈下我的问题,这二天没空学ubuntu,然后今天打开电脑,更新了下系统补丁(有几十M),网卡驱动有了,可以正常工作了,我并没有解决这个问题,下次如果还是这问题,还是很法解决,多谢大家的关注,非常感谢!
回复