traceroute is not installing on ubuntu 18.04 LTS

16,219

UPDATE:

Your apt package manager is having trouble, you need to run:

sudo apt install -f
sudo apt autoclean

to check for broken installations and clean-up your apt package manager.

You should consider restarting your computer (depending on what apt fixed).

Now you can choose to use the tracepath package (preinstalled in linux) like this:

tracepath google.com

Or install Universe packages traceroute & net-tools with:

sudo apt install -y net-tools traceroute
Share:
16,219

Related videos on Youtube

mefahimrahman
Author by

mefahimrahman

Mr. Fahim Rahman is a problem solver and Tech Enthusiast. He has completed his B.Sc in Computer Science & Engineering from Khulna University.

Updated on September 18, 2022

Comments

  • mefahimrahman
    mefahimrahman over 1 year

    I tried to use traceroute for my networking project. But whenever I tried to install traceroute it shows that

    Reading package lists... Done  
    Building dependency tree         
    Reading state information... Done  
    You might want to run 'apt--fix-broken install' to correct these.  
    The following packages have unmet dependencies:
    code : Depends: libgconf-2-4 but it is not going to be installed  
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
    

    Then I followed this link. But again it is not successfully installed and shows that,

    Reading package lists... Done 
    Building dependency tree        
    Reading state information... Done 
    You might want to run 'apt --fix-broken install' to correct these. 
    The following packages have unmet dependencies:  code : Depends: libgconf-2-4 but it is not installed 
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
    

    Now my question is, How I can install the traceroute in my ubuntu 18.04?

    • vidarlo
      vidarlo over 5 years
      Have you tried running sudo apt --fix-broken install like the output suggests?
    • mefahimrahman
      mefahimrahman over 5 years
      thank you @waltinator. works with sudo command
    • goo
      goo over 5 years
      Howe are you trying to install traceroute? You didn't show us the commands. Have you tried sudo apt install traceroute? apt-cache search traceroute shows many choices.
    • mefahimrahman
      mefahimrahman over 5 years
      I had used sudo apt install traceroute. @waltinator. BTW it worked for me using sudo command for apt --fix-broken install