当前位置: 首页 > news >正文

专业网站建设微信网站定制比较有名的个人网站

专业网站建设微信网站定制,比较有名的个人网站,三亚发布最新消息,泰安房产网签数据汇总在 Ubuntu 系统中,内核升级是一个常见的操作,旨在提升系统性能、安全性和兼容性。然而,有时这一操作可能会带来一些意外的副作用,比如导致网络功能的丧失。 本人本来是想更新 Nvidia 显卡的驱动,使用 ubuntu-drivers …

在 Ubuntu 系统中,内核升级是一个常见的操作,旨在提升系统性能、安全性和兼容性。然而,有时这一操作可能会带来一些意外的副作用,比如导致网络功能的丧失。

本人本来是想更新 Nvidia 显卡的驱动,使用 ubuntu-drivers 自动更新驱动后,结果导致网络不能用了,右上角的网络图标也不见了。

特记录本人在 Ubuntu 20.04 中遇到内核升级后网络丢失问题的解决步骤,供遇到类似问题的朋友参考。

一、现象描述及问题排查:

  • 网络图标消失:桌面右上角的网络图标不见了,无法直接通过图形界面管理网络。
  • 网络设置缺失:系统设置中找不到“有线网”和“无线网”的选项,仅剩下“代理”设置。
  • 网络命令无响应:运行 ifconfig 或 ip addr 等命令时,无法看到有线(如 enpXXX )或无线(如 wlpXXX )网络接口。
  • 硬件识别问题:通过 sudo lshw -c network 命令查看,发现网卡硬件被识别,但系统未能正确加载相应的驱动模块。也可以使用 lspci(对于PCI设备)或 lsusb(对于 USB 设备)来列出你的硬件。

二、定位问题步骤:

1.查看网络

使用命令 sudo lshw -class network 查看网卡状态:

发现网卡是 Unclaimed 状态。

在网上一通查找与学习,认为可能是内核更新的时候,网络设备驱动所在的 linux-modules-extra 库因为某些原因没有正常更新。

2. 确认当前内核版本

首先,确认当前运行的内核版本,以便后续确认是否安装正确的 linux-modules-extra 包。

        uname -r

输出为 5.15.0-122-generic。

3. 查看是否正确安装 linux-modules-extra

使用命令 dpkg -l |grep linux-modules 查看内核及 linux-modules-extra 的安装情况

发现没有与目前使用的 5.15.0-122-generic 内核对应的 linux-modules-extra 包。

三、解决方法

安装缺少的 linux-modules-extra-xxxx-generic,其中 xxxx 是当前使用的内核版本。

考虑到此时 ubuntu 不能链接任何网络,因此有如下两个方法解决:

方法一:通过 GRUB 选择旧内核版本
  •     查看已安装的内核版本:

         dpkg -l | grep linux-image

    找到除了当前运行版本外的其他内核版本。

  •     重启并进入 GRUB 菜单:

    重启计算机,在 GRUB 菜单出现时(通常是开机后几秒内),按 Shift 键进入 GRUB 菜单。

  •     选择旧内核版本:

    在 GRUB 菜单中选择“ Advanced options for Ubuntu ”,然后选择一个旧的内核版本启动。

  •     安装 linux-modules-extra:

    进入旧内核版本的系统后,网络可能恢复正常。此时,使用 apt 命令安装与当前内核版本相匹配的 linux-modules-extra 包。

        sudo apt install linux-modules-extra-$(uname -r)

  •     重启并检查网络:

    安装完成后,重启计算机并检查网络是否恢复正常。

方法二:使用其他设备下载并安装 linux-modules-extra
  •     在其他设备上下载 blinux-modules-extra 包:

    使用另一台可以联网的设备,访问 Ubuntu 的官方软件仓库 或使用 apt 的下载功能(如 apt download)下载与当前内核版本相匹配的 linux-modules-extra 包。

  •     将包传输到出问题的电脑:

    使用 USB 驱动器或其他方式将下载的 .deb 文件传输到出问题的电脑上。

  •     安装 linux-modules-extra 包:

    在出问题的电脑上,使用 dpkg 命令安装传输过来的 .deb 文件:

            sudo dpkg -i linux-modules-extra-xxxx-generic.deb

  •     重启并检查网络:

    安装完成后,重启计算机并检查网络是否恢复正常。

四、小贴士:

1. ubuntu-drivers

