Ubuntu 18.04 安装博通(Broadcom)无线网卡驱动

首先从iso镜像文件中提取出驱动文件。

./pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb

./pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb

然后按顺序直接sudo dpkg -i 安装,装完重启即可生效。

sudo dpkg -i dkms_2.2.0.3-2ubuntu11_all.deb
sudo dpkg -i bcmwl-kernel-source_6.30.223.248+bdcom-0ubuntu8_amd64.deb

如果安装过程中报 没有安装gcc 的错误,那么也是直接从镜像文件中提取相关文件dpkg -i 安装即可,缺什么deb包就直接在iso文件中找就行,期间大概安装了10多个deb包,然后才完成gcc和g++的安装。

也可以参考https://www.cnblogs.com/0x4D75/p/9443842.html 配置本地源安装。

在本文的最后部分的history是我的整个安装过程的命令历史记录。

接下来,继续安装dkms和bcmwl

b4@pc:~$ sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb
(Reading database ... 128918 files and directories currently installed.)
Preparing to unpack .../dkms_2.3-3ubuntu9.2_all.deb ...
Unpacking dkms (2.3-3ubuntu9.2) over (2.3-3ubuntu9.2) ...
dpkg: dependency problems prevent configuration of dkms:
 dkms depends on gcc; however:
  Package gcc is not configured yet.

dpkg: error processing package dkms (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.3-2) ...
Errors were encountered while processing:
 dkms
b4@pc:~$ sudo dpkg --configure -a
Setting up gcc (4:7.3.0-3ubuntu2) ...
Setting up dkms (2.3-3ubuntu9.2) ...
b4@pc:~$ sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb
(Reading database ... 128918 files and directories currently installed.)
Preparing to unpack .../dkms_2.3-3ubuntu9.2_all.deb ...
Unpacking dkms (2.3-3ubuntu9.2) over (2.3-3ubuntu9.2) ...
Setting up dkms (2.3-3ubuntu9.2) ...
Processing triggers for man-db (2.8.3-2) ...
b4@pc:~$
b4@pc:~$ find /media/b4/UBUNTU\ 18_0/ -name bcm*
/media/b4/UBUNTU 18_0/pool/restricted/b/bcmwl
/media/b4/UBUNTU 18_0/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb
b4@pc:~$ sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb
Selecting previously unselected package bcmwl-kernel-source.
(Reading database ... 128918 files and directories currently installed.)
Preparing to unpack .../bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb ...
Unpacking bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu4) ...
Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu4) ...
Loading new bcmwl-6.30.223.271+bdcom DKMS files...
Building for 4.15.0-29-generic
Building for architecture x86_64
Building initial module for 4.15.0-29-generic
Generating a 2048 bit RSA private key
........+++
...............................................+++
writing new private key to '/var/lib/shim-signed/mok/MOK.priv'
-----
Secure Boot not enabled on this system.
Done.

wl:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-29-generic/updates/dkms/

depmod......

DKMS: install completed.
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.130ubuntu3.1) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-29-generic
b4@pc:~$ 

successful ...

Package gcc is not configured yet. 解决办法

安装完gcc后安装驱动deb包时,爆出这个错误。

sudo dpkg --configure -a

ok.

history

