网卡驱动装置,安装博通

目录

GNU/Linux的装置进度中实际央月经设置了成都百货上千可用的网卡驱动,但那大器晚成款:Realtek PCIe GBE Family Controller的驱动却绝非。

  • Ubuntu 18.04 安装博通(布Rhodescom)有线网卡驱动
  • Package gcc is not configured yet. 化解办法
  • history
    • history | grep dpkg

而笔者的台式机:Dell HP Pro 3380 MT刚巧使用的是那风度翩翩款网卡。由于还没有互连网,而CentOS6.x又还没预装gcc,g 编写翻译碰着,着实折腾了比较久。

Ubuntu 18.04 安装博通(布罗兹com)有线网卡驱动

首先从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 的安装。

也得以参照 配置本地源安装。

在本文的结尾巴部分分的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 ...

上面计算一下装置进程:
一  安装CentOS系统

Package gcc is not configured yet. 杀绝办法

安装完gcc后装置驱动deb包时,爆出这么些荒诞。

sudo dpkg --configure -a

ok.

1  用光盘(或然U盘)制作影像文件。注:笔者这里运用的印象文件是CentOS-6.6-i386-bin-DVD1.iso (本来也准备接纳六十三人的系统,但出于本机器主板同不经常候接济UEFI格局和BIOS情势,且CentOS 6.4及以上62个人的体系默许使用的是UEFI安装格局。在UEFI安装格局,须求硬盘分区是GPT分区,而本机硬盘以利用MBR分区形式,固总是安装不上。具体可google “UEFI”)

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 

2 符合规律安装CentOS,这一步骤具体方法国网球国际赛上有数不胜数。由于系统引导难题,提出阅读未来再安装。可参照他事他说加以考察:http://www.linuxidc.com/Linux/2014-04/100032.htm

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

 **安装实现未来,大家会发掘一切OK,但正是上不停网,就应际而生了本文最早所涉及的主题材料。**

二 安装编写翻译情形及网卡驱动

接下去,大家就要设置网卡驱动:

    首先,安装gcc, g 编写翻译景况。因为上不停网,所以只可以选取光盘镜像中的安装文件,幸好镜像文件中有这几个必需的公文。
      1)加载光盘(也许U盘)镜像文件到系统并设置yum软件源为本地镜像文件。方法可参谋:http://www.linuxidc.com/Linux/2015-01/111266.htm

      2)由于笔者制作了光盘镜像,我这里运用的章程是先在文书'/etc/yum.repos.d/CentOS-Media.repo'的baseurl中丰裕:‘file:///media/CentOS_6.6_Final/’

            然后向来在终点中输入指令:yum --disablerepo=* --enablerepo=c6-media [command] ([cmmand] = 'install gcc'),全部的设置命令能够效仿那一个法子。
    然后,安装网卡驱动

    3)接下去大家在这里
    4) 使用命令解压文件:tar jxvf r8168-8.039.00.tar.bz2
    5) 使用命令 sudo ./autorun.sh安装。那时,又会鬼使神差谬误,因为我们从没设置内核源码包,须要动用步骤1),2)中的方法安装"kernel-devel",命令为:
            yum --disablerepo=* --enablerepo=c6-media install kernel-devel
    6)  再执行 sudo ./autorun.sh
    7)第6)步骤成功之后,能够在目录'/lib/modules/$(uname -r卡塔尔国/kernel/drivers/net/'中查看见r8186.ko文件,表达安装成功。
          使用命令:lsmod | grep r8168,查看刚刚安装的网卡驱动模块是或不是加载,如果未有加载可在目录'/lib/modules/$(uname -r卡塔尔/kernel/drivers/net/'中运用命令:sudo depmod -a
          使用命令:lspci | grep net ,查看网卡驱动是不是运转
    8卡塔尔国  成功做到7)表达网卡已成功安装。平时情况下这时候右上角的互联网Logo上边的小红叉应该就一向不了,表示网卡已一而再三番若干次上了互联网。假诺如故未有的话,可应用接下去的格局。

网卡驱动装置成功,依然敬敏不谢连接网络

三 配置互联网(可选) 

由来是从未布置eth0, 这里 http://www.linuxidc.com/Linux/2015-01/111265.htm 有化解办法。

越来越多CentOS相关音讯见CentOS 专项论题页面 http://www.linuxidc.com/topicnews.aspx?tid=14

正文长久更新链接地址:http://www.linuxidc.com/Linux/2015-01/111267.htm

图片 1

本文由星彩网app下载发布于星彩网app下载,转载请注明出处:网卡驱动装置,安装博通

TAG标签: 星彩网app下载
Ctrl+D 将本页面保存为书签,全面了解最新资讯,方便快捷。