I am setting up my new Ubuntu 15.10 VM. I need to install update-alternatives on it. I ran the command sudo apt-get install update-alternatives, however, I get the following output in the terminal:

Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
E: Unable to locate package update-alternatives

I can install all other packages I've wanted till now, exceptupdate-alternatives. Is this a repo issue? Do I need to add a repo name in the sources? Any suggestions on this will be really helpful.

  • 3
    /usr/bin/update-alternatives is provided by the package dpkg – Knud Larsen Jul 4 '16 at 7:10

You already have update-alternatives; there is nothing to install. Run which update-alternatives to check where it is on your $PATH.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.