Installing updates and upgrades in linux


Hi programmers, my linux does not install updates. I’m getting errors every time I try to install.

This is what I’m getting, please help


Try sudo apt upgrade


Still not successful. I’m nerrorow getting this


These are the things am getting.


What happens if you try sudo apt-get update now?


I’m getting this errors


Seems you are using virtualbox. Is the network configured right for the guest OS? can you access the internet using a browser?


check your internet connection


@sammy2574 I think you’re having internet setup issues in your virtual box. Here’s how to configure:


I can access the internet using the browser. But the terminal is giving errors when I try sudo apt-get update or anything else.


@sammy2574 If it is not an internet problem, it happens that some ubuntu update packages may fail. Can you install a package?


This is what I’m getting when I run "sudo apt install linux-headers-$(uname -r) build-essential dkms


@sammy2574 try to use these commands:

sudo add-apt-repository “deb $(lsb_release -sc) main universe”

And after that:

sudo apt-get update
sudo apt-get install build-essential