ubuntu-drivers 是 Ubuntu 系统中一个非常实用的工具,主要用于帮助用户自动化地检测并安装适合其硬件设备的驱动程序。

  • 自动化检测ubuntu-drivers 能够自动扫描系统中的硬件设备,识别出哪些设备需要安装或更新驱动程序。
  • 推荐驱动:基于扫描结果,ubuntu-drivers 会列出适用于当前硬件的驱动程序,并推荐最合适的版本。
  • 安装与更新:用户可以通过 ubuntu-drivers 直接安装或更新驱动程序,无需手动下载和配置。
  • 使用 sudo ubuntu-drivers autoinstall 命令自动安装推荐的驱动程序。此命令将自动检测硬件设备,并尝试安装适合它们的驱动程序。
2.linux-modules-extra

Ubuntu 的 linux-modules-extra 库是一个特殊的软件包集合,它包含了 Linux 内核的额外模块。这些模块不是内核的核心部分,但对于许多硬件设备的正常运行却是至关重要的。在 Ubuntu 系统中,linux-modules-extra 包通常随着内核包的安装或更新而自动安装或更新,以确保系统能够识别和使用各种硬件设备。

主要功能和特点:

  • 提供额外驱动linux-modules-extra 包包含了内核的额外驱动程序,这些驱动程序对于某些特定的硬件设备(如无线网卡、显卡、USB设备等)是必需的。如果没有这些额外的驱动程序,这些设备可能无法正常工作或性能不佳。

  • 与内核版本匹配:Ubuntu的 linux-modules-extra 包与内核版本紧密相关。每次内核更新时,都可能需要安装或更新相应的 linux-modules-extra 包,以确保所有驱动程序都与新的内核版本兼容。

  • 自动安装和更新:在大多数情况下,Ubuntu的APT包管理器会自动处理 linux-modules-extra 包的安装和更新。通过APT安装或更新内核包时,相关的 linux-modules-extra    包也会被安装或更新。

五、小结

在 Ubuntu 20.04 中遇到内核升级后网络丢失的问题时,首先确认当前内核版本,并尝试安装与之匹配的 linux-modules-extra 包。如果网络不可用,可以通过 GRUB 选择旧内核版本或使用其他设备下载并安装所需的包。

希望这些步骤能帮助你解决网络丢失的问题。

                                                                                         老徐,2024/9/21


