Results 1 to 9 of 9

Thread: apt-get update question

  1. #1
    Join Date
    Jul 2012
    Beans
    2

    apt-get update question

    Hi all, my login banners says there are 6 security updates but I cannot seem to install them. What am I missing below?
    Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
    ...
    6 packages can be updated.
    6 updates are security updates.
    Then I do this:
    Code:
    $ sudo apt-get update
    ...
    Fetched 20.0 MB in 11s (1,715 kB/s)                                            
    Reading package lists... Done
    
    $ sudo apt-get upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages have been kept back:
      linux-headers-server linux-image-server linux-server
    0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

  2. #2
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,630

    Re: apt-get update question

    Dist upgrade:

    Code:
    sudo apt-get dist-upgrade

  3. #3
    Join Date
    Feb 2012
    Location
    Los Angeles, CA
    Beans
    138
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: apt-get update question

    Are you trying to upgrade your system to the development release or install new packages?

  4. #4
    Join Date
    Jun 2011
    Location
    North Carolina
    Beans
    463
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: apt-get update question

    Quote Originally Posted by mindlube View Post
    Hi all, my login banners says there are 6 security updates but I cannot seem to install them. What am I missing below?


    Then I do this:
    [CODE]$ sudo apt-get update

    $ sudo apt-get upgrade
    If you are updating: sudo apt-get update

    and I would suggest a reboot

  5. #5
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: apt-get update question

    Code:
    sudo apt-get dist-upgrade
    does not upgrade to the next version of Ubuntu. It does what

    Code:
    sudo apt-get upgrade
    does, with the addition of attempting to resolve dependency issues
    The Left Coast Geek * The Community ATI Driver Wiki * Find what you need in the Ubuntu Community wikis

    Don't let the truth get in the way of a good story!
    This universe is crazy. I'm going back to my own.


  6. #6
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: apt-get update question

    To be clearer,
    Code:
    sudo apt-get upgrade
    Will upgrade any packages that are already on your system to the newest versions.
    Because installing a kernel update actually installs a new package on your system instead of upgrading the current kernel you need to use:
    Code:
    sudo apt-get dist-upgrade
    Cheesemill

  7. #7
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: apt-get update question

    Quote Originally Posted by BBQdave View Post
    If you are updating: sudo apt-get update

    and I would suggest a reboot
    That does not update any software. It updates the sources list and what is available for upgrading. In and of itself it does not update or upgrade apps or components.

    It must be followed by

    Code:
    sudo apt-get upgrade
    or in this case

    Code:
    sudo apt-get dist-upgrade
    to actually get the latest apps and updates.

    Please see this wiki for details.
    Last edited by QIII; July 17th, 2012 at 07:01 PM.
    The Left Coast Geek * The Community ATI Driver Wiki * Find what you need in the Ubuntu Community wikis

    Don't let the truth get in the way of a good story!
    This universe is crazy. I'm going back to my own.


  8. #8
    Join Date
    Jul 2012
    Beans
    2

    Re: apt-get update question

    Thanks for the replies all! I continued to do over a few days time:
    sudo apt-get update
    sudo apt-get upgrade
    and eventually the warning on the banner went away. Maybe it was a temporary glitch, or the banner was outdated or something.
    I just did sudo apt-get dist-upgrade and it installed the latest kernel version too (still Ubuntu 12.04)
    So I guess I'm all good

  9. #9
    Join Date
    Nov 2010
    Location
    India
    Beans
    Hidden!
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: apt-get update question

    mark the thread as solved from thread tools .
    Dont miss anything even it is small. one small pin is enough to bring down a man.


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
  •