如何将无线适配器连接到运行Ubuntu Trusty 14.04的Raspberry Pi?

Jer*_*ing 5 linux ubuntu wifi raspberry-pi

我在Raspberry Pi 2 Model B上运行Ubuntu Trusty 14.04.可以在这里找到Ubuntu安装的映像.

根据安装linux-firmware后的图像,它应该能够连接到wifi.然而,图像非常裸露,并没有太多.我安装了wpa-supplicant并将此代码放在wpa-supplicant.conf文件中

ctrl_interface=DIR=/ver/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="RECUV-VICON"
        scan_ssid=1
        psk="fluffyapple617"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP
        auth_alg=OPEN
}
Run Code Online (Sandbox Code Playgroud)

并将此代码放在/ etc/network/interfaces中

auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-driver wext
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Run Code Online (Sandbox Code Playgroud)

当我ifup wlan0跟着时,显示ifdown wlan0另一个ifup wlan0

wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to connect to non-global ctrl_ifname: wlan0  error: No such file or directory
Run Code Online (Sandbox Code Playgroud)

有一个非常相似的线程,我在这个问题上找到这里.根据解决方案,它只需要适配器的正确驱动程序.键入lsusb结果列出设备

Bus 001 Device 008: ID 148f:3572 Ralink Technology, Corp. RT3572 Wireless Adapter.
Run Code Online (Sandbox Code Playgroud)

我搜索了Ralink wifi适配器的确切linux驱动程序,最终在这里.

我将组件添加到我的sources.list并且它没有立即安装,因为几个文件与初始linux固件冲突,所以我需要强制覆盖它们.但是之后它正确安装.

我知道wifi适配器可以工作,与ubuntu一起使用,并且可以与Pi本身一起使用.我在运行Ubuntu 14.04的笔记本电脑上测试了它,它可以连接.我也尝试了Pi上的Ubuntu Mate图像,wifi适配器也能够连接.

我错过了什么或是否有另一个错误阻止这个?