Menu

raspbx-upgrade vs apt-get dist-upgrade

James
2018-01-07
2018-01-08
  • James

    James - 2018-01-07

    I thought I'd seen this somewhere on the forum before, but I was unable to find any discussion on this.

    I'm running raspbx-10-10-2017.zip with upgrades since.

    I get different results if I use raspbx-upgrade versus apt-get update/upgrade:

    # raspbx-upgrade 
    RasPBX upgrade tool
    Run "raspbx-upgrade --help" for additional options
    Base version: 03-10-2017
    Installed upgrade:        25
    Local upgrade available:  25
    Online upgrade available: 25
    Checking repositories for updated packages...
    Hit:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease
    Hit:2 http://repo.raspbx.org/apt/debian stretch InRelease
    Hit:3 http://archive.raspberrypi.org/debian stretch InRelease
    Hit:4 http://mirrordirector.raspbian.org/raspbian jessie InRelease                       
    Reading package lists... Done                                                            
    Your system is up to date.
    

    versus:

    # apt-get dist-upgrade 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Calculating upgrade... Done
    The following packages will be upgraded:
      apt apt-transport-https apt-utils asterisk13 base-files bind9-host bluez bluez-firmware curl dbus dhcpcd5 dirmngr
      dns-root-data dnsmasq dnsmasq-base fig2dev gnupg gnupg-agent gpgv icu-devtools iproute2 libapt-inst2.0 libapt-pkg5.0
      libbind9-140 libbluetooth3 libcurl3 libcurl3-gnutls libdb5.3 libdbus-1-3 libdns-export162 libdns162 libgnutls30
      libgssapi-krb5-2 libicu-dev libicu57 libisc-export160 libisc160 libisccc140 libisccfg140 libk5crypto3 libkrb5-3
      libkrb5support0 libldap-2.4-2 libldap-common liblwres141 libncurses5 libncursesw5 libpq5 libpython2.7
      libpython2.7-minimal libpython2.7-stdlib libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0
      libsqlite3-0 libssl1.0.0 libssl1.0.2 libssl1.1 libtinfo5 libwbclient0 linux-libc-dev ncurses-base ncurses-bin
      ncurses-term openssh-client openssh-server openssh-sftp-server openssl python-samba python2.7 python2.7-minimal
      raspberrypi-bootloader raspberrypi-kernel raspberrypi-sys-mods raspi-config rsync samba samba-common samba-common-bin
      samba-dsdb-modules samba-libs samba-vfs-modules sensible-utils sqlite3 ssh transfig tzdata vim-common vim-tiny wget
      wpasupplicant xkb-data xxd
    94 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 137 MB of archives.
    After this operation, 403 kB of additional disk space will be used.
    Do you want to continue? [Y/n] 
    

    In https://sourceforge.net/p/raspbx/discussion/general/thread/470e6ef6/#a5aa it's mentioned that "The raspbx-upgrade command also calls it, but installs a few additional patches on top from time to time." "it" in this case being "apt-get dist-upgrade".

    Can someone chime in as to the discrepancy?

    Is there an added advantage to running "apt-get upgrade"? It appears to update a good many things (in my case), including some that could impact security like ssh and the kernel.

     
  • Gernot

    Gernot - 2018-01-07

    You are right, this is in fact a bug in raspbx-upgrade. When I wrote this script initially I wanted it to not update all the Raspbian packages every time it is being called, because most of the updates are not crtitical anyway and it only puts unecessary IO load on the SD card. So I decided it should only update all the packages whenever there is a new Asterisk version available. But with Rasbian Jessie the behavior already changed to update every time when it is being called.
    Unfortunately it is not perfectly compatible with Rasbian Stretch anymore, it should have updated in your case anyway because a new version of the package asterisk13 is available (see your post above).
    I will fix this bug asap and upload a new version. Thanks a lot for reporting this. I'll post again here when the new version is out.

     
  • Gernot

    Gernot - 2018-01-08

    The bugfix is uploaded, from now on raspbx-upgrade always calls apt-get dist-upgrade on each run. The script updates itself by calling raspbx-upgrade
    Thanks again for reporting this bug.

     

Log in to post a comment.