ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    [How To] Upgrade Ubuntu 14.10 to Ubuntu 15.04

    Scheduled Pinned Locked Moved IT Discussion
    linuxubuntuubuntu 15.04ubuntu 14.10
    18 Posts 4 Posters 3.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User @thanksajdotcom
      last edited by

      @thanksajdotcom said:

      So from what I've seen, upgrade will upgrade normal packages and non-default packages, like the pertino-client package, etc. dist-upgrade will upgrade core OS files but generally doesn't upgrade to a different version. So it'll update system files but wouldn't do a version upgrade, like from 14.10 to 15.04. That is the real purpose of do-release-upgrade.

      In control cases you don't necessarily want to automatically upgrade to a new version of the software, just the latest version of the same release. OS upgrades and software upgrades are best kept as two separate processes IMO.

      thanksajdotcomT 1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        From StackOverflow...

        Below is an excerpt from man apt-get. Using upgrade keeps to the rule: under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed. If that's important to you, use apt-get upgrade. If you want things to "just work", you probably want apt-get dist-upgrade to ensure dependencies are resolved.

        To expand on why you'd want upgrade instead of dist-upgrade, if you are a systems administrator, you need predictability. You might be using advanced features like apt pinning or pulling from a collection of PPAs (perhaps you have an in-house PPA), with various automations in place to inspect your system and available upgrades instead of always eagerly upgrading all available packages. You would get very frustrated when apt performs unscripted behavior, particularly if this leads to downtime of a production service.

        upgrade
        upgrade is used to install the newest versions of all packages
        currently installed on the system from the sources enumerated in
        /etc/apt/sources.list. Packages currently installed with new
        versions available are retrieved and upgraded; under no
        circumstances are currently installed packages removed, or packages
        not already installed retrieved and installed. New versions of
        currently installed packages that cannot be upgraded without
        changing the install status of another package will be left at
        their current version. An update must be performed first so that
        apt-get knows that new versions of packages are available.

        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. So, dist-upgrade
        command may remove some packages. The /etc/apt/sources.list file
        contains a list of locations from which to retrieve desired package
        files. See also apt_preferences(5) for a mechanism for overriding
        the general settings for individual packages.

        thanksajdotcomT 1 Reply Last reply Reply Quote 1
        • thanksajdotcomT
          thanksajdotcom @A Former User
          last edited by

          @thecreativeone91 said:

          @thanksajdotcom said:

          So from what I've seen, upgrade will upgrade normal packages and non-default packages, like the pertino-client package, etc. dist-upgrade will upgrade core OS files but generally doesn't upgrade to a different version. So it'll update system files but wouldn't do a version upgrade, like from 14.10 to 15.04. That is the real purpose of do-release-upgrade.

          In control cases you don't necessarily want to automatically upgrade to a new version of the software, just the latest version of the same release. OS upgrades and software upgrades are best kept as two separate processes IMO.

          Exactly. This is my script for updating my system automatically. I use this as my standard script on all my Linux boxes. I just change the directory the log goes to...

          #!/bin/sh
          apt-get update
          apt-get -y upgrade | ts >> /var/log/aj_cron/update_os.log 2>&1
          apt-get -y dist-upgrade | ts >> /var/log/aj_cron/update_os.log 2>&1
          apt-get -y autoremove | ts >> /var/log/aj_cron/update_os.log 2>&1
          

          Now, granted, I'm running 14.04 LTS for my servers, so do-release-upgrade does me no good until 2016 I think it is...it's ever 2 years for LTS releases if I remember correctly...

          1 Reply Last reply Reply Quote 0
          • thanksajdotcomT
            thanksajdotcom @scottalanmiller
            last edited by

            @scottalanmiller said:

            From StackOverflow...

            Below is an excerpt from man apt-get. Using upgrade keeps to the rule: under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed. If that's important to you, use apt-get upgrade. If you want things to "just work", you probably want apt-get dist-upgrade to ensure dependencies are resolved.

            To expand on why you'd want upgrade instead of dist-upgrade, if you are a systems administrator, you need predictability. You might be using advanced features like apt pinning or pulling from a collection of PPAs (perhaps you have an in-house PPA), with various automations in place to inspect your system and available upgrades instead of always eagerly upgrading all available packages. You would get very frustrated when apt performs unscripted behavior, particularly if this leads to downtime of a production service.

            upgrade
            upgrade is used to install the newest versions of all packages
            currently installed on the system from the sources enumerated in
            /etc/apt/sources.list. Packages currently installed with new
            versions available are retrieved and upgraded; under no
            circumstances are currently installed packages removed, or packages
            not already installed retrieved and installed. New versions of
            currently installed packages that cannot be upgraded without
            changing the install status of another package will be left at
            their current version. An update must be performed first so that
            apt-get knows that new versions of packages are available.

            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. So, dist-upgrade
            command may remove some packages. The /etc/apt/sources.list file
            contains a list of locations from which to retrieve desired package
            files. See also apt_preferences(5) for a mechanism for overriding
            the general settings for individual packages.

            Ok, that makes a lot of sense. I guess I showed you something new then? 😄

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              Doesn't take much on Ubuntu 😉

              thanksajdotcomT 1 Reply Last reply Reply Quote 0
              • thanksajdotcomT
                thanksajdotcom @scottalanmiller
                last edited by

                @scottalanmiller said:

                Doesn't take much on Ubuntu 😉

                The CaseSentry application my company developed that does all the monitoring and case generation for basically everything we do here is built on Ubuntu. They use a MySQL backend. I was thinking of talking to the Dev guys and recommending they check out MariaDB to help improve performance.

                ? 1 Reply Last reply Reply Quote 0
                • ?
                  A Former User @thanksajdotcom
                  last edited by

                  @thanksajdotcom said:

                  @scottalanmiller said:

                  Doesn't take much on Ubuntu 😉

                  The CaseSentry application my company developed that does all the monitoring and case generation for basically everything we do here is built on Ubuntu. They use a MySQL backend. I was thinking of talking to the Dev guys and recommending they check out MariaDB to help improve performance.

                  MariaDB? I'd use postgres for something with monitoring

                  thanksajdotcomT 1 Reply Last reply Reply Quote 1
                  • thanksajdotcomT
                    thanksajdotcom @A Former User
                    last edited by

                    @thecreativeone91 said:

                    @thanksajdotcom said:

                    @scottalanmiller said:

                    Doesn't take much on Ubuntu 😉

                    The CaseSentry application my company developed that does all the monitoring and case generation for basically everything we do here is built on Ubuntu. They use a MySQL backend. I was thinking of talking to the Dev guys and recommending they check out MariaDB to help improve performance.

                    MariaDB? I'd use postgres for something with monitoring

                    Ok, I'm kinda loopy today. You can replace MySQL with Postgres? Brain is running at half-speed at best today...

                    ? scottalanmillerS 2 Replies Last reply Reply Quote 0
                    • ?
                      A Former User @thanksajdotcom
                      last edited by A Former User

                      @thanksajdotcom said:

                      @thecreativeone91 said:

                      @thanksajdotcom said:

                      @scottalanmiller said:

                      Doesn't take much on Ubuntu 😉

                      The CaseSentry application my company developed that does all the monitoring and case generation for basically everything we do here is built on Ubuntu. They use a MySQL backend. I was thinking of talking to the Dev guys and recommending they check out MariaDB to help improve performance.

                      MariaDB? I'd use postgres for something with monitoring

                      Ok, I'm kinda loopy today. You can replace MySQL with Postgres? Brain is running at half-speed at best today...

                      Depends what you mean. Both are a RDBMS. But Postgres is not a drop in replacement. But it's more designed for high transaction counts and high performance than either of those two which are really more meant for websites where most things are in cache with a small amount of transactions.

                      1 Reply Last reply Reply Quote 1
                      • scottalanmillerS
                        scottalanmiller @thanksajdotcom
                        last edited by

                        @thanksajdotcom said:

                        @thecreativeone91 said:

                        @thanksajdotcom said:

                        @scottalanmiller said:

                        Doesn't take much on Ubuntu 😉

                        The CaseSentry application my company developed that does all the monitoring and case generation for basically everything we do here is built on Ubuntu. They use a MySQL backend. I was thinking of talking to the Dev guys and recommending they check out MariaDB to help improve performance.

                        MariaDB? I'd use postgres for something with monitoring

                        Ok, I'm kinda loopy today. You can replace MySQL with Postgres? Brain is running at half-speed at best today...

                        MariaDB is just MySQL forked. PostgreSQL is the big MySQL competitor. It's a different product but generally way more powerful.

                        1 Reply Last reply Reply Quote 1
                        • 1 / 1
                        • First post
                          Last post