这一部分是整个安装过程的命令历史记录,包括安装gcc和g++的过程,安装broadcom网卡驱动的过程。

   22  find . -name gcc*
   23  cd pool/main/g/gcc-defaults/
   24  ls
   25  sudo dpkg -i gcc_7.3.0-3ubuntu2_amd64.deb
   26  cd ../../..
   27  cd ..
   28  find . -name gcc*
   29  cd pool/main/g/gcc-7/
   30  ls
   31  sudo dpkg -i gcc-7_7.3.0-16ubuntu3_amd64.deb
   32  sudo dpkg -i libgcc-7-dev_7.3.0-16ubuntu3_amd64.deb
   33  find /media/b4/UBUNTU\ 18_0/ -name libitm1*
   34  cd ../gcc-8/
   35  ls
   36  sudo dpkg -i libitm1_8-20180414-1ubuntu2_amd64.deb
   37  sudo dpkg -i libatomic1_8-20180414-1ubuntu2_amd64.deb
   38  sudo dpkg -i liblsan0_8-20180414-1ubuntu2_amd64.deb
   39  cd ../gcc-7/
   40  ls
   41  sudo dpkg -i gcc-7_7.3.0-16ubuntu3_amd64.deb
   42  sudo dpkg -i libgcc-7-dev_7.3.0-16ubuntu3_amd64.deb
   43  find /media/b4/UBUNTU\ 18_0/ -name libasan*
   44  sudo dpkg -i libasan4_7.3.0-16ubuntu3_amd64.deb
   45  sudo dpkg -i libgcc-7-dev_7.3.0-16ubuntu3_amd64.deb
   46  ll
   47  find /media/b4/UBUNTU\ 18_0/ -name libtsan*
   48  sudo dpkg -i ../gcc-8/libtsan0_8-20180414-1ubuntu2_amd64.deb
   49  sudo dpkg -i libgcc-7-dev_7.3.0-16ubuntu3_amd64.deb
   50  ll
   51  sudo dpkg -i libubsan0_7.3.0-16ubuntu3_amd64.deb
   52  sudo dpkg -i libgcc-7-dev_7.3.0-16ubuntu3_amd64.deb
   53  sudo dpkg -i libcilkrts5_7.3.0-16ubuntu3_amd64.deb
   54  sudo dpkg -i ../gcc-8/libmpx2_8-20180414-1ubuntu2_amd64.deb
   55  sudo dpkg -i ../gcc-8/libquadmath0_8-20180414-1ubuntu2_amd64.deb
   56  ls
   57  sudo dpkg -i gcc-7_7.3.0-16ubuntu3_amd64.deb
   58  sudo dpkg -i libgcc-7-dev_7.3.0-16ubuntu3_amd64.deb
   59  sudo dpkg -i gcc-7_7.3.0-16ubuntu3_amd64.deb
   60  gcc -v
   61  clear
   62  ls
   63  cd ../../
   64  ls
   65  cd ..
   66  ls
   67  clear
   68  find / -name bcm
   69  clear
   70  ls
   71  find . -name dkms
   72  find . -name dkms*
   73  sudo dpkg -i pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb
   74  gcc
   75  reboot
   76  gcc -v
   77  clear
   78  ls
   79  ls /usr/bin/gcc*
   80  find /media/b4/UBUNTU\ 18_0/ -name bcm*
   81  find /media/b4/UBUNTU\ 18_0/ -name dkms*
   82  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb
   83  find /media/b4/UBUNTU\ 18_0/ -name dpkg-dev*
   84  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dpkg/dpkg-dev_1.19.0.5ubuntu2_all.deb
   85  find /media/b4/UBUNTU\ 18_0/ -name make*
   86  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/m/make-dfsg/make_4.1-9.1ubuntu1_amd64.deb
   87  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dpkg/dpkg-dev_1.19.0.5ubuntu2_all.deb
   88  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb
   89  find /media/b4/UBUNTU\ 18_0/ -name g++*
   90  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/g/gcc-7/libgcc-7-
   91  find /media/b4/UBUNTU\ 18_0/ -name libstdc++*
   92  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/g/gcc-7/libstdc++-7-dev_7.3.0-16ubuntu3_amd64.deb
   93  find /media/b4/UBUNTU\ 18_0/ -name libc6*
   94  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/g/glibc/libc6-dev_2.27-3ubuntu1_amd64.deb
   95  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/g/glibc/libc-dev-bin_2.27-3ubuntu1_amd64.deb
   96  find /media/b4/UBUNTU\ 18_0/ -name linux-libc*
   97  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/l/linux/linux-libc-dev_4.15.0-29.31_amd64.deb
   98  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/g/glibc/libc6-dev_2.27-3ubuntu1_amd64.deb
   99  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/g/gcc-7/libstdc++-7-dev_7.3.0-16ubuntu3_amd64.deb
  100  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/g/gcc-7/g++-7_7.3.0-16ubuntu3_amd64.deb
  101  exit
  102  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb
  103  dpkg -l
  104  dpkg -l | grep gcc
  105  g++
  106  g++ -v
  107  gcc -v
  108  gcc
  109  g++
  110  ls /usr/bin/ g*
  111  ls /usr/bin/ g++*
  112  clear
  113  ls
  114  ls /usr/bin/ | grep g*
  115  ls /usr/bin/ | grep g++*
  116  ln -s /usr/bin/g++-7 /usr/bin/g++
  117  sudo ln -s /usr/bin/g++-7 /usr/bin/g++
  118  g++
  119  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb
  120  sudo dpkg --configure -a
  121  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb
  122  gedit e.txt
  123  find /media/b4/UBUNTU\ 18_0/ -name bcm
  124  find /media/b4/UBUNTU\ 18_0/ -name bcw
  125  find /media/b4/UBUNTU\ 18_0/ -name bcm*
  126  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb
  127  gedit e.txt
  128  reboot 

