Error downloading font codes in Linux Mint 13: Solution

Today I was bitten by the bug to see the source code of the command "ls" in GNU / Linux. This command belongs to the "coreutils" package so to obtain it you had to execute

apt-get source coreutils

The error thrown in Linux Mint was

E: Unable to find a source package for coreutils

The problem in Linux Mint, is that they do not add the repositories that contain the source codes from which the packages we installed were compiled.

The solution is simple, we just have to add the repositories to the sources.list

sudo pluma /etc/apt/sources.list

Where it says pen replace by your favorite plain text editor

Now for each repository "deb" we have to add its counterpart "deb-src" which would be the repository of the source code

yes, src comes from the word source

For example if we have the repository

deb http://packages.linuxmint.com/

We add its counterpart

deb-src http://packages.linuxmint.com/

And so with all repositories, or at least of which we want to be able to receive the source code

We update

sudo apt-get update

And now if we can get the source code of the desired package

I found the solution by reading the apt man in the source session

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.