问题描述
我已经安装了Ubuntu和Windows 8.1。但是无法在Ubuntu中运行(也许驱动程序不存在),这在Windows中运行良好。因为我的笔记本电脑没有以太网端口,所以我无法连接以太网。那么有什么方法可以让我在ubuntu上连接到互联网吗?编辑:终端命令lspci -knn | grep Net -A2
的输出:
vikram@vikram-Inspiron-11-3148:~$ lspci -knn | grep Net -A2
01:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)
Subsystem: Dell Device [1028:0018]
Kernel driver in use: bcma-pci-bridge
vikram@vikram-Inspiron-11-3148:~$
我做了Pilot6建议的。这是输出:
vikram@vikram-Inspiron-11-3148:~$ sudo dpkg -i *.deb
[sudo] password for vikram:
Selecting previously unselected package bcmwl-kernel-source.
(Reading database ... 163804 files and directories currently installed.)
Preparing to unpack bcmwl-kernel-source_6.30.223.141+bdcom-0ubuntu2_amd64.deb ...
Unpacking bcmwl-kernel-source (6.30.223.141+bdcom-0ubuntu2) ...
Selecting previously unselected package dkms.
Preparing to unpack dkms_2.2.0.3-1.1ubuntu5.14.04_all.deb ...
Unpacking dkms (2.2.0.3-1.1ubuntu5.14.04) ...
Setting up dkms (2.2.0.3-1.1ubuntu5.14.04) ...
Setting up bcmwl-kernel-source (6.30.223.141+bdcom-0ubuntu2) ...
Loading new bcmwl-6.30.223.141+bdcom DKMS files...
First Installation: checking all kernels...
Building only for 3.16.0-30-generic
Building for architecture x86_64
Building initial module for 3.16.0-30-generic
ERROR (dkms apport): kernel package linux-headers-3.16.0-30-generic is not supported
Error! Bad return status for module build on kernel: 3.16.0-30-generic (x86_64)
Consult /var/lib/dkms/bcmwl/6.30.223.141+bdcom/build/make.log for more information.
modprobe: FATAL: Module wl not found.
update-initramfs: deferring update (trigger activated)
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-3.16.0-30-generic
vikram@vikram-Inspiron-11-3148:~$
最佳解决思路
您需要安装无线驱动程序。
插入您的Ubuntu安装盘或闪存驱动器,并将这些文件从安装盘复制到您的主目录:
pool/main/d/dkms/dkms_XXXXX.deb
pool/restricted/b/bcmwl/bcmwl-kernel-source_XXXXX.deb
然后在终端中运行以下命令:
sudo dpkg -i *.deb
如果您有UEFI BIOS,则需要禁用安全启动以加载驱动程序。
18.04更新:
该解决方案将无法在18.04上运行,因为默认情况下不安装build-essential
及其依赖项。 dpkg
命令将抱怨未安装依赖项。
您可以在安装介质上手动查找所需的软件包(按字母顺序排序的”pool”目录),并以与dkms
软件包相同的方式安装它们。我希望那里没有什么遗漏。