0

O.S: Ubuntu 19.04 (disco)

Running sudo do-release-upgrade i got the following message:

Checking for a new Ubuntu release Your Ubuntu release is not supported anymore. For upgrade information, please visit: http://www.ubuntu.com/releaseendoflife

Please install all available updates for your release before upgrading.

Doing an apt upgrade i got this one:

The following packages have been kept back:
libsnmp30

That package couldn't be updated because it required libsensors5 but existing packages were using libsensors4. So i ran multiple commands from internet that manually installed libsensors5 and removed libsensors4.

Now i'm stuck on this error:

You might want to run 'apt --fix-broken install' to correct these. 
The following packages have unmet dependencies:  
libgl1-mesa-dri :
Depends: libsensors4 (>= 1:3.0.0) but it is not installable  
libsnmp30 : 
Depends: libsensors4 (>= 1:3.0.0) but it is not installable 
E: Unmet dependencies. 
Try 'apt --fix-broken install' with no packages (or specify a solution).

I've tried doing apt install libsensors4 but it doesn't let me as now i have v5.

How can i fix this mess so i can finally upgrade?

FrakyDale
  • 245

1 Answers1

0

I suggest you to try The Debian Way to upgrade your system. You have an issue because you are on disco (non-LTS) but disco is no more since eoan. And this is because disco is no more you can't install it with the apt/source.list .

I recommend you to make a backup if something goes wrong. Because you never know, when upgrading your system.


The Debian Way

In your case, you use neither of bionic or eoan, so you have to edit the commands that the a

sudo sed -i 's/disco/focal/g' /etc/apt/sources.list
sudo apt update && sudo apt -y dist-upgrade

When the Ubuntu upgrade does finish, reboot the system. When the system comes back up, you'll be running Ubuntu 20.04 LTS Focal Fossa!


sources : https://linuxconfig.org/how-to-upgrade-ubuntu-to-20-04-lts-focal-fossa#h4-how-to-upgrade-ubuntu-the-debian-way


Edit :

When I try some things on the internet, I do everything in the terminal because I add export PROMPT_COMMAND='history -a' in my $HOME/.bashrc file, and I make backup of every files I edit (cp file.cfg file.cfg.bk).

What does it do ? Every command I run in the terminal instantly happend in the $HOME/.bash_history file. Therefore, if I do something wrong, I can find my way back.

Ideally, you would make a write-up for that in a file.md, with URL, etc. First, because if you have to do it again. Second, because if something goes wrong. Third, because it might be helpful for someone, on day, right here in askubuntu.com ;-)