Ubuntu – What are the differences between “precise” and “precise-updates” and “precise-backports”

release-management

In /etc/apt/source.list,

deb http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

I wonder what differences are between "precise" and "precise-updates" and "precise-backports" I only know "precise" means the code name of Ubuntu release 12.04. Thanks.

Best Answer

The Ubuntu Help site has the answer:

  1. "Important Security Updates (raring-security)". Patches for security vulnerabilities in Ubuntu packages. They are managed by the Ubuntu Security Team and are designed to change the behavior of the package as little as possible -- in fact, the minimum required to resolve the security problem. As a result, they tend to be very low-risk to apply and all users are urged to apply security updates.
  2. "Recommended Updates (raring-updates)". Updates for serious bugs in Ubuntu packaging that do not affect the security of the system.
  3. "Pre-released Updates (raring-proposed)". The testing area for updates. This repository is recommended only to those interested in helping to test updates and provide feedback.
  4. "Unsupported Updates (raring-backports)". As the name states, these are unsupported new versions of packages which have been backported to an older release. Packages may contain new features, may introduce new interfaces, and bugs.

For example, the phpldapadmin package that was released for trusty has a serious packaging bug, where it expected a directory structure use in Apache 2.2, whereas trusty had Apache 2.4. It couldn't even be installed. The fix was released in trusty-updates.

For most users, enabling all four shouldn't be a problem most of the time. For a very stable environment, keep only security enabled. Keep updates enabled if some package you're using has a packaging issue. Updates packages have to conform to policies regarding stable updates, so they shouldn't cause breakage and keeping them enabled all the time is recommended. Keep proposed enabled if you don't mind testing out new things. This might cause things to break on occasion, so if you're not a fan of the " latest and greatest" philosophy, keep it disabled unless you have a problem and devs ask you to enable it. Keep backports enabled if you wish to have software that is typically only available for a newer release of Ubuntu.