How to Fix Can't Connect To Wifi In Debian 9 And Other Debian Based Linux - MAC Randomization Bug

This article will guide you to fix wifi not being connected to any wireless network due to a bug on Network Manager on Debian 9 and other debian based distros like Ubuntu. I personally stumble upon this issue on my Debian 9(Cinnamon) distro and after googling for sometime knew about this bug on Network Manager's specific version. You can refer to this link for more info on this bug or just scroll down for a quick fix.

Because of this bug what happens is this that, whenever you try to connect to a wifi, it tries to connect for a long time and then simply just gives a notification saying 'The network connection has been disconnected.'

To fix this issue you can either upgrade/downgrade to the bug free version of Network Manager Or just edit a small configuration file of the Network Manager. So, in this article we will guide you to edit the configuration file to fix the problem, which prevented the wifi from working.

Follow the below steps to fix the issue on your Debian 9 based distro;

1.Edit the Network Manager Configuration File
2.Restart Network Manager Service
3.Connect to Wifi Successfully.
Note: You will need root access to edit the config file. Use "sudo" or login to your root account.
First of all open the terminal and type the following command to edit the configuration file. I will simply use the gedit to edit the config file.
sudo gedit /etc/NetworkManager/NetworkManager.conf
Now copy the below text and paste at the end of the file
And now save it.

Suggested Read: How to write in Non-English Language on Linux (Nepali, Hindi, Russian etc)

Now we will have to restart the Network Manager, for that enter the following command in the terminal;
sudo systemctl restart NetworkManager

Now You should be able to connect to your wireless AP. If in case you weren't able to connect successfully try to restart. And sure dont hesitate to comment below your issue.


  1. It does work after restarting.

  2. smooth as a glove. Perfect solution

  3. Internet Service Providers hold an important space in our world. All of our personal, as well as professional work, is somehow based upon the Internet. One day without the internet feels like backward by ages. Sometimes modem comes up with technical clichés like, it connects to the internet but don’t allow browsing. It can be solved via simple steps.
    How to connect Telstra wifi

  4. This comment has been removed by the author.

  5. This is the apple technical support service and service center, If you have any types of issues with your apple project and any requirement of support then you can visit this service and get the instant solution. Are you having any types of apple service then you can visit this service.
    Apple Repair service centre

  6. jaisalmer Chirag desert camp appreciates particular notoriety of being one of only a handful couple of lodgings that have held the speciality of serving its visitors while keeping tuned in to the most recent patterns in the friendliness business. jaisalmer Chirag desert camp has been intended to give its visitors an encounter of life in a medieval post. From the brilliant yellow stone on the outsides to the point by point stone carvings used to decorate the conventional Jharokhas and curves
    Luxury desert camp in jaisalmer

  7. It works, thanks. (Debian 9.9.0)

  8. Great post but I was wondering if you could write a little more on this subject? I’d be very thankful if you could elaborate a little bit further. Thanks in advance! IP Address

  9. Thanks for the nice blog. It was very useful for me. I m happy I found this blog. Thank you for sharing with us,I too always learn something new from your post. best router for multiple devices

  10. Really appreciate this wonderful post that you have provided for us.Great site and a great topic as well i really get amazed to read this. Its really good. best router for multiple devices

  11. Worked like a charm in Debian 11 Bullseye. Thanks a lot. Tried several USB Wifi sticks, but suspected the network-manager. Cheers

  12. Thank you very much, it's worked!!

  13. It is showed in weariness, fractiousness, migraines and sleep deprivation, which emerge because of larger than average electromagnetic foundation. modem router

  14. Fake 😡😡😡😡😡😡😠😠😠😠😠😠😠🤬🤬🤬🤬🤬🤬🤬

  15. A spilling media server is likewise a segment of this router which lets purchaser to keep various settings for visitor organize. wifi router

  16. Through this post, I know that your good knowledge in playing with all the pieces was very helpful. I notify that this is the first place where I find issues I've been searching for. You have a clever yet attractive way of writing. long range wifi router

  17. Wireless network routers can be used even in public places including airports, restaurants and libraries, so if your laptop has WiFi connectability, you can connect while you are waiting to fly, or you can escape to your library to use your laptop! wifi router

  18. In the event that it is the situation of a PC, there are many propelled settings to set it to the correct mode. jiofi.local.html

  19. Just about all the major cities in the world, are WiFi network connected including Texas, London and Mexico city to name just a few. modem and router

  20. This is also important as with new updates, you also get new security updates for your router. Check your current firmware version by visiting "" and checking it in the administration setting or dashboard.

  21. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained
    vé máy bay tết 2021 vietjet

    Đặt vé máy bay Bamboo

    lịch bay hà nội đà nẵng

    vé máy bay đi nha trang tháng 10

    từ tphcm đi phú quốc mất bao lâu

    ve may bay di con dao khu hoi

  22. Debian Buster.
    Incredibly, it worked when restarted.
    Then it restored the file to original version, but kept working.
    Thanks a lot!!!

  23. Even the smallest about of hands on experience will be better than none and the reason being is that if it is possible to apply theory into practice then the more will go in and stay in. CCNA course in Pune

  24. In today’s fast-paced consumer-driven world, packaging plays an essential role in the transportation, storage, and marketing of products. However, the amount of packaging waste generated due to these practices is becoming a growing concern for the environment. Wasteful packaging not only affects the health of our planet but also has far-reaching impacts on human health and well-being.
    The environmental impact of packaging waste

  25. Commercial window maintenance and renovation are essential your workplace. Regular maintenance can enhance energy efficiency, maintain aesthetics, ensure safety and security. It can also extend the lifespan of your windows and doors. When choosing a window company for building renovation, it's important to select a company offering the services you need. Investing in regular maintenance and renovation of your commercial windows and doors is good for the longevity of your building. Contact our professional team today for expert commercial window and door solutions for your building renovation project.
    - Window Company
    - Window Repair
    - Doors and Windows Cambridge
    - Commercial Windows

  26. Protecting Your Investment: Your log home is not just a place to live, but also a valuable investment. Regular maintenance, including rot repair and log replacement, is essential to protect your investment. Neglecting these repairs can result in costly damages and decrease the value of your property. By investing in proper maintenance, you are preserving the home for the future.

    - Log Home Rot Repair
    - Log Home Chinking
    - Log Home Staining
    - Media Blasting

Previous Post Next Post