Segmentation faulty tree: while running any command using aptapt-get upgrade: Segmentation faulty tree… 50%I am unable to install skype on ubuntu 14.04Can't open vlc on Ubuntu 15.04Error while updating Ubuntu - The package system is brokenUbuntu 18.04 update issue

What stops one country from issuing another country's passports?

Minimum path sum in a triangle (Project Euler 18 and 67) with Python

Why not send a Gaia-like mission to Mars?

Apps are not allowed by Google to read SMS messages, but why can they read OTP SMS directly?

Why do investors pay trillions for minority stakes in companies, when their only potential payback is modest uncertain dividends?

How did Asian civilizations circa 1500 produce cosmetics?

Is the worst version of the accusations against President Trump impeachable?

Time Complexity: Factorial and Exponentiation

Why the translation is not linear transformation?

Cheap and safe way to dim 100+ 60W Incandescent bulbs

Do testnets ever merge with mainnets?

Implementing solvers with Object Oriented Programming

Brainfuck interpreter written in C

Was Locomotive BASIC significantly better than Sinclair BASIC?

How can 16th-level characters mitigate damage from a lethal (long) fall?

What is the rule behind 一带一路?

Is it a bad design for a programming language to allow spaces in identifiers?

Does the FCC care about electrical arcs?

Find maximum extent out of list of shapefiles (in projected coordinate system) in R

what kind of natural disaster can affect earth on a planetary scale?

Plane ticket price went down by 40% two weeks after I booked it. Is there anything I can do to get a refund?

How to prepare for The Mandalorian?

Why would anyone choose not use the lowlatency kernel?

What is the rationale for single engine military aircraft?



Segmentation faulty tree: while running any command using apt


apt-get upgrade: Segmentation faulty tree… 50%I am unable to install skype on ubuntu 14.04Can't open vlc on Ubuntu 15.04Error while updating Ubuntu - The package system is brokenUbuntu 18.04 update issue






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









1


















I'm using Ubuntu 18.04.



When I run any command with apt, I get a segmentation fault.



Segmentation faulty tree... 50%



(Sometimes it shows Segmentation faulty tree (Core dumped))



I tried many solutions listed in the forum, but none of them worked.



The commands I tried were:



