Error while moving old database out of the way











up vote
3
down vote

favorite












Every time I try to run sudo apt-get update, I get this error message:



** (appstreamcli:9437): CRITICAL **: Error while moving old database out of the way.
AppStream cache update failed.


What can I check for to solve this problem? The number which comes after the colon in appstreamcli varies, but the rest of the message is always the same.










share|improve this question




















  • 1




    you can try sudo chmod -R 777 /var/cache/app-info/xapian/default you should be able to do the update then ... This isn't a fix ... this may revert back and give you the same error next time you update ... but I ran into this on Ubuntu for Windows for a while and it was the only fix we could come up with ... it has since fixed itself .. well .. it doesn't happen anymore. So this should get you by at least .. but .. don't take it as a fix .. more of a work around.. I was never able to discover the actual cause :(
    – John Orion
    Mar 29 at 23:55












  • Thanks for your help, but I didn't do the trick. I'll keep trying..
    – user3565884
    Mar 30 at 0:33










  • hmm ok .. maybe it wasn't the same thing I was running into .. sorry it was my only idea on this issue :(
    – John Orion
    Mar 30 at 0:35















up vote
3
down vote

favorite












Every time I try to run sudo apt-get update, I get this error message:



** (appstreamcli:9437): CRITICAL **: Error while moving old database out of the way.
AppStream cache update failed.


What can I check for to solve this problem? The number which comes after the colon in appstreamcli varies, but the rest of the message is always the same.










share|improve this question




















  • 1




    you can try sudo chmod -R 777 /var/cache/app-info/xapian/default you should be able to do the update then ... This isn't a fix ... this may revert back and give you the same error next time you update ... but I ran into this on Ubuntu for Windows for a while and it was the only fix we could come up with ... it has since fixed itself .. well .. it doesn't happen anymore. So this should get you by at least .. but .. don't take it as a fix .. more of a work around.. I was never able to discover the actual cause :(
    – John Orion
    Mar 29 at 23:55












  • Thanks for your help, but I didn't do the trick. I'll keep trying..
    – user3565884
    Mar 30 at 0:33










  • hmm ok .. maybe it wasn't the same thing I was running into .. sorry it was my only idea on this issue :(
    – John Orion
    Mar 30 at 0:35













up vote
3
down vote

favorite









up vote
3
down vote

favorite











Every time I try to run sudo apt-get update, I get this error message:



** (appstreamcli:9437): CRITICAL **: Error while moving old database out of the way.
AppStream cache update failed.


What can I check for to solve this problem? The number which comes after the colon in appstreamcli varies, but the rest of the message is always the same.










share|improve this question















Every time I try to run sudo apt-get update, I get this error message:



** (appstreamcli:9437): CRITICAL **: Error while moving old database out of the way.
AppStream cache update failed.


What can I check for to solve this problem? The number which comes after the colon in appstreamcli varies, but the rest of the message is always the same.







update-manager






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 at 11:16









Soren A

3,2601824




3,2601824










asked Mar 29 at 23:05









user3565884

162




162








  • 1




    you can try sudo chmod -R 777 /var/cache/app-info/xapian/default you should be able to do the update then ... This isn't a fix ... this may revert back and give you the same error next time you update ... but I ran into this on Ubuntu for Windows for a while and it was the only fix we could come up with ... it has since fixed itself .. well .. it doesn't happen anymore. So this should get you by at least .. but .. don't take it as a fix .. more of a work around.. I was never able to discover the actual cause :(
    – John Orion
    Mar 29 at 23:55












  • Thanks for your help, but I didn't do the trick. I'll keep trying..
    – user3565884
    Mar 30 at 0:33










  • hmm ok .. maybe it wasn't the same thing I was running into .. sorry it was my only idea on this issue :(
    – John Orion
    Mar 30 at 0:35














  • 1




    you can try sudo chmod -R 777 /var/cache/app-info/xapian/default you should be able to do the update then ... This isn't a fix ... this may revert back and give you the same error next time you update ... but I ran into this on Ubuntu for Windows for a while and it was the only fix we could come up with ... it has since fixed itself .. well .. it doesn't happen anymore. So this should get you by at least .. but .. don't take it as a fix .. more of a work around.. I was never able to discover the actual cause :(
    – John Orion
    Mar 29 at 23:55












  • Thanks for your help, but I didn't do the trick. I'll keep trying..
    – user3565884
    Mar 30 at 0:33










  • hmm ok .. maybe it wasn't the same thing I was running into .. sorry it was my only idea on this issue :(
    – John Orion
    Mar 30 at 0:35








