Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: Ubuntu 12.04 Server requires reboot after update

  1. #11
    Join Date
    Sep 2011
    Location
    Behind you!
    Beans
    1,690
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Ubuntu 12.04 Server requires reboot after update

    I have a script that tells me what packages are requiring the reboot. The custom script is called "check_apt_motd.sh" (which requires Nagios Plugins to be installed)

    Example output:
    Code:
    Reboot required to apply linux-image-3.5.0-30-generic linux-base
    The script and how to install the Nagios Plugins for a remote server can be found in the Nagios link in my sig below.

    The above is what I see on my Nagios Monitoring web page as well as when I run it manually (rarely ever do). If you install it, you could modify your login profile to run it so you see the output everytime you login to that server instead of just the basic message.

    LHammonds
    Last edited by LHammonds; May 20th, 2013 at 08:27 PM.

  2. #12
    Join Date
    Nov 2006
    Beans
    197

    Re: Ubuntu 12.04 Server requires reboot after update

    Thank you I saw that this cat gives the details

    Code:
    root@ks83747920:~# cat /var/run/reboot-required.pkgs
    libssl1.0.0

  3. #13
    Join Date
    Sep 2011
    Location
    Behind you!
    Beans
    1,690
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Ubuntu 12.04 Server requires reboot after update

    Yes, that is the core of what the script makes use of. Here is a partial snippet of the code that looks at it:

    Code:
    PKGS=$(echo $APTRES | cut -f1 -d';')
    SEC=$(echo $APTRES | cut -f2 -d';')
    
    if [ -f /var/run/reboot-required ]; then
            REBOOT=1
            TOAPPLY=`cat /var/run/reboot-required.pkgs`
    else
            REBOOT=0
    fi
    
    if [ "${PKGS}" -eq 0 ]; then
            if [ "${REBOOT}" -eq 1 ]; then
                    RET=$STATE_WARNING
                    RESULT="Reboot required to apply ${TOAPPLY}"
            else
                    RET=$STATE_OK
                    RESULT="No packages to be updated"
            fi
    elif [ "${SEC}" -eq 0 ]; then
            RET=$STATE_WARNING
            RESULT="${PKGS} packages to update (no security updates)"
    else
            RET=$STATE_CRITICAL
            RESULT="${PKGS} packages (including ${SEC} security) packages to update"
    fi
    
    echo $RESULT
    EDIT:

    libssl1.0.0 is one of those patches that would not have been automatically applied in my apt upgrade script since it is not listed as a security patch. You only get that one if you type something like aptitude safe-upgrade
    Last edited by LHammonds; May 20th, 2013 at 08:39 PM.

  4. #14
    Join Date
    Nov 2006
    Beans
    197

    Re: Ubuntu 12.04 Server requires reboot after update

    Well what I did was only apt-get upgrade and that package got upgraded... I did not use aptitude safe-upgrade

  5. #15
    Join Date
    Sep 2011
    Location
    Behind you!
    Beans
    1,690
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Ubuntu 12.04 Server requires reboot after update

    I think "upgrade" and "safe-upgrade" may be the same. I do know that "full-upgrade" and "dist-upgrade" are the same. The core of my script calls the command with specific parameters so that it only applies security patches.

    Example:
    Code:
    aptitude safe-upgrade --assume-yes --target-release `lsb_release -cs`-security

  6. #16
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Ubuntu 12.04 Server requires reboot after update

    Quote Originally Posted by CharlesA View Post
    Only free for Ubuntu Desktop (and Fedora), which is why I don't use it.
    Not really.
    See http://www.ksplice.com/uptrack/manual-installation#
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  7. #17
    Join Date
    Nov 2006
    Beans
    197

    Re: Ubuntu 12.04 Server requires reboot after update

    Yes, but you might have to get a license for a server...

  8. #18
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Ubuntu 12.04 Server requires reboot after update

    Quote Originally Posted by sandyd View Post
    Hmmm... It says say this:

    Code:
    echo 'uptrack uptrack/accesskey string INSERT_ACCESS_KEY' | debconf-set-selections
    I wonder how they tell the difference between server and desktop.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  9. #19
    Join Date
    Nov 2006
    Beans
    197

    Re: Ubuntu 12.04 Server requires reboot after update

    This is what I was wondering too...

  10. #20
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Ubuntu 12.04 Server requires reboot after update

    They dont
    Just get the access key, put it in, and it works for both desktop and server.
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

Page 2 of 3 FirstFirst 123 LastLast

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
  •