Software Updater
%author% via %publisher%
Home / Ubuntu Software thinks it is offline – using netplan to manage networking
Self Hosting

Ubuntu Software thinks it is offline – using netplan to manage networking

This has been the bane of my existence for some time until I finally decided to investigate and resolve this issue on my server in order to install proprietary Nvidia drivers through the Additional Drivers dialog.

The below netplan config shows my original config. After some googling, this post alerted me to the fact that my config is missing the renderer key.

MY MISSION

This blog started nearly 10 years ago to help me document my technical adventures in home automation and various side projects. Since then, my audience has grown significantly thanks to readers like you.

While blog content can be incredibly valuable to visitors, it’s difficult for bloggers to capture any of that value – and we still have to work for a living too. There are many ways to support my efforts should you choose to do so:

Consider joining my newsletter or shouting a coffee to help with research, drafting, crafting and publishing of new content or the costs of web hosting.

It would mean the world if gave my Android App a go or left a 5-star review on Google Play. You may also participate in feature voting to shape the apps future.

Alternatively, leave the gift of feedback, visit my Etsy Store or share a post you liked with someone who may be interested. All helps spread the word.

BTC network: 32jWFfkMQQ6o4dJMpiWVdZzSwjRsSUMCk6

network:
  ethernets:
    eno1:
      addresses:
      - 10.1.1.2/24
      gateway4: 10.1.1.1
      nameservers:
        addresses: [10.1.1.1]
        search: []
    enp79s0:
      optional: true
      dhcp4: true
    ens4:
      optional: true
      dhcp4: true
  version: 2

The render key allows netplan to play nicely with Network Manager and populate network interfaces in there.

Network Manager showing all netplan managed networks
network:
  renderer: NetworkManager
  ethernets:
    eno1:
      addresses:
      - 10.1.1.2/24
      gateway4: 10.1.1.1
      nameservers:
        addresses: [10.1.1.1]
        search: []
    enp79s0:
      optional: true
      dhcp4: true
    ens4:
      optional: true
      dhcp4: true
  version: 2
As soon as I added this key and tested/applied the configuration with sudo netplan try and sudo netplan apply, it resolved the issue for me.

Ubuntu software is now aware of the internet connection and is able to retrieve software repository information and updates.

Leave a Comment

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

DON’T MISS OUT!
Subscribe To Newsletter
Be the first to get latest updates and exclusive content straight to your email inbox.
Stay Updated
Give it a try, you can unsubscribe anytime.
close-link