Results 1 to 7 of 7

Thread: Upgrade from 18.04 to 20.04 without affecting installed software

  1. #1
    Join Date
    Feb 2021
    Beans
    2

    Upgrade from 18.04 to 20.04 without affecting installed software

    Hi folks,

    does exists some way on how I can upgrade ubuntu 18.04 to 20.04 without affecting my repos and software like:

    Mysql server
    PHP

    On example I have installed Mysql 5.7 and PHP 7.4

    If I run dist-upgrade my MySQL server stop working because upgraded to MySQL 8 and upgrade process upgrade PHP to 8.
    Of course I tried to change code name in my repository from bionic to focal but without success.

    I tried to find some solution but I didn't found.

    Thank you in advance.

  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Upgrade from 18.04 to 20.04 without affecting installed software

    Focal has php7.4. If the version from the official repo doesn't work for you, see https://deb.sury.org

    As to MySQL 5.7, see How to install MySQL 5.7 on Ubuntu 20.04 LTS

  3. #3
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Upgrade from 18.04 to 20.04 without affecting installed software

    This is what the manual page for apt-get says about dis-upgrade

    dist-upgrade
    dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones if necessary. The dist-upgrade command may therefore remove some packages.
    The dis-upgrade command does not upgrade one version of Ubuntu to a newer version.

    This is the official method to upgrade from 18.04 to 20.04

    https://ubuntu.com/blog/how-to-upgra...0-04-lts-today

    If this is a server install then you should read the section called: Upgrade to 20.04 LTS - on the command line. You should expect software to be upgraded to newer versions. The release notes list the changes.

    https://wiki.ubuntu.com/FocalFossa/ReleaseNotes

    Regards
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  4. #4
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    15,603
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Upgrade from 18.04 to 20.04 without affecting installed software

    You can tell apt not to upgrade a package with the command
    Code:
    sudo apt-mark hold packagename
    I don't know how this applies to upgrading to an entirely new release using dist-upgrade.

    See the man page for apt-mark: http://manpages.ubuntu.com/manpages/...pt-mark.8.html
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #5
    Join Date
    Feb 2021
    Beans
    2

    Re: Upgrade from 18.04 to 20.04 without affecting installed software

    Thank you to all on answer.

    I already check all that document, but unfortunatelly that don't solve my problem. I have about 40 server and I don't want to upgrade MySQL on each one.

    Thanks !

  6. #6
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    5,877
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Upgrade from 18.04 to 20.04 without affecting installed software

    You can continue using 18.04 for 2 more years, but you can't continue using old software forever.

  7. #7
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    15,603
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Upgrade from 18.04 to 20.04 without affecting installed software

    I suggest you install VirtualBox, then install a copy of 20.04 into a virtual machine. Migrate a copy of your database using mysqldump and copy over a website that uses PHP. Do they still work the same way? I'm going to guess the answer is yes.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •