PDA

View Full Version : Upgrading from 16.04 LTS to 18.04 LTS with mixed results



rsteinmetz70112
March 4th, 2019, 05:51 PM
For what it's worth, I am posting my experience of upgrading several computers to 18.04 LTS.

So far I've upgraded 4 of 7 computers 2 of the Up[grades went wee and I had minimal problems.
2 encountered substantial, but different problems.

One machine didn't create the proper links for /var/run and /run. Once I figured that out it worked OK but I had video problems due to the old Nvidia driver. removing that solved the problems.

The other machine I still have issues with is a mess. There are many unconfigured packages but it doesn't have a working network connection. I' can use a live session to download .debs and install them but so many packages are unconfigured most won't install because of unmet dependencies.

I've made some recent posts looking for help and posting what I've done to hopefully help others and provide some clues.

After I post this I'm going to post something specific about the machine I'm still having trouble with.

jdeca57
March 4th, 2019, 07:57 PM
Upgrading an OS is always chancy. It works best in environments with little or no divergence from the original install. Mostly in a VM with no hardware issues, then it’s next to failsafe. But otherwise a clean install is always preferable. It’s more work, of course. But aside of the backup issue (evidently everyone makes a backup) there is the installation of modifications, software, tinkering and so and it is an illusion to think that between major LTS installations everything remains the same. Not that I think your approach is wrong: by any means, upgrade. If it works, fine. Just be prepared to reinstall.

rsteinmetz70112
May 6th, 2019, 05:52 PM
OK I'm back to update my progress. I've completed 4 of 7 but do-release upgrade failed on the 5th machine apparently do to a corrupt python package python3-pkg-resources. Reinstalling it fixed that problem but I've been traveling so I haven't been able to actually run the upgrade.

Probably 2 weeks before I can try the upgrade.

rsteinmetz70112
May 18th, 2019, 10:46 PM
I now completed the 5th of 7 upgrades. This ome went pretty well. There were errors during the set up but

# apt install -f
# dpkg --configure -a
# apt full-upgrade
cleaned things up. I did have a problem being unable to log into a graphic session but

# Dpkg-reconfigure gdm

rsteinmetz70112
June 5th, 2019, 09:13 PM
I've now completed the 6th of 7 upgrades.

This one went pretty well there were no errors during the process except for two problems:

The correct Nvidia driver was not install but some supporting libraries were. That meany tha the nouveau drived wouldn't start correctly


#apt purge nvidia* solved that problem.

The second problem related to samba. Apparently when winbind is installed certain necessary packages relating to winbind were not installed.


# apt install libnss-winbind libpam-winbind

It took a while to figure it out but the solution was petty easy.

The 7th upgrade will be the most complicated. It's a i386 install going back many years I've put oof dealing with it but I've got a strategy, I've install and amd64 kernel on a seperate partition I'm duplicating the i386 configuration on it and will substitute the new install for the old one when I've got it fully working. The machine is a server running Samba as a Domain Controller, Apache2 and postfix as an outgoing email server. Sounds easy, I'm sure it won't be.

mastablasta
June 7th, 2019, 07:33 AM
looks like desktop linux and the way it is setup is causing the issues. i did home server upgrade and it was very smooth.

rsteinmetz70112
June 7th, 2019, 05:12 PM
looks like desktop Linux and the way it is setup is causing the issues. i did home server upgrade and it was very smooth.

These systems continuously upgraded from LTS to LTS for more than 10 years. The hardware has all been changed more than once and Ubuntu Desktop is installed. I'm amazed it works as well as it does. Some of the problems are no doubt carried over from previous upgrades. However all of the problems I've encountered have been encountered by other users and most of the solutions have been found from postings online. A few of problems seem recurring,

Problems with Nvidia driver upgrades and with nouveau.
I'd like to use nouveau but I've had problems with it in the past causing freezes but it seems to be getting better.
Problems with samba upgrades especially winbind, usually the upgrade process failing to download necessary packages for my installation.
Problems downloading the upgraded packages including interrupted downloads and corrupt package downloads.
Problems with changes to the graphic environment from one version to another.


I suspect a lot of it is using LTS versions only since there are more changes between upgrades and the process doesn't get tested as thoroughly on those.
I've also found no good way of detecting and eliminating unnecessary packages which are upgraded from version to version but are not necessary. The Best example of this is the changes Ubuntu has made over the years in the graphic Desktop going from Gnome to Unity back to Gnome with other changes in between.

Many people here recommend always doing clean installs but with servers there is the problem of the configuration of the server services.
Of the 6 servers I've upgraded most have gone OK, with only minor problems. Only one was seriously screwed up and is was virtually identical to another machine which went fine except with a relatively minor problem with the Nvidia driver.