1




1




you can try sudo chmod -R 777 /var/cache/app-info/xapian/default you should be able to do the update then ... This isn't a fix ... this may revert back and give you the same error next time you update ... but I ran into this on Ubuntu for Windows for a while and it was the only fix we could come up with ... it has since fixed itself .. well .. it doesn't happen anymore. So this should get you by at least .. but .. don't take it as a fix .. more of a work around.. I was never able to discover the actual cause :(
– John Orion
Mar 29 at 23:55






you can try sudo chmod -R 777 /var/cache/app-info/xapian/default you should be able to do the update then ... This isn't a fix ... this may revert back and give you the same error next time you update ... but I ran into this on Ubuntu for Windows for a while and it was the only fix we could come up with ... it has since fixed itself .. well .. it doesn't happen anymore. So this should get you by at least .. but .. don't take it as a fix .. more of a work around.. I was never able to discover the actual cause :(
– John Orion
Mar 29 at 23:55














Thanks for your help, but I didn't do the trick. I'll keep trying..
– user3565884
Mar 30 at 0:33




Thanks for your help, but I didn't do the trick. I'll keep trying..
– user3565884
Mar 30 at 0:33












hmm ok .. maybe it wasn't the same thing I was running into .. sorry it was my only idea on this issue :(
– John Orion
Mar 30 at 0:35




hmm ok .. maybe it wasn't the same thing I was running into .. sorry it was my only idea on this issue :(
– John Orion
Mar 30 at 0:35










2 Answers
2






active

oldest

votes

















up vote
4
down vote













There is a wrong Symbolic Link (confirmed bug).



These commands solved the problem, in my case.



sudo mv /var/cache/app-info/xapian/default /var/cache/app-info/xapian/default_old
sudo mv /var/cache/app-info/xapian/default_old /var/cache/app-info/xapian/default


I think giving full permissions to a software database folder is not a good idea.



You may need to do this every time that you add a new repository.






share|improve this answer























  • Hi Carlos, can you link to the bug report in your answer?
    – Emily
    May 3 at 15:06


















up vote
0
down vote













A. My case is solved with the command below :



$ sudo touch /var/cache/app-info/xapian/default


B. The error is as follows :



$ sudo apt update
...
** (appstreamcli:12092): CRITICAL **: Error while moving old database out of the way.
AppStream cache update failed.
...
All packages are up to date.


C. Environment :



Windows 10 Pro, 64 Bit + Ubuntu

$ uname -an
Linux Arthur 4.4.0-17134-Microsoft #345-Microsoft Wed Sep 19 17:47:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux





share|improve this answer








New contributor




