How To Fix “E: Unable to locate Ubuntu-restricted-extras”

Ubuntu Restricted Extras is the first package that most people install after a new installation of Ubuntu or any Ubuntu based Linux distro. You have just completed a new Ubuntu or Ubuntu based distro such as Elementary OS and needs to install restricted extras.

This article only talks about “ubuntu-restricted-extras”, but after running apt-get with other package names you will notice the same error. Hence it does not only apply to Ubuntu Restricted Extras and can be used to fix this on other packages as well.

Opening the terminal and running the command below produces “E: Unable to locate Ubuntu-restricted-extras” same will it be for other packages.

$ sudo apt-get install ubuntu-restricted-extras
[sudo] password for enock: 
Reading package lists... Done
E: Unable to locate Ubuntu-restricted-extras

FIXING THIS

To fix this :

1. Open Terminal

2. Run the command below for your system to be updated:

$ sudo apt-get update

After the update has been completed re-run apt-get with the package you were trying to install. For now we want to install ubuntu restricted extras. Hence we run the command below:

$ sudo apt-get install ubuntu-restricted-extras
[sudo] password for enock: 
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following extra packages will be installed:
cabextract chromium-codecs-ffmpeg-extra flashplugin-installer freepats gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3
gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer1.0-fluendo-mp3 gstreamer1.0-libav
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly liba52-0.7.4 libass4 libavcodec-extra-53 libavformat53 libavutil-extra-51 libcdaudio1
libchromaprint0 libdc1394-22 libdca0 libdirac-encoder0 libdirectfb-1.2-9 libdvdnav4 libdvdread4 libenca0 libfaac0 libfaad2 libfftw3-3
libfftw3-double3 libflite1 libfluidsynth1 libgles2-mesa libgme0 libgsm1 libgstreamer-plugins-bad0.10-0 libgstreamer-plugins-bad1.0-0 libkate1
libmad0 libmimic0 libmjpegutils-2.0-0 libmms0 libmodplug1 libmp3lame0 libmpcdec6 libmpeg2-4 libmpeg2encpp-2.0-0 libmpg123-0 libmplex2-2.0-0
libnspr4-0d libofa0 liboil0.3 libopenal-data libopenal1 libopencore-amrnb0 libopencore-amrwb0 libopenjpeg2 libopus0 libpostproc52
libschroedinger-1.0-0 libsidplay1 libslv2-9 libsoundtouch0 libspandsp2 libsrtp0 libswscale2 libts-0.0-0 libtwolame0 libva1 libvo-aacenc0
libvo-amrwbenc0 libwebp4 libwildmidi-config libwildmidi1 libx264-123 libxvidcore4 libzbar0 libzvbi-common libzvbi0 tsconf
ttf-mscorefonts-installer ubuntu-restricted-addons unrar
suggested packages:
x-ttcidfont-conf ttf-bitstream-vera ttf-dejavu ttf-xfree86-nonfree xfs frei0r-plugins libchromaprint-tools python-acoustid libdvdcss2
debhelper fakeroot build-essential libfftw3-bin libfftw3-dev libroar-compat2 opus-tools sidplay-base xsidplay slv2-jack srtp-utils
the following NEW packages will be installed:
cabextract chromium-codecs-ffmpeg-extra flashplugin-installer freepats gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3
gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer1.0-fluendo-mp3 gstreamer1.0-libav
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly liba52-0.7.4 libass4 libavcodec-extra-53 libavformat53 libavutil-extra-51 libcdaudio1
libchromaprint0 libdc1394-22 libdca0 libdirac-encoder0 libdirectfb-1.2-9 libdvdnav4 libdvdread4 libenca0 libfaac0 libfaad2 libfftw3-3
libfftw3-double3 libflite1 libfluidsynth1 libgles2-mesa libgme0 libgsm1 libgstreamer-plugins-bad0.10-0 libgstreamer-plugins-bad1.0-0 libkate1
libmad0 libmimic0 libmjpegutils-2.0-0 libmms0 libmodplug1 libmp3lame0 libmpcdec6 libmpeg2-4 libmpeg2encpp-2.0-0 libmpg123-0 libmplex2-2.0-0
libnspr4-0d libofa0 liboil0.3 libopenal-data libopenal1 libopencore-amrnb0 libopencore-amrwb0 libopenjpeg2 libopus0 libpostproc52
libschroedinger-1.0-0 libsidplay1 libslv2-9 libsoundtouch0 libspandsp2 libsrtp0 libswscale2 libts-0.0-0 libtwolame0 libva1 libvo-aacenc0
libvo-amrwbenc0 libwebp4 libwildmidi-config libwildmidi1 libx264-123 libxvidcore4 libzbar0 libzvbi-common libzvbi0 tsconf
ttf-mscorefonts-installer ubuntu-restricted-addons ubuntu-restricted-extras unrar
0 upgraded, 85 newly installed, 0 to remove and 194 not upgraded.
Need to get 56.4 MB of archives.
After this operation, 104 MB of additional disk space will be used.
Do you want to continue [Y/n]?

And you are now done. Enjoy.