This simply means APT does not think the package with the name matching exactly what you entered is available in any repository your local APT knows of.
What does this mean? One of these two things:
- The package you'd like to find has some other name;
- The repository the package with that exact name is not known to APT.
What can you do about this?
First, try to search the package cache (the list of all the packages from the repositories known to APT on your system) for a less precise name, something like
apt-cache search libgmp
or even
apt-cache search gmp
might do the trick (you might want to pipe the output to less
to be able to search further through it). For instance, the package might include a version in it, like libgmp4-dev
(meaning there might be libgmp3-dev
available or something like this).
Next, be sure APT knows about the repository containing that package.
On my Wheezy system, I have:
$ apt-cache search libgmp-dev
libgmp-dev - Multiprecision arithmetic library developers tools
libgmp3-dev - Multiprecision arithmetic library developers tools
and
$ apt-cache policy libgmp-dev
libgmp-dev:
Installed: (none)
Candidate: 2:5.0.5+dfsg-2
Version table:
2:5.0.5+dfsg-2 0
500 http://http.debian.net/debian/ wheezy/main amd64 Packages
which means the package is available in the standard (main) Debian repository.
So… make sure you have that repository available:
- Locate the file
/etc/apt/sources.list
.
Try to find there an uncommented (not prefixed with the #
character) line reading like
deb http://ftp.de.debian.org/debian wheezy main
and if you don't have one, try adding
deb http://http.debian.net/debian wheezy main
there, saving the file.
Run
# apt-get update
to fetch the package list from that repository and adding the list of available packages from it to the local APT's cache.
Verify the package became available using
$ apt-cache policy libgmp-dev