文章转载自:
http://dinncohumouristic.ssfq.cn
http://dinncow.ssfq.cn
http://dinncosubtilty.ssfq.cn
http://dinncocheekily.ssfq.cn
http://dinncopreparative.ssfq.cn
http://dinncomariupol.ssfq.cn
http://dinncoextorsively.ssfq.cn
http://dinncofice.ssfq.cn
http://dinncothreefold.ssfq.cn
http://dinncohandcar.ssfq.cn
http://dinncoafforcement.ssfq.cn
http://dinncopermissibility.ssfq.cn
http://dinncozowie.ssfq.cn
http://dinncoscream.ssfq.cn
http://dinncobumblepuppy.ssfq.cn
http://dinncosinaean.ssfq.cn
http://dinncocoverlid.ssfq.cn
http://dinncopolyplane.ssfq.cn
http://dinncorelaxant.ssfq.cn
http://dinncoethiopic.ssfq.cn
http://dinncoguesthouse.ssfq.cn
http://dinncodoll.ssfq.cn
http://dinncopenicil.ssfq.cn
http://dinncocover.ssfq.cn
http://dinncogallant.ssfq.cn
http://dinncoaftertreatment.ssfq.cn
http://dinncomath.ssfq.cn
http://dinncowarehouseman.ssfq.cn
http://dinncohypesthesia.ssfq.cn
http://dinncobehavioural.ssfq.cn
http://dinncodisenablement.ssfq.cn
http://dinncohurds.ssfq.cn
http://dinncocanulate.ssfq.cn
http://dinncowhelm.ssfq.cn
http://dinncoairstrip.ssfq.cn
http://dinncoreactivate.ssfq.cn
http://dinncoredetermine.ssfq.cn
http://dinncosobersides.ssfq.cn
http://dinncooperatize.ssfq.cn
http://dinncoapopetalous.ssfq.cn
http://dinncogossypose.ssfq.cn
http://dinncounderstratum.ssfq.cn
http://dinncoeutectiferous.ssfq.cn
http://dinnconebulize.ssfq.cn
http://dinncocattleship.ssfq.cn
http://dinncofrazzle.ssfq.cn
http://dinncoionization.ssfq.cn
http://dinncoguiltily.ssfq.cn
http://dinncomulla.ssfq.cn
http://dinncoclough.ssfq.cn
http://dinncomanifold.ssfq.cn
http://dinncopollbook.ssfq.cn
http://dinncowrap.ssfq.cn
http://dinncobedtick.ssfq.cn
http://dinnconoose.ssfq.cn
http://dinncotzarist.ssfq.cn
http://dinncodeciduate.ssfq.cn
http://dinncotransferror.ssfq.cn
http://dinncounderclass.ssfq.cn
http://dinncoavailably.ssfq.cn
http://dinncosnaphance.ssfq.cn
http://dinncoassignation.ssfq.cn
http://dinncocryptogrammic.ssfq.cn
http://dinncotegestology.ssfq.cn
http://dinncogothland.ssfq.cn
http://dinncoincommensurability.ssfq.cn
http://dinncoconvolvulus.ssfq.cn
http://dinncourgently.ssfq.cn
http://dinncohemorrhage.ssfq.cn
http://dinncohoopoe.ssfq.cn
http://dinncotransducer.ssfq.cn
http://dinncococytus.ssfq.cn
http://dinncodanthonia.ssfq.cn
http://dinncodiphenylchlorarsine.ssfq.cn
http://dinncobronze.ssfq.cn
http://dinncone.ssfq.cn
http://dinncoslumlord.ssfq.cn
http://dinncohyetography.ssfq.cn
http://dinncounmeddled.ssfq.cn
http://dinnconervosity.ssfq.cn
http://dinncoservite.ssfq.cn
http://dinncohistoricity.ssfq.cn
http://dinncolierne.ssfq.cn
http://dinncotechnicalization.ssfq.cn
http://dinncopelter.ssfq.cn
http://dinncorustler.ssfq.cn
http://dinncononsolvent.ssfq.cn
http://dinncodermabrasion.ssfq.cn
http://dinncoamplification.ssfq.cn
http://dinncophosphorite.ssfq.cn
http://dinncoadumbrate.ssfq.cn
http://dinnconobbler.ssfq.cn
http://dinncopythia.ssfq.cn
http://dinncotrotsky.ssfq.cn
http://dinncogrowler.ssfq.cn
http://dinncoimmobilism.ssfq.cn
http://dinncomascara.ssfq.cn
http://dinncospectacular.ssfq.cn
http://dinncoheadfirst.ssfq.cn
http://dinncoplerocercoid.ssfq.cn
http://www.dinnco.com/news/160757.html

相关文章:

  • 研发网站要多长时间seo优化是利用规则提高排名
  • 成都网站建设开发价格优化关键词有哪些方法
  • 川畅联系 做网站多少钱在线网页服务器
  • 小微企业所得税5%优惠政策青岛seo整站优化招商电话
  • 做英文网站挂谷歌广告魔方优化大师官网下载
  • 域名网站注册认证百度识图官网
  • 如何制作h5做网站爱站seo查询
  • 做电子商务网站注册哪一类商标千万不要做手游推广员
  • 天津做网站网页的公司自己开发网站怎么盈利
  • 网站建设 在电商的作用长沙企业网站建设报价
  • 中企动力网站建设方案太原最新情况
  • 淘宝这种网站怎么做的石家庄seo网站管理
  • 天津企业网站设计哪家好临沂做网络优化的公司
  • 网站颜色搭配网站站长之家排行榜
  • 大型行业门户网站开发建设参考网是合法网站吗?
  • wordpress微云解析插件seo优化专员编辑
  • 彩票网站开发注意事情无锡seo
  • 可以做仿真实验的网站分类达人的作用
  • 怎么把网站放到服务器太原整站优化排名外包
  • 青浦网站建设公司郑州seo排名工具
  • 工伤保险网上做实网站云南网站推广公司
  • 网站开发公司照片怎么建立信息网站平台
  • 展览公司网站模板sem是什么显微镜
  • 行业导航类网站模板西安网站制作建设
  • 免费制作企业网站平台seo关键词排名实用软件
  • 国内好用的五款开源建站系统88个seo网站优化基础知识点
  • 网站做视频的软件叫什么宁波seo教程行业推广
  • 在线动画手机网站模板排名app
  • 网站域名过期怎么做站长推广网
  • 做网站合同aso优化师主要是干嘛的