![无需访问互联网即可安装 g++-7](https://linux22.com/image/1178352/%E6%97%A0%E9%9C%80%E8%AE%BF%E9%97%AE%E4%BA%92%E8%81%94%E7%BD%91%E5%8D%B3%E5%8F%AF%E5%AE%89%E8%A3%85%20g%2B%2B-7.png)
我遇到了一个问题 ;) 我的 wifi 适配器突然停止工作,而且由于这里没有电线,我无法从我的 Ubuntu 机器访问互联网。我找到了以下命令来修复适配器:
sudo apt-get install --reinstall bcmwl-kernel-source -y
并且几乎设法通过使用 USB 记忆棒手动复制所需的档案来使其工作(我这里还有一台可以上网的 MacBook Pro)。现在我遇到了以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
bcmwl-kernel-source : Depends: dkms but it is not going to be installed
g++ : Depends: g++-7 (>= 7.4.0-1~) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
有没有什么办法可以只使用 USB 来解决此问题?