history | grep dpkg

b4@pc:~$ history | grep dpkg
   25  sudo dpkg -i gcc_7.3.0-3ubuntu2_amd64.deb
   31  sudo dpkg -i gcc-7_7.3.0-16ubuntu3_amd64.deb
   32  sudo dpkg -i libgcc-7-dev_7.3.0-16ubuntu3_amd64.deb
   36  sudo dpkg -i libitm1_8-20180414-1ubuntu2_amd64.deb
   37  sudo dpkg -i libatomic1_8-20180414-1ubuntu2_amd64.deb
   38  sudo dpkg -i liblsan0_8-20180414-1ubuntu2_amd64.deb
   41  sudo dpkg -i gcc-7_7.3.0-16ubuntu3_amd64.deb
   42  sudo dpkg -i libgcc-7-dev_7.3.0-16ubuntu3_amd64.deb
   44  sudo dpkg -i libasan4_7.3.0-16ubuntu3_amd64.deb
   45  sudo dpkg -i libgcc-7-dev_7.3.0-16ubuntu3_amd64.deb
   48  sudo dpkg -i ../gcc-8/libtsan0_8-20180414-1ubuntu2_amd64.deb
   49  sudo dpkg -i libgcc-7-dev_7.3.0-16ubuntu3_amd64.deb
   51  sudo dpkg -i libubsan0_7.3.0-16ubuntu3_amd64.deb
   52  sudo dpkg -i libgcc-7-dev_7.3.0-16ubuntu3_amd64.deb
   53  sudo dpkg -i libcilkrts5_7.3.0-16ubuntu3_amd64.deb
   54  sudo dpkg -i ../gcc-8/libmpx2_8-20180414-1ubuntu2_amd64.deb
   55  sudo dpkg -i ../gcc-8/libquadmath0_8-20180414-1ubuntu2_amd64.deb
   57  sudo dpkg -i gcc-7_7.3.0-16ubuntu3_amd64.deb
   58  sudo dpkg -i libgcc-7-dev_7.3.0-16ubuntu3_amd64.deb
   59  sudo dpkg -i gcc-7_7.3.0-16ubuntu3_amd64.deb
   73  sudo dpkg -i pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb
   82  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb
   83  find /media/b4/UBUNTU\ 18_0/ -name dpkg-dev*
   84  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dpkg/dpkg-dev_1.19.0.5ubuntu2_all.deb
   86  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/m/make-dfsg/make_4.1-9.1ubuntu1_amd64.deb
   87  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dpkg/dpkg-dev_1.19.0.5ubuntu2_all.deb
   88  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb
   90  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/g/gcc-7/libgcc-7-
   92  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/g/gcc-7/libstdc++-7-dev_7.3.0-16ubuntu3_amd64.deb
   94  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/g/glibc/libc6-dev_2.27-3ubuntu1_amd64.deb
   95  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/g/glibc/libc-dev-bin_2.27-3ubuntu1_amd64.deb
   97  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/l/linux/linux-libc-dev_4.15.0-29.31_amd64.deb
   98  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/g/glibc/libc6-dev_2.27-3ubuntu1_amd64.deb
   99  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/g/gcc-7/libstdc++-7-dev_7.3.0-16ubuntu3_amd64.deb
  100  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/g/gcc-7/g++-7_7.3.0-16ubuntu3_amd64.deb
  102  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb
  103  dpkg -l
  104  dpkg -l | grep gcc
  119  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb
  120  sudo dpkg --configure -a
  121  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb
  126  sudo dpkg -i /media/b4/UBUNTU\ 18_0/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb
  136  dpkg -l
  137  dpkg -l | grep g*
  138  dpkg -l | grep gcc*
  139  history | grep dpkg

