3
ilshat@lpt:~$ sudo apt-get install synaptic
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package synaptic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘synaptic’ has no installation candidate
  • I have tried doing a sudo apt-get update but that doesn't work.
Jorge Castro
  • 71,754
rohit
  • 31
  • 1
  • 1
  • 2
  • 1
    Have you tried installing it from the Software center ?

    and try updating the repo by running sudo apt-get update

    – Srinivas Gowda May 09 '12 at 16:47
  • yes i have tried that also but it wont working.....i am new to ubuntu plz mind that also.. – rohit May 09 '12 at 17:00
  • what your version of Ubuntu? ... please show uname -s output – swift Jul 11 '12 at 16:16
  • @rohit most likely, you have synaptic installed already :) try to type in lens 'syn' – swift Jul 11 '12 at 16:25
  • @swift, not sure how uname -s is going to help here, should probably run lsb_release -r instead to find the version of Ubuntu – tgm4883 Jul 11 '12 at 16:25
  • @swift, if it was already installed, it would return the message synaptic is already the newest version., not the error he is receiving. – tgm4883 Jul 11 '12 at 16:28
  • yes I'm do not against )) just want to say that I installed my Ubuntu, and it seems, synaptic was installed in distribution by default ... – swift Jul 11 '12 at 16:28
  • @swift, that was in previous versions. Synaptic was removed from the default install for 11.10. – tgm4883 Jul 11 '12 at 16:30
  • yes I seen ... strange, maybe I forget ... in 12.04 I have synaptic from start ... – swift Jul 11 '12 at 16:38
  • Change your Mirror from software sources and try again. – atenz Jul 11 '12 at 16:40
  • @ swift -strange you got synaptic as default , because it was dropped from 11.04 , you can look here synaptic is not present. – atenz Jul 11 '12 at 16:48
  • laugh))) i'm upgraded from beta ... synaptic was included to beta – swift Jul 11 '12 at 21:32
  • Possible duplicate of http://askubuntu.com/questions/14685/what-does-package-package-has-no-installation-candidate-mean – Eliah Kagan Jan 09 '13 at 13:38

4 Answers4

6

Synaptic is available in the so-called universe repository. If you cannot find that package, it means that you do not have universe enabled. To enable it, follow these steps:

GUI

Open Software Sources and select Community-maintained free and open-source software (universe)

Software Sources

After doing so, you will be asked to reload the software sources and you will be ready to install your package.

Terminal

Open the file /etc/apt/sources.list:

sensible-editor /etc/apt/sources.list

And add the following three lines:

deb http://archive.ubuntu.com/ubuntu/ quantal universe
deb http://archive.ubuntu.com/ubuntu/ quantal-updates universe
deb http://security.ubuntu.com/ubuntu/ quantal-security universe

Note: I'm assuming that you are using Quantal (12.10). If this is not the case, then use lsb_release -c to find the codename of your Ubuntu release and replace quantal with that codename.

Then run sudo apt-get update and install Synaptic.

1

Fixing /etc/apt/sources.list was not enough for me:

deb http://br.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ precise-updates main restricted

Then I did an apt-get update: got lots of invalid signature errors.

It was company's proxy.

Only then apt-get update worked and I could install packages again.

jpfreire
  • 111
  • 3
0

Make sure that in Software & Updates (Ubuntu Software tab) Community-maintained free and open-source software (universe) is enabled. Then install synaptic by running in a terminal:

sudo apt-get install synaptic
0

That error means that the repositories you are using don't have the synaptic package in them, but apt can see other packages refer to the synaptic package. What repository are you using? If you can change back to the defaults (archive.ubuntu.com) then do an apt-get update you should be able to install it.

tgm4883
  • 7,912