Sunday, March 17, 2019

package management - How do I enable the "backports" repository?


How to enable the backports repository so I can get newer versions of software?



Ubuntu Backports are enabled by default in Ubuntu.


If for some motive you still don't get the backports use any of these 2 ways:



  1. Click the Ubuntu button on the launcher and search for "Software Sources". Search for "Software" if using 12.04+.


  2. Press ALT+F2 and Type: gksu software-properties-gtk



Any of the 2 Ways will get you to the Software Sources Manager or Software & Updates. In here Activate all 4 options in the Ubuntu Software Tab and in the Updates Tab. This should enable the Extras for your Ubuntu Version.


Ubuntu Software Sources - Ubuntu Software Tab


Ubuntu Software Sources - Updates Tab


After this just click on the CLOSE Button and it should let you know that it needs to update because of the changes you made. Note that in the Updates tab, the Backport option is the 4th one in there. It's the one that says Unsupported updates.


To activate the backports (Which is automatically enabled since 11.10) from the terminal (In cases where you are working on a server and want the backports enabled) do the following after opening the terminal (This example is using Ubuntu 13.04):


sudo nano /etc/apt/sources.list

And look for a commented line that mentions the keyword backport, should look something like raring-backports for 13.04, precise-backports for 12.04 and son. In this case it looks like this:


  ##deb http://archive.ubuntu.com/ubuntu raring-backports main restricted universe multiverse
##deb-src http://archive.ubuntu.com/ubuntu raring-backports main restricted universe multiverse

uncomment this lines so they look like this:


  deb http://archive.ubuntu.com/ubuntu raring-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu raring-backports main restricted universe multiverse

save the file and run the following to receive the backport updates:


sudo apt-get update
sudo apt-get upgrade

NOTE - If the lines are not found, simply add them and change the name of the version to the one you are using as explained above.


Reference


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...