My ubuntu is running on windows 7 using VMWARE player. I was try to install tree command . but it failed. could you help me why?

I am using "sudo app-get install tree" command and it is failing with

E: unable to locate package tree

Ubuntu version is 14.04 LTS (GNU/Linux 3.13.0-24 generic x86_64)

Regards, Koushik


1 Answer 1


Package tree is available in Universe. Check that you have it enabled:

enter image description here

Then just do the usual

$ sudo apt-get update
$ sudo apt-get install tree

All Ubuntu repositories (main, universe, restricted, multiverse) can be enabled by following command:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
  • Not able to install in Ubuntu 15.10, although universe is enabled.
    – KhoPhi
    Oct 24, 2015 at 20:38
  • @Rexford packages.ubuntu.com/wily/tree
    – Salem
    Oct 24, 2015 at 20:58
  • but I havedeb http://archive.ubuntu.com/ubuntu wily main restricted in my sources.list ?
    – KhoPhi
    Oct 24, 2015 at 21:03
  • Well I can't see universe anywere in that line... Make sure universe is not commented and dont forget to run sudo apt-get update. Either way in that link you can download the file and install it using Software Center
    – Salem
    Oct 24, 2015 at 22:29
  • Got to download it now from ppa in terminal now. Thanks
    – KhoPhi
    Oct 26, 2015 at 18:29

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