Updating system

Update Cubian regularly to:

  • get security updates
  • get kernel updates
  • get bootloader updates
  • get new versions of some apps (like web browsers)
  • have longer technical support

Editing sources list

Every Debian installation has plain-text file, where are kept infos about servers with software. Tools like apt-get allows to upgrade system when new updates are available. You can edit file /etc/apt/sources.list as root in nano, to change some options.

Default sources.list file:

deb http://http.debian.net/debian/ wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb http://packages.cubian.org/ wheezy main


  • First line contains link to basic Debian repository
  • Second line contains link to repository with security updates - these packages have a higher priority
  • Third line contains link to Cubian-specific repository
  • You can replace wheezy to:
    • jessie - if you want to have testing version of Debian
    • sid - if you want to have unstable version of Debian
  • You can choose types of packages available to download:
    • main - only free, open-source packages
    • non-free - proprietary, non-free packages
    • contrib - packages that depends on non-free ones
    • Warning: Usage of non-free or contrib repos can be regarded as breaking the law in some countries!
  • If you want to build packages from sources, you can duplicate these lines, but with deb-src instead of deb.

Procedures of upgrading

  • Update database of available packages
    sudo apt-get update
  • Upgrade available packages to newest versions
    sudo apt-get upgrade
    • Note: If some packages are not upgraded still, or newer Debian version is available, use this command
      sudo apt-get dist-upgrade
  • Upgrade Cubian-specific files (configs, kernel)
    sudo cubian-update
  • Clear apt-cache to have more free space on SD card
    sudo apt-get clean

Inportant infos

  • In most cases, cubian-update will be not preinstalled. You must use sudo apt-get install cubian-update first
  • In most cases, cubian-update will restore original (Cubieboard) script.bin and overclocking setings.
    • To restore bootloader, type this command after update, but before reboot - or your system will never boot!!!
      sudo mv /boot/script.bin.bak /boot/script.bin