无法安装联发科 MT7630E 驱动程序。Ubuntu 18.04.02

无法安装联发科 MT7630E 驱动程序。Ubuntu 18.04.02

我正在尝试安装联发科 MT7630E 驱动程序https://github.com/neurobin/MT7630E

当我尝试时,我得到了这个:

smith @ Smith-PCt: / media / smith / Socrates / Linux / MT7630E-release $ sudo chmod + x install
[sudo] password for smith:
smith @ Smith-PCt: / media / smith / Socrates / Linux / MT7630E-release $ sudo ./install
./install: line 10: make: command not found
smith @ Smith-PCt: / media / smith / Socrates / Linux / MT7630E-release $

我该如何解决这个问题?

我尝试了答案中的解决方案并输入了代码: sudo apt install build-essential dkms linux-headers-generic

并得到答案:

smith@Smith-PCt:~$ sudo apt install build-essential dkms linux-headers-generic
[sudo] password for smith: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dpkg-dev fakeroot g++ g++-7 gcc gcc-7 libalgorithm-diff-perl
  libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan4 libatomic1
  libc-dev-bin libc6-dev libcilkrts5 libfakeroot libgcc-7-dev libitm1 liblsan0
  libmpx2 libquadmath0 libstdc++-7-dev libtsan0 libubsan0
  linux-headers-4.15.0-45 linux-headers-4.15.0-45-generic linux-libc-dev make
  manpages-dev
Suggested packages:
  menu debian-keyring g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg
  gcc-multilib autoconf automake libtool flex bison gcc-doc gcc-7-multilib
  gcc-7-locales libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg
  libasan4-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg
  libmpx2-dbg libquadmath0-dbg glibc-doc libstdc++-7-doc make-doc
The following NEW packages will be installed:
  build-essential dkms dpkg-dev fakeroot g++ g++-7 gcc gcc-7
  libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
  libasan4 libatomic1 libc-dev-bin libc6-dev libcilkrts5 libfakeroot
  libgcc-7-dev libitm1 liblsan0 libmpx2 libquadmath0 libstdc++-7-dev libtsan0
  libubsan0 linux-headers-4.15.0-45 linux-headers-4.15.0-45-generic
  linux-headers-generic linux-libc-dev make manpages-dev
0 upgraded, 31 newly installed, 0 to remove and 0 not upgraded.
Need to get 39.0 MB of archives.
After this operation, 207 MB of additional disk space will be used.
Do you want to continue? [Y/n] y 
Err:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libc-dev-bin amd64 2.27-3ubuntu1
  Could not resolve 'archive.ubuntu.com'
Err:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-libc-dev amd64 4.15.0-45.48
  Could not resolve 'archive.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 libc6-dev amd64 2.27-3ubuntu1
  Could not resolve 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libitm1 amd64 8.2.0-1ubuntu2~18.04
  Could not resolve 'archive.ubuntu.com'
Err:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libatomic1 amd64 8.2.0-1ubuntu2~18.04
  Could not resolve 'archive.ubuntu.com'
Err:6 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libasan4 amd64 7.3.0-27ubuntu1~18.04
  Could not resolve 'archive.ubuntu.com'
Err:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 liblsan0 amd64 8.2.0-1ubuntu2~18.04
  Could not resolve 'archive.ubuntu.com'
Err:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtsan0 amd64 8.2.0-1ubuntu2~18.04
  Could not resolve 'archive.ubuntu.com'
Err:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libubsan0 amd64 7.3.0-27ubuntu1~18.04
  Could not resolve 'archive.ubuntu.com'
Err:10 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcilkrts5 amd64 7.3.0-27ubuntu1~18.04
  Could not resolve 'archive.ubuntu.com'
Err:11 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libmpx2 amd64 8.2.0-1ubuntu2~18.04
  Could not resolve 'archive.ubuntu.com'
Err:12 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libquadmath0 amd64 8.2.0-1ubuntu2~18.04
  Could not resolve 'archive.ubuntu.com'
Err:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgcc-7-dev amd64 7.3.0-27ubuntu1~18.04
  Could not resolve 'archive.ubuntu.com'
Err:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 gcc-7 amd64 7.3.0-27ubuntu1~18.04
  Could not resolve 'archive.ubuntu.com'
Err:15 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 gcc amd64 4:7.3.0-3ubuntu2.1
  Could not resolve 'archive.ubuntu.com'
Err:16 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libstdc++-7-dev amd64 7.3.0-27ubuntu1~18.04
  Could not resolve 'archive.ubuntu.com'
Err:17 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++-7 amd64 7.3.0-27ubuntu1~18.04
  Could not resolve 'archive.ubuntu.com'
Err:18 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++ amd64 4:7.3.0-3ubuntu2.1
  Could not resolve 'archive.ubuntu.com'
Err:19 http://archive.ubuntu.com/ubuntu bionic/main amd64 make amd64 4.1-9.1ubuntu1
  Could not resolve 'archive.ubuntu.com'
Err:20 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 dpkg-dev all 1.19.0.5ubuntu2.1
  Could not resolve 'archive.ubuntu.com'
Err:21 http://archive.ubuntu.com/ubuntu bionic/main amd64 build-essential amd64 12.4ubuntu1
  Could not resolve 'archive.ubuntu.com'
Err:22 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 dkms all 2.3-3ubuntu9.2
  Could not resolve 'archive.ubuntu.com'
