Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 8393  / 3 Years ago, tue, november 9, 2021, 3:35:37

Suddenly for a reason I do not know, my USB wifi stopped working on Ubuntu but still works on Windows. I get this message when I plug it to Ubuntu laptop:




“NamBe” contains software intended to be automatically started. Would
you like to run it? If you don’t trust this location or aren’t sure,
press Cancel.




When I press on Run, it shows this error instead:




Unable to locate the program




This USB Wifi is still working well on an other laptop where I have Windows 10 though.



How to fix this?



EDIT 1:




  • Output of sudo fdisk -l without the adapter being plugged

  • Output of sudo fdisk -l after plugging the adapter



EDIT 2: (for user.dz)




  • Output of lsusb without the adapter being plugged

  • Output of lsusb with the adapter being plugged



P.S. I will edit later this post to respond to the other comments too


More From » 16.04

 Answers
1

You're solving the wrong problem here. Why run the script when you can just have the system auto-detect your modem and Just Work™.



If you run a modeswitch command on the modem, it will activate itself as a modem instead of mass storage, and you system will automatically detect it as such.



Reading your lsusb output, we have this:



Bus 002 Device 003: ID 12d1:1f01 Huawei Technologies Co., Ltd. E353/E3131 (Mass storage mode)


So, let's make the mode auto-set to modem mode. In a terminal, run the following command:



sudo nano /lib/udev/rules.d/40-usb_modeswitch.rules


At the very bottom of the opened file, paste in this exact string:



# Huawei E353/E3131
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1f01", RUN +="usb_modeswitch '%b/%k'"


Unplug your modem and reboot the system. Upon restart, plug in the modem. The system should automatically detect it as a modem and connect you to the internet. You won't need to auto-run anything, and you won't have the partition mounted on your computer.



(source)


[#13577] Wednesday, November 10, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
zombieptu

Total Points: 490
Total Questions: 121
Total Answers: 108

Location: Nepal
Member since Mon, Jan 4, 2021
3 Years ago
;