Ubuntu 18.04 安装博通(Broadcom)无线网卡驱动的更多相关文章

  1. Ubuntu 18.04 安装和常用软件安装

    Ubuntu 18.04 安装 下载 Ubuntu 制作 U 盘启动盘 设置电脑为 U 盘启动 插入 U 盘,重启电脑 按照提示安装 Ubuntu 更新 NVIDIA 显卡和 Broadcom 无线网 ...

  2. Ubuntu 18.04安装MongoDB 4.0(社区版)

    Ubuntu 18.04(虚拟机VirtualBox上),MongoDB 4.0, 听室友说,23点有世界杯决赛呢!可是,孤要写博文的啊!以记录这忙乱的下午和晚间成功安装了一个软件到Linux上.—— ...

  3. 真实机下 ubuntu 18.04 安装GPU +CUDA+cuDNN 以及其版本选择(亲测非常实用)【转】

    本文转载自:https://blog.csdn.net/u010801439/article/details/80483036 ubuntu 18.04 安装GPU +CUDA+cuDNN : 目前, ...

  4. Ubuntu 18.04 安装MySQL

    最近在写东西的时候,需要用到MySQL,在网上查了一下,都说Ubuntu18.04不能安装MySQL5.7.22, 总觉的不可能,所以自己就研究了一下,然后分享给大家 工具/原料   VMware W ...

  5. 在Ubuntu 18.04 安装 MySQL 8.0

    在Ubuntu 18.04 安装 MySQL 8.0 ① 登入 mysql 官网,在官网中下载 deb 包,点击该链接,即可下载. https://dev.mysql.com/downloads/re ...

  6. Ubuntu 18.04 安装部署Net Core、Nginx全过程

    Ubuntu 18.04 安装部署Net Core.Nginx全过程 环境配置 Ubuntu 18.04 ,Nginx,.Net Core 2.1, Let's Encrypt 更新系统 sudo a ...

  7. 记录:Ubuntu 18.04 安装 tensorflow-gpu 版本

    狠下心来重新装了系统,探索一下 gpu 版本的安装.比较令人可喜的是,跟着前辈们的经验,还是让我给安装成功了.由于我是新装的系统,就像婴儿般纯净,所以进入系统的第一步就是安装 cuda,只要这个不出错 ...

  8. 【转】Ubuntu 18.04安装小记

    我的电脑是神舟z7 kp7s1,显卡1060,尝试了Ubuntu的16.04,安装完进入界面总是卡死了,后面换18.04依然无解,和版本无关,而是因为英伟达的显卡问题. 参考了如下这篇文章:Ubunt ...

  9. Ubuntu16.04下的NetCore环境搭建(附录含Ubuntu 18.04 安装 NetCore2.1)

    跨平台系列汇总:http://www.cnblogs.com/dunitian/p/4822808.html#linux VSCode安装:http://www.cnblogs.com/dunitia ...

随机推荐

  1. 百度,淘宝,腾讯三大巨头HTML页面规范分解

    [兼容html5方案] 百度贴吧,百度图片的实现 <!--[if lt IE 9]> <script> (function(){ var tags = ['header','f ...

  2. timer.scheduleAtFixedRate和timer.schedule的实验

    基础代码: Calendar  currentTime = Calendar.getInstance(); currentTime.setTime(new Date()); int  currentH ...

  3. Lua游戏脚本语言入门(一)

    作者: 沐枫 (第二人生成员) 原文地址:http://job.17173.com/content/2009-01-22/20090122143452606,1.shtml 在这篇文章中,我想向大家介 ...

  4. 在iOS中怎样创建可展开的Table View?(上)

    原文地址 本文作者:gabriel theodoropoulos 原文:How To Create an Expandable Table View in iOS 原文链接 几乎所有的app都有一个共 ...

  5. jquery选择器及效率问题

    $('p2') //选择名字 $('.class') //选择class $('#id') //选择id $('#id li') //所有id=”id”标签内的li标签 $(“#id”).find(“ ...

  6. 升级linux内核(2.6.32-&gt;3.10.81),安装docker

    1.内核升级环境准备 #查看已经安装的和未安装的软件包组,来判断我们是否安装了相应的开发环境和开发库: yum grouplist #一般是安装这两个软件包组,这样做会确定你拥有编译时所需的一切工具 ...

  7. c#调用aapt查看apk文件信息功能实现

    第一篇随笔就此开始. 1. 起源 思路源自于项目开发过程中.需要确认apk文件版本以验证其功能差异以便于定位问题,于是度娘,得到APK信息查看器(APK-info)这个工具,其版本号为0.2.它能显示 ...

  8. Nginx的负载均衡 - 加权轮询 (Weighted Round Robin) 上篇

    Nginx版本:1.9.1 我的博客:http://blog.csdn.net/zhangskd 算法介绍 来看一个简单的Nginx负载均衡配置. http { upstream cluster { ...

  9. 记录Nginx代理的配置

    server { listen  80; server_name localhost; location / { root    /ect/share/nginx/html; index   inde ...

  10. 【C语言编程练习】5.12 兔子产仔问题

    1. 题目要求 把一对新生的兔子关在屋子里,已知一对两个月大的兔子以后买一个月可以生一对小兔子,而这一对心生的小兔子初生两个月以后才可以生小兔子,假如一年内没有死亡,一年可以繁殖成多少对? 2. 题目 ...