sudo rm /var/cache/apt/*.bin



sudo rm -rf /var/cache/apt/*.bin



They run without showing any error, but the segmentation fault is still there.



This error started when I pressed Ctrl + C while trying to install aptitude using apt.










share|improve this question






















  • 1





    Try reinstalling apt. Download the apt package for 18.04 from packages.ubuntu.com, then use dpkg to reinstall apt: sudo dpkg --install /full/path/to/downloaded/package.deb

    – user535733
    Sep 19 at 15:16












  • Inspect the files in /var/crash/

    – waltinator
    Sep 19 at 17:53











  • @user535733 Thank you tons!! This worked wonders!

    – Ignorant Adventurer
    Sep 20 at 15:19

















1


















I'm using Ubuntu 18.04.



When I run any command with apt, I get a segmentation fault.



Segmentation faulty tree... 50%



(Sometimes it shows Segmentation faulty tree (Core dumped))



I tried many solutions listed in the forum, but none of them worked.



The commands I tried were:



sudo rm /var/cache/apt/*.bin



sudo rm -rf /var/cache/apt/*.bin



They run without showing any error, but the segmentation fault is still there.



This error started when I pressed Ctrl + C while trying to install aptitude using apt.










share|improve this question






















  • 1





    Try reinstalling apt. Download the apt package for 18.04 from packages.ubuntu.com, then use dpkg to reinstall apt: sudo dpkg --install /full/path/to/downloaded/package.deb

    – user535733
    Sep 19 at 15:16












  • Inspect the files in /var/crash/

    – waltinator
    Sep 19 at 17:53











  • @user535733 Thank you tons!! This worked wonders!

    – Ignorant Adventurer
    Sep 20 at 15:19













1













1









1








I'm using Ubuntu 18.04.



When I run any command with apt, I get a segmentation fault.



Segmentation faulty tree... 50%



(Sometimes it shows Segmentation faulty tree (Core dumped))



I tried many solutions listed in the forum, but none of them worked.



The commands I tried were:



sudo rm /var/cache/apt/*.bin



sudo rm -rf /var/cache/apt/*.bin



They run without showing any error, but the segmentation fault is still there.



This error started when I pressed Ctrl + C while trying to install aptitude using apt.










share|improve this question
















I'm using Ubuntu 18.04.



When I run any command with apt, I get a segmentation fault.



Segmentation faulty tree... 50%



(Sometimes it shows Segmentation faulty tree (Core dumped))



I tried many solutions listed in the forum, but none of them worked.



The commands I tried were:



sudo rm /var/cache/apt/*.bin



sudo rm -rf /var/cache/apt/*.bin



They run without showing any error, but the segmentation fault is still there.



This error started when I pressed Ctrl + C while trying to install aptitude using apt.







apt 18.04 package-management






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 20 at 19:29









N0rbert

35.8k10 gold badges81 silver badges167 bronze badges




35.8k10 gold badges81 silver badges167 bronze badges










asked Sep 19 at 14:35









Ignorant AdventurerIgnorant Adventurer

214 bronze badges




214 bronze badges










  • 1





    Try reinstalling apt. Download the apt package for 18.04 from packages.ubuntu.com, then use dpkg to reinstall apt: sudo dpkg --install /full/path/to/downloaded/package.deb

    – user535733
    Sep 19 at 15:16












  • Inspect the files in /var/crash/

    – waltinator
    Sep 19 at 17:53











  • @user535733 Thank you tons!! This worked wonders!

    – Ignorant Adventurer
    Sep 20 at 15:19












  • 1





    Try reinstalling apt. Download the apt package for 18.04 from packages.ubuntu.com, then use dpkg to reinstall apt: sudo dpkg --install /full/path/to/downloaded/package.deb

    – user535733
    Sep 19 at 15:16












  • Inspect the files in /var/crash/

    – waltinator
    Sep 19 at 17:53











  • @user535733 Thank you tons!! This worked wonders!

    – Ignorant Adventurer
    Sep 20 at 15:19







1




1





Try reinstalling apt. Download the apt package for 18.04 from packages.ubuntu.com, then use dpkg to reinstall apt: sudo dpkg --install /full/path/to/downloaded/package.deb

– user535733
Sep 19 at 15:16






Try reinstalling apt. Download the apt package for 18.04 from packages.ubuntu.com, then use dpkg to reinstall apt: sudo dpkg --install /full/path/to/downloaded/package.deb

– user535733
Sep 19 at 15:16














Inspect the files in /var/crash/

– waltinator
Sep 19 at 17:53





Inspect the files in /var/crash/

– waltinator
Sep 19 at 17:53













@user535733 Thank you tons!! This worked wonders!

– Ignorant Adventurer
Sep 20 at 15:19





@user535733 Thank you tons!! This worked wonders!

– Ignorant Adventurer
Sep 20 at 15:19










1 Answer
1






active

oldest

votes


















1



















When an ordinary application (like apt) start segfaulting, and it seems like nothing has changed that might otherwise account for the problem, then try reinstalling the package.



sudo apt install --reinstall the_package_name


In this case, since apt is the problem, you can't do that. Instead, use dpkg to reinstall apt.



This is usually pretty easy:



  • The original .deb package is sitting in your /var/cache/apt/archives


  • dpkg will automatically overwrite the older package files with newer when simply told to --install (so you DON'T need to specify --reinstall to dpkg).

So poke around in your filesystem to find the .deb file and you get...



sudo dpkg --install /var/cache/apt/archives/exact_name_of_the_deb_file.deb


However, in this case, there's an additional problem: Sometimes folks delete the deb file from their /var/cache! They usually don't mean to - they just don't quite understand how apt works, and perhaps don't quite understand the magic shell incantations that they are inputting.



(Advice: DON'T input magic shell incantations. Take the time to understand what a command does before you run it. It might make things worse.)



You can overcome this problem by downloading the package using a web browser from http://packages.ubuntu.com. DON'T cleverly download the newest package from the newest release (that causes new problems). Just download the appropriate package for your release of Ubuntu.



Save the .deb package where you can find it. Then:



sudo dpkg --install /full/path/to/the/package.deb


If this didn't solve the segfault problem, then you have some other problem (like a wrong-release package) that simple reinstallation won't solve.






share|improve this answer


























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1175279%2fsegmentation-faulty-tree-while-running-any-command-using-apt%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown


























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1



















    When an ordinary application (like apt) start segfaulting, and it seems like nothing has changed that might otherwise account for the problem, then try reinstalling the package.



    sudo apt install --reinstall the_package_name


    In this case, since apt is the problem, you can't do that. Instead, use dpkg to reinstall apt.



    This is usually pretty easy:



    • The original .deb package is sitting in your /var/cache/apt/archives


    • dpkg will automatically overwrite the older package files with newer when simply told to --install (so you DON'T need to specify --reinstall to dpkg).

    So poke around in your filesystem to find the .deb file and you get...



    sudo dpkg --install /var/cache/apt/archives/exact_name_of_the_deb_file.deb


    However, in this case, there's an additional problem: Sometimes folks delete the deb file from their /var/cache! They usually don't mean to - they just don't quite understand how apt works, and perhaps don't quite understand the magic shell incantations that they are inputting.



    (Advice: DON'T input magic shell incantations. Take the time to understand what a command does before you run it. It might make things worse.)



    You can overcome this problem by downloading the package using a web browser from http://packages.ubuntu.com. DON'T cleverly download the newest package from the newest release (that causes new problems). Just download the appropriate package for your release of Ubuntu.



    Save the .deb package where you can find it. Then:



    sudo dpkg --install /full/path/to/the/package.deb


    If this didn't solve the segfault problem, then you have some other problem (like a wrong-release package) that simple reinstallation won't solve.






    share|improve this answer





























      1



















      When an ordinary application (like apt) start segfaulting, and it seems like nothing has changed that might otherwise account for the problem, then try reinstalling the package.



      sudo apt install --reinstall the_package_name


      In this case, since apt is the problem, you can't do that. Instead, use dpkg to reinstall apt.



      This is usually pretty easy:



      • The original .deb package is sitting in your /var/cache/apt/archives


      • dpkg will automatically overwrite the older package files with newer when simply told to --install (so you DON'T need to specify --reinstall to dpkg).

      So poke around in your filesystem to find the .deb file and you get...



      sudo dpkg --install /var/cache/apt/archives/exact_name_of_the_deb_file.deb


      However, in this case, there's an additional problem: Sometimes folks delete the deb file from their /var/cache! They usually don't mean to - they just don't quite understand how apt works, and perhaps don't quite understand the magic shell incantations that they are inputting.



      (Advice: DON'T input magic shell incantations. Take the time to understand what a command does before you run it. It might make things worse.)



      You can overcome this problem by downloading the package using a web browser from http://packages.ubuntu.com. DON'T cleverly download the newest package from the newest release (that causes new problems). Just download the appropriate package for your release of Ubuntu.



      Save the .deb package where you can find it. Then:



      sudo dpkg --install /full/path/to/the/package.deb


      If this didn't solve the segfault problem, then you have some other problem (like a wrong-release package) that simple reinstallation won't solve.






      share|improve this answer



























        1















        1











        1









        When an ordinary application (like apt) start segfaulting, and it seems like nothing has changed that might otherwise account for the problem, then try reinstalling the package.



        sudo apt install --reinstall the_package_name


        In this case, since apt is the problem, you can't do that. Instead, use dpkg to reinstall apt.



        This is usually pretty easy:



        • The original .deb package is sitting in your /var/cache/apt/archives


        • dpkg will automatically overwrite the older package files with newer when simply told to --install (so you DON'T need to specify --reinstall to dpkg).

        So poke around in your filesystem to find the .deb file and you get...



        sudo dpkg --install /var/cache/apt/archives/exact_name_of_the_deb_file.deb


        However, in this case, there's an additional problem: Sometimes folks delete the deb file from their /var/cache! They usually don't mean to - they just don't quite understand how apt works, and perhaps don't quite understand the magic shell incantations that they are inputting.



        (Advice: DON'T input magic shell incantations. Take the time to understand what a command does before you run it. It might make things worse.)



        You can overcome this problem by downloading the package using a web browser from http://packages.ubuntu.com. DON'T cleverly download the newest package from the newest release (that causes new problems). Just download the appropriate package for your release of Ubuntu.



        Save the .deb package where you can find it. Then:



        sudo dpkg --install /full/path/to/the/package.deb


        If this didn't solve the segfault problem, then you have some other problem (like a wrong-release package) that simple reinstallation won't solve.






        share|improve this answer














        When an ordinary application (like apt) start segfaulting, and it seems like nothing has changed that might otherwise account for the problem, then try reinstalling the package.



        sudo apt install --reinstall the_package_name


        In this case, since apt is the problem, you can't do that. Instead, use dpkg to reinstall apt.



        This is usually pretty easy:



        • The original .deb package is sitting in your /var/cache/apt/archives


        • dpkg will automatically overwrite the older package files with newer when simply told to --install (so you DON'T need to specify --reinstall to dpkg).

        So poke around in your filesystem to find the .deb file and you get...



        sudo dpkg --install /var/cache/apt/archives/exact_name_of_the_deb_file.deb


        However, in this case, there's an additional problem: Sometimes folks delete the deb file from their /var/cache! They usually don't mean to - they just don't quite understand how apt works, and perhaps don't quite understand the magic shell incantations that they are inputting.



        (Advice: DON'T input magic shell incantations. Take the time to understand what a command does before you run it. It might make things worse.)



        You can overcome this problem by downloading the package using a web browser from http://packages.ubuntu.com. DON'T cleverly download the newest package from the newest release (that causes new problems). Just download the appropriate package for your release of Ubuntu.



        Save the .deb package where you can find it. Then:



        sudo dpkg --install /full/path/to/the/package.deb


        If this didn't solve the segfault problem, then you have some other problem (like a wrong-release package) that simple reinstallation won't solve.







        share|improve this answer













        share|improve this answer




        share|improve this answer










        answered Sep 20 at 16:49









        user535733user535733

        11.5k3 gold badges33 silver badges49 bronze badges




        11.5k3 gold badges33 silver badges49 bronze badges































            draft saved

            draft discarded















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1175279%2fsegmentation-faulty-tree-while-running-any-command-using-apt%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown









            Popular posts from this blog

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?