13

I'm getting this:

atul@ubuntu:~$ sudo apt-get install traceroute
[sudo] password for atul: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package traceroute 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 'traceroute' has no installation candidate

Can any one tell me how to solve this problem?

techraf
  • 3,316
user300617
  • 151
  • 1
  • 1
  • 3
  • What version of Ubuntu are you running? – Seth Jul 05 '14 at 05:26
  • i m running 12.10 – user300617 Jul 05 '14 at 05:49
  • You really need to upgrade to a supported release. Also, how have you been upgrading the machine? Through the terminal or the update manager? If the terminal, what commands have you been using? You have a lot of packages not upgraded. – Seth Jul 05 '14 at 06:26
  • i m using ubuntu virtually so basically i do not update it but now i m updating it using update manager – user300617 Jul 05 '14 at 06:37

1 Answers1

22

it has to be installed with the package inetutils-traceroute.

sudo apt-get install inetutils-traceroute
  • thx,but now i get this – user300617 Jul 05 '14 at 05:56
  • atul@ubuntu:~$ sudo apt-get install inetutils-traceroute [sudo] password for atul: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? – user300617 Jul 05 '14 at 05:57
  • Enter sudo rm /var/lib/dpkg/lock and then try. –  Jul 05 '14 at 06:00
  • root@ubuntu:/home/atul# rm /var/lib/dpkg/lock root@ubuntu:/home/atul# apt-get install inetutils-traceroute Reading package lists... Done Building dependency tree
    Reading state information... Done The following NEW packages will be installed: inetutils-traceroute 0 upgraded, 1 newly installed, 0 to remove and 493 not upgraded. E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/cache/apt/archives/
    – user300617 Jul 05 '14 at 06:07
  • 1
    root@ubuntu:/home/atul# traceroute The program 'traceroute' can be found in the following packages:
    • inetutils-traceroute
    • traceroute

    Try: apt-get install

    – user300617 Jul 05 '14 at 06:08
  • Enter sudo rm /var/cache/apt/archives/lock. then again try. meny files in your system are locked for some reasons. you need to sudo rm <LOCKED FILE> to remove the lock. –  Jul 05 '14 at 06:10
  • thx for u r help it's working...... – user300617 Jul 05 '14 at 06:14