6

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

Tim
  • 32,861
  • 27
  • 118
  • 178
user165062
  • 2,153
  • 3
  • 14
  • 6
  • @Tim there IS a package called tree in the official repo: http://packages.ubuntu.com/trusty/tree – chaos Aug 06 '14 at 12:31

1 Answers1

8

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"
Pandya
  • 35,771
  • 44
  • 128
  • 188
Salem
  • 19,744
  • Not able to install in Ubuntu 15.10, although universe is enabled. – KhoPhi Oct 24 '15 at 20:38
  • @Rexford http://packages.ubuntu.com/wily/tree – Salem Oct 24 '15 at 20:58
  • but I havedeb http://archive.ubuntu.com/ubuntu wily main restricted in my sources.list ? – KhoPhi Oct 24 '15 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 '15 at 22:29
  • Got to download it now from ppa in terminal now. Thanks – KhoPhi Oct 26 '15 at 18:29