Installing updates and upgrades in linux


#1

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


#2

Try sudo apt upgrade


#3

Still not successful. I’m nerrorow getting this


#4

These are the things am getting.


#5

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


#6

I’m getting this errors


#7

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


#8

check your internet connection


#9

@sammy2574 I think you’re having internet setup issues in your virtual box. Here’s how to configure: https://www.thomas-krenn.com/en/wiki/Network_Configuration_in_VirtualBox


#10

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


#11

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


#12

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


#13

@sammy2574 try to use these commands:

sudo add-apt-repository “deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe”

And after that:

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