Err:23 http://archive.ubuntu.com/ubuntu bionic/main amd64 libfakeroot amd64 1.22-2ubuntu1
  Could not resolve 'archive.ubuntu.com'
Err:24 http://archive.ubuntu.com/ubuntu bionic/main amd64 fakeroot amd64 1.22-2ubuntu1
  Could not resolve 'archive.ubuntu.com'
Err:25 http://archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-diff-perl all 1.19.03-1
  Could not resolve 'archive.ubuntu.com'
Err:26 http://archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-diff-xs-perl amd64 0.04-5
  Could not resolve 'archive.ubuntu.com'
Err:27 http://archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-merge-perl all 0.08-3
  Could not resolve 'archive.ubuntu.com'
Err:28 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-headers-4.15.0-45 all 4.15.0-45.48
  Could not resolve 'archive.ubuntu.com'
Err:29 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-headers-4.15.0-45-generic amd64 4.15.0-45.48
  Could not resolve 'archive.ubuntu.com'
Err:30 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-headers-generic amd64 4.15.0.45.47
  Could not resolve 'archive.ubuntu.com'
Err:31 http://archive.ubuntu.com/ubuntu bionic/main amd64 manpages-dev all 4.15-1
  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc-dev-bin_2.27-3ubuntu1_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.15.0-45.48_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.27-3ubuntu1_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-8/libitm1_8.2.0-1ubuntu2~18.04_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-8/libatomic1_8.2.0-1ubuntu2~18.04_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/libasan4_7.3.0-27ubuntu1~18.04_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-8/liblsan0_8.2.0-1ubuntu2~18.04_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-8/libtsan0_8.2.0-1ubuntu2~18.04_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/libubsan0_7.3.0-27ubuntu1~18.04_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/libcilkrts5_7.3.0-27ubuntu1~18.04_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-8/libmpx2_8.2.0-1ubuntu2~18.04_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-8/libquadmath0_8.2.0-1ubuntu2~18.04_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/libgcc-7-dev_7.3.0-27ubuntu1~18.04_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/gcc-7_7.3.0-27ubuntu1~18.04_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/gcc_7.3.0-3ubuntu2.1_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/libstdc++-7-dev_7.3.0-27ubuntu1~18.04_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/g++-7_7.3.0-27ubuntu1~18.04_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/g++_7.3.0-3ubuntu2.1_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/make-dfsg/make_4.1-9.1ubuntu1_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg-dev_1.19.0.5ubuntu2.1_all.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/build-essential/build-essential_12.4ubuntu1_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dkms/dkms_2.3-3ubuntu9.2_all.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/f/fakeroot/libfakeroot_1.22-2ubuntu1_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/f/fakeroot/fakeroot_1.22-2ubuntu1_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/liba/libalgorithm-diff-perl/libalgorithm-diff-perl_1.19.03-1_all.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/liba/libalgorithm-diff-xs-perl/libalgorithm-diff-xs-perl_0.04-5_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/liba/libalgorithm-merge-perl/libalgorithm-merge-perl_0.08-3_all.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-4.15.0-45_4.15.0-45.48_all.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-4.15.0-45-generic_4.15.0-45.48_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux-meta/linux-headers-generic_4.15.0.45.47_amd64.deb  Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/manpages/manpages-dev_4.15-1_all.deb  Could not resolve 'archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
smith@Smith-PCt:~$

我需要做什么?有什么用呢?

答案1

安装

您需要内核头文件来构建驱动程序

举例来说,在 Debian 及其衍生版本上,假设您使用的是 amd64 系统:

sudo apt install build-essential dkms linux-headers-generic

这就是所有的依赖关系。

首先赋予一些文件执行权限:

chmod +x install test uninstall bpatch

现在安装它,运行:

./install

要在不安装的情况下测试它,请运行:

./test

要卸载,请运行:

./uninstall

要使用 dkms 安装:

sudo make dkms

驱动程序将在启动时自动加载...

来源

答案2

  • 使用带有联发科 MT7630e wifi 适配器的 Kubuntu 18.04 LTS

  • 开箱即用,因此正确的驱动程序随 iso 负载一起提供

  • 安装后是否按常规更新了软件包,重启后 wifi 不再工作

  • 尝试了网上提出的多种解决方案来尝试解决这个问题,但都不起作用,所以选择了 B 计划

  • 决定对 KDE Neon 进行实时 USB 启动,看看它是否能开箱即用地使用 wifi,结果确实如此

  • 重新启动进入 Kubunutu,无线网络再次工作,重新启动几次后,无线网络继续工作,问题解决

想要了解驱动程序在硬盘上的位置和位置,以防将来的更新再次发生这种情况,因此运行了以下命令:

  • sudo lspci(确定 wifi 适配器的名称 - 结果 03:00.0 MT7630e 802.11bgn 无线网络适配器)

  • sudo lspci -vv -s 03:00.0(确定内核正在使用的驱动程序的名称 - 结果正在使用的内核驱动程序:mt76x0e,内核模块:mt76x0e)

  • sudo modinfo mt76x0e(确定驱动程序在硬盘上的安装位置 - 结果 /lib/modules/5.3.0-46-generic/kernel/drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0e.ko)

  • 在另一个文件夹中保存了一份副本以防再次发生,但看来重新启动到实时 USB 可以解决问题。

相关内容