ArthurKing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















    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',
    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/3.0/"u003ecc by-sa 3.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%2f1020404%2ferror-while-moving-old-database-out-of-the-way%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    4
    down vote













    There is a wrong Symbolic Link (confirmed bug).



    These commands solved the problem, in my case.



    sudo mv /var/cache/app-info/xapian/default /var/cache/app-info/xapian/default_old
    sudo mv /var/cache/app-info/xapian/default_old /var/cache/app-info/xapian/default


    I think giving full permissions to a software database folder is not a good idea.



    You may need to do this every time that you add a new repository.






    share|improve this answer























    • Hi Carlos, can you link to the bug report in your answer?
      – Emily
      May 3 at 15:06















    up vote
    4
    down vote













    There is a wrong Symbolic Link (confirmed bug).



    These commands solved the problem, in my case.



    sudo mv /var/cache/app-info/xapian/default /var/cache/app-info/xapian/default_old
    sudo mv /var/cache/app-info/xapian/default_old /var/cache/app-info/xapian/default


    I think giving full permissions to a software database folder is not a good idea.



    You may need to do this every time that you add a new repository.






    share|improve this answer























    • Hi Carlos, can you link to the bug report in your answer?
      – Emily
      May 3 at 15:06













    up vote
    4
    down vote










    up vote
    4
    down vote









    There is a wrong Symbolic Link (confirmed bug).



    These commands solved the problem, in my case.



    sudo mv /var/cache/app-info/xapian/default /var/cache/app-info/xapian/default_old
    sudo mv /var/cache/app-info/xapian/default_old /var/cache/app-info/xapian/default


    I think giving full permissions to a software database folder is not a good idea.



    You may need to do this every time that you add a new repository.






    share|improve this answer














    There is a wrong Symbolic Link (confirmed bug).



    These commands solved the problem, in my case.



    sudo mv /var/cache/app-info/xapian/default /var/cache/app-info/xapian/default_old
    sudo mv /var/cache/app-info/xapian/default_old /var/cache/app-info/xapian/default


    I think giving full permissions to a software database folder is not a good idea.



    You may need to do this every time that you add a new repository.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited May 3 at 13:54

























    answered May 3 at 13:19









    Carlos Molina

    413




    413












    • Hi Carlos, can you link to the bug report in your answer?
      – Emily
      May 3 at 15:06


















    • Hi Carlos, can you link to the bug report in your answer?
      – Emily
      May 3 at 15:06
















    Hi Carlos, can you link to the bug report in your answer?
    – Emily
    May 3 at 15:06




    Hi Carlos, can you link to the bug report in your answer?
    – Emily
    May 3 at 15:06












    up vote
    0
    down vote













    A. My case is solved with the command below :



    $ sudo touch /var/cache/app-info/xapian/default


    B. The error is as follows :



    $ sudo apt update
    ...
    ** (appstreamcli:12092): CRITICAL **: Error while moving old database out of the way.
    AppStream cache update failed.
    ...
    All packages are up to date.


    C. Environment :



    Windows 10 Pro, 64 Bit + Ubuntu

    $ uname -an
    Linux Arthur 4.4.0-17134-Microsoft #345-Microsoft Wed Sep 19 17:47:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux





    share|improve this answer








    New contributor




    ArthurKing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      0
      down vote













      A. My case is solved with the command below :



      $ sudo touch /var/cache/app-info/xapian/default


      B. The error is as follows :



      $ sudo apt update
      ...
      ** (appstreamcli:12092): CRITICAL **: Error while moving old database out of the way.
      AppStream cache update failed.
      ...
      All packages are up to date.


      C. Environment :



      Windows 10 Pro, 64 Bit + Ubuntu

      $ uname -an
      Linux Arthur 4.4.0-17134-Microsoft #345-Microsoft Wed Sep 19 17:47:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux





      share|improve this answer








      New contributor




      ArthurKing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















        up vote
        0
        down vote










        up vote
        0
        down vote









        A. My case is solved with the command below :



        $ sudo touch /var/cache/app-info/xapian/default


        B. The error is as follows :



        $ sudo apt update
        ...
        ** (appstreamcli:12092): CRITICAL **: Error while moving old database out of the way.
        AppStream cache update failed.
        ...
        All packages are up to date.


        C. Environment :



        Windows 10 Pro, 64 Bit + Ubuntu

        $ uname -an
        Linux Arthur 4.4.0-17134-Microsoft #345-Microsoft Wed Sep 19 17:47:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux





        share|improve this answer








        New contributor




        ArthurKing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        A. My case is solved with the command below :



        $ sudo touch /var/cache/app-info/xapian/default


        B. The error is as follows :



        $ sudo apt update
        ...
        ** (appstreamcli:12092): CRITICAL **: Error while moving old database out of the way.
        AppStream cache update failed.
        ...
        All packages are up to date.


        C. Environment :



        Windows 10 Pro, 64 Bit + Ubuntu

        $ uname -an
        Linux Arthur 4.4.0-17134-Microsoft #345-Microsoft Wed Sep 19 17:47:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux






        share|improve this answer








        New contributor




        ArthurKing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        ArthurKing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered Nov 23 at 10:42









        ArthurKing

        1




        1




        New contributor




        ArthurKing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        ArthurKing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        ArthurKing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1020404%2ferror-while-moving-old-database-out-of-the-way%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

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido