Getting Error When Uninstalling Google Chrome





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







3















I can't update or uninstall Google Chrome. I am getting this error:



Setting up google-chrome-stable (36.0.1985.125-1) ...
xdg-icon-resource: size argument must be numeric
Try 'xdg-icon-resource --help' for more information.
dpkg: error processing package google-chrome-stable (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
google-chrome-stable
E: Sub-process /usr/bin/dpkg returned an error code (1)


I remember changing and replacing default icons of Google Chrome before. How do I solve this?










share|improve this question























  • This is a problem with Google's packaging, so you should probably report it to them.

    – dobey
    Aug 2 '14 at 20:28











  • I really don't think so. I guess something messed up when I replaced chrome's default icons. I guess that's the reason why it can't be updated/uninstalled. Do you know any way to force uninstall chrome? @dobey

    – Jye Ramirez
    Aug 2 '14 at 20:34











  • Try sudo apt-get install -f

    – Tim
    Aug 2 '14 at 20:35






  • 3





    @Tim: If there's an error in the packaging scripts, it can NOT be resolved through apt, Synaptic, or the Software Center. It will have to be through dpkg.

    – saiarcot895
    Aug 2 '14 at 21:38






  • 2





    The postinst script of the package is passing the wrong arguments to a program it requires. That is a problem in the package.

    – dobey
    Aug 2 '14 at 21:40


















3















I can't update or uninstall Google Chrome. I am getting this error:



Setting up google-chrome-stable (36.0.1985.125-1) ...
xdg-icon-resource: size argument must be numeric
Try 'xdg-icon-resource --help' for more information.
dpkg: error processing package google-chrome-stable (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
google-chrome-stable
E: Sub-process /usr/bin/dpkg returned an error code (1)


I remember changing and replacing default icons of Google Chrome before. How do I solve this?










share|improve this question























  • This is a problem with Google's packaging, so you should probably report it to them.

    – dobey
    Aug 2 '14 at 20:28











  • I really don't think so. I guess something messed up when I replaced chrome's default icons. I guess that's the reason why it can't be updated/uninstalled. Do you know any way to force uninstall chrome? @dobey

    – Jye Ramirez
    Aug 2 '14 at 20:34











  • Try sudo apt-get install -f

    – Tim
    Aug 2 '14 at 20:35






  • 3





    @Tim: If there's an error in the packaging scripts, it can NOT be resolved through apt, Synaptic, or the Software Center. It will have to be through dpkg.

    – saiarcot895
    Aug 2 '14 at 21:38






  • 2





    The postinst script of the package is passing the wrong arguments to a program it requires. That is a problem in the package.

    – dobey
    Aug 2 '14 at 21:40














3












3








3








I can't update or uninstall Google Chrome. I am getting this error:



Setting up google-chrome-stable (36.0.1985.125-1) ...
xdg-icon-resource: size argument must be numeric
Try 'xdg-icon-resource --help' for more information.
dpkg: error processing package google-chrome-stable (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
google-chrome-stable
E: Sub-process /usr/bin/dpkg returned an error code (1)


I remember changing and replacing default icons of Google Chrome before. How do I solve this?










share|improve this question














I can't update or uninstall Google Chrome. I am getting this error:



Setting up google-chrome-stable (36.0.1985.125-1) ...
xdg-icon-resource: size argument must be numeric
Try 'xdg-icon-resource --help' for more information.
dpkg: error processing package google-chrome-stable (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
google-chrome-stable
E: Sub-process /usr/bin/dpkg returned an error code (1)


I remember changing and replacing default icons of Google Chrome before. How do I solve this?







uninstall google-chrome






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 2 '14 at 20:26









Jye RamirezJye Ramirez

60110




60110













  • This is a problem with Google's packaging, so you should probably report it to them.

    – dobey
    Aug 2 '14 at 20:28











  • I really don't think so. I guess something messed up when I replaced chrome's default icons. I guess that's the reason why it can't be updated/uninstalled. Do you know any way to force uninstall chrome? @dobey

    – Jye Ramirez
    Aug 2 '14 at 20:34











  • Try sudo apt-get install -f

    – Tim
    Aug 2 '14 at 20:35






  • 3





    @Tim: If there's an error in the packaging scripts, it can NOT be resolved through apt, Synaptic, or the Software Center. It will have to be through dpkg.

    – saiarcot895
    Aug 2 '14 at 21:38






  • 2





    The postinst script of the package is passing the wrong arguments to a program it requires. That is a problem in the package.

    – dobey
    Aug 2 '14 at 21:40



















  • This is a problem with Google's packaging, so you should probably report it to them.

    – dobey
    Aug 2 '14 at 20:28











  • I really don't think so. I guess something messed up when I replaced chrome's default icons. I guess that's the reason why it can't be updated/uninstalled. Do you know any way to force uninstall chrome? @dobey

    – Jye Ramirez
    Aug 2 '14 at 20:34











  • Try sudo apt-get install -f

    – Tim
    Aug 2 '14 at 20:35






  • 3





    @Tim: If there's an error in the packaging scripts, it can NOT be resolved through apt, Synaptic, or the Software Center. It will have to be through dpkg.

    – saiarcot895
    Aug 2 '14 at 21:38






  • 2





    The postinst script of the package is passing the wrong arguments to a program it requires. That is a problem in the package.

    – dobey
    Aug 2 '14 at 21:40

















This is a problem with Google's packaging, so you should probably report it to them.

– dobey
Aug 2 '14 at 20:28





This is a problem with Google's packaging, so you should probably report it to them.

– dobey
Aug 2 '14 at 20:28













I really don't think so. I guess something messed up when I replaced chrome's default icons. I guess that's the reason why it can't be updated/uninstalled. Do you know any way to force uninstall chrome? @dobey

– Jye Ramirez
Aug 2 '14 at 20:34





I really don't think so. I guess something messed up when I replaced chrome's default icons. I guess that's the reason why it can't be updated/uninstalled. Do you know any way to force uninstall chrome? @dobey

– Jye Ramirez
Aug 2 '14 at 20:34













Try sudo apt-get install -f

– Tim
Aug 2 '14 at 20:35





Try sudo apt-get install -f

– Tim
Aug 2 '14 at 20:35




3




3





@Tim: If there's an error in the packaging scripts, it can NOT be resolved through apt, Synaptic, or the Software Center. It will have to be through dpkg.

– saiarcot895
Aug 2 '14 at 21:38





@Tim: If there's an error in the packaging scripts, it can NOT be resolved through apt, Synaptic, or the Software Center. It will have to be through dpkg.

– saiarcot895
Aug 2 '14 at 21:38




2




2





The postinst script of the package is passing the wrong arguments to a program it requires. That is a problem in the package.

– dobey
Aug 2 '14 at 21:40





The postinst script of the package is passing the wrong arguments to a program it requires. That is a problem in the package.

– dobey
Aug 2 '14 at 21:40










3 Answers
3






active

oldest

votes


















5














Based on the error and the mention of post-installation script, I would say that even the installation didn't complete successfully. You'll have to run sudo dpkg --purge --force-all google-chrome-stable to remove it.



Edit: Run gksudo gedit /var/lib/dpkg/info/google-chrome-stable.postinst, and add a # in front of any lines that call xdg-icon-resource. Save it, and try removing the package again.






share|improve this answer


























  • Removing google-chrome-stable (36.0.1985.125-1) ... xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. dpkg: error processing package google-chrome-stable (--purge): subprocess installed pre-removal script returned error exit status 1 xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: google-chrome-stable

    – Jye Ramirez
    Aug 2 '14 at 21:48











  • Thanks for the help but it still returns with error @Saiarcot895

    – Jye Ramirez
    Aug 2 '14 at 21:49











  • Apparently, even dpkg has to run the scripts and make sure there are no errors. You might have to modify the scripts.

    – saiarcot895
    Aug 2 '14 at 21:52











  • Sorry I'm not quite sure how to do that.. @saiarcot895

    – Jye Ramirez
    Aug 2 '14 at 21:56











  • Edited. I'm assuming you use/are familiar with gedit. If you would rather use a command-line tool, replace the command as appropriate.

    – saiarcot895
    Aug 2 '14 at 21:58



















1














The response here helped me,



It's very similar to @saiarcot895, except I also had to modify /var/lib/dpkg/info/google-chrome-stable.prerm in the same way.






share|improve this answer































    1














    What worked for me was installing the xdg-utils package, removing chrome, and removing the xdg.utils package once it all finished:




    1. yum install xdg-utils

    2. yum remove google-chrome

    3. yum remove xdg-utils






    share|improve this answer
























    • Yes excellent answer, thank you.

      – java-addict301
      yesterday












    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/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%2f506022%2fgetting-error-when-uninstalling-google-chrome%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5














    Based on the error and the mention of post-installation script, I would say that even the installation didn't complete successfully. You'll have to run sudo dpkg --purge --force-all google-chrome-stable to remove it.



    Edit: Run gksudo gedit /var/lib/dpkg/info/google-chrome-stable.postinst, and add a # in front of any lines that call xdg-icon-resource. Save it, and try removing the package again.






    share|improve this answer


























    • Removing google-chrome-stable (36.0.1985.125-1) ... xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. dpkg: error processing package google-chrome-stable (--purge): subprocess installed pre-removal script returned error exit status 1 xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: google-chrome-stable

      – Jye Ramirez
      Aug 2 '14 at 21:48











    • Thanks for the help but it still returns with error @Saiarcot895

      – Jye Ramirez
      Aug 2 '14 at 21:49











    • Apparently, even dpkg has to run the scripts and make sure there are no errors. You might have to modify the scripts.

      – saiarcot895
      Aug 2 '14 at 21:52











    • Sorry I'm not quite sure how to do that.. @saiarcot895

      – Jye Ramirez
      Aug 2 '14 at 21:56











    • Edited. I'm assuming you use/are familiar with gedit. If you would rather use a command-line tool, replace the command as appropriate.

      – saiarcot895
      Aug 2 '14 at 21:58
















    5














    Based on the error and the mention of post-installation script, I would say that even the installation didn't complete successfully. You'll have to run sudo dpkg --purge --force-all google-chrome-stable to remove it.



    Edit: Run gksudo gedit /var/lib/dpkg/info/google-chrome-stable.postinst, and add a # in front of any lines that call xdg-icon-resource. Save it, and try removing the package again.






    share|improve this answer


























    • Removing google-chrome-stable (36.0.1985.125-1) ... xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. dpkg: error processing package google-chrome-stable (--purge): subprocess installed pre-removal script returned error exit status 1 xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: google-chrome-stable

      – Jye Ramirez
      Aug 2 '14 at 21:48











    • Thanks for the help but it still returns with error @Saiarcot895

      – Jye Ramirez
      Aug 2 '14 at 21:49











    • Apparently, even dpkg has to run the scripts and make sure there are no errors. You might have to modify the scripts.

      – saiarcot895
      Aug 2 '14 at 21:52











    • Sorry I'm not quite sure how to do that.. @saiarcot895

      – Jye Ramirez
      Aug 2 '14 at 21:56











    • Edited. I'm assuming you use/are familiar with gedit. If you would rather use a command-line tool, replace the command as appropriate.

      – saiarcot895
      Aug 2 '14 at 21:58














    5












    5








    5







    Based on the error and the mention of post-installation script, I would say that even the installation didn't complete successfully. You'll have to run sudo dpkg --purge --force-all google-chrome-stable to remove it.



    Edit: Run gksudo gedit /var/lib/dpkg/info/google-chrome-stable.postinst, and add a # in front of any lines that call xdg-icon-resource. Save it, and try removing the package again.






    share|improve this answer















    Based on the error and the mention of post-installation script, I would say that even the installation didn't complete successfully. You'll have to run sudo dpkg --purge --force-all google-chrome-stable to remove it.



    Edit: Run gksudo gedit /var/lib/dpkg/info/google-chrome-stable.postinst, and add a # in front of any lines that call xdg-icon-resource. Save it, and try removing the package again.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Aug 2 '14 at 21:57

























    answered Aug 2 '14 at 21:41









    saiarcot895saiarcot895

    9,50422333




    9,50422333













    • Removing google-chrome-stable (36.0.1985.125-1) ... xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. dpkg: error processing package google-chrome-stable (--purge): subprocess installed pre-removal script returned error exit status 1 xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: google-chrome-stable

      – Jye Ramirez
      Aug 2 '14 at 21:48











    • Thanks for the help but it still returns with error @Saiarcot895

      – Jye Ramirez
      Aug 2 '14 at 21:49











    • Apparently, even dpkg has to run the scripts and make sure there are no errors. You might have to modify the scripts.

      – saiarcot895
      Aug 2 '14 at 21:52











    • Sorry I'm not quite sure how to do that.. @saiarcot895

      – Jye Ramirez
      Aug 2 '14 at 21:56











    • Edited. I'm assuming you use/are familiar with gedit. If you would rather use a command-line tool, replace the command as appropriate.

      – saiarcot895
      Aug 2 '14 at 21:58



















    • Removing google-chrome-stable (36.0.1985.125-1) ... xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. dpkg: error processing package google-chrome-stable (--purge): subprocess installed pre-removal script returned error exit status 1 xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: google-chrome-stable

      – Jye Ramirez
      Aug 2 '14 at 21:48











    • Thanks for the help but it still returns with error @Saiarcot895

      – Jye Ramirez
      Aug 2 '14 at 21:49











    • Apparently, even dpkg has to run the scripts and make sure there are no errors. You might have to modify the scripts.

      – saiarcot895
      Aug 2 '14 at 21:52











    • Sorry I'm not quite sure how to do that.. @saiarcot895

      – Jye Ramirez
      Aug 2 '14 at 21:56











    • Edited. I'm assuming you use/are familiar with gedit. If you would rather use a command-line tool, replace the command as appropriate.

      – saiarcot895
      Aug 2 '14 at 21:58

















    Removing google-chrome-stable (36.0.1985.125-1) ... xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. dpkg: error processing package google-chrome-stable (--purge): subprocess installed pre-removal script returned error exit status 1 xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: google-chrome-stable

    – Jye Ramirez
    Aug 2 '14 at 21:48





    Removing google-chrome-stable (36.0.1985.125-1) ... xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. dpkg: error processing package google-chrome-stable (--purge): subprocess installed pre-removal script returned error exit status 1 xdg-icon-resource: size argument must be numeric Try 'xdg-icon-resource --help' for more information. dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: google-chrome-stable

    – Jye Ramirez
    Aug 2 '14 at 21:48













    Thanks for the help but it still returns with error @Saiarcot895

    – Jye Ramirez
    Aug 2 '14 at 21:49





    Thanks for the help but it still returns with error @Saiarcot895

    – Jye Ramirez
    Aug 2 '14 at 21:49













    Apparently, even dpkg has to run the scripts and make sure there are no errors. You might have to modify the scripts.

    – saiarcot895
    Aug 2 '14 at 21:52





    Apparently, even dpkg has to run the scripts and make sure there are no errors. You might have to modify the scripts.

    – saiarcot895
    Aug 2 '14 at 21:52













    Sorry I'm not quite sure how to do that.. @saiarcot895

    – Jye Ramirez
    Aug 2 '14 at 21:56





    Sorry I'm not quite sure how to do that.. @saiarcot895

    – Jye Ramirez
    Aug 2 '14 at 21:56













    Edited. I'm assuming you use/are familiar with gedit. If you would rather use a command-line tool, replace the command as appropriate.

    – saiarcot895
    Aug 2 '14 at 21:58





    Edited. I'm assuming you use/are familiar with gedit. If you would rather use a command-line tool, replace the command as appropriate.

    – saiarcot895
    Aug 2 '14 at 21:58













    1














    The response here helped me,



    It's very similar to @saiarcot895, except I also had to modify /var/lib/dpkg/info/google-chrome-stable.prerm in the same way.






    share|improve this answer




























      1














      The response here helped me,



      It's very similar to @saiarcot895, except I also had to modify /var/lib/dpkg/info/google-chrome-stable.prerm in the same way.






      share|improve this answer


























        1












        1








        1







        The response here helped me,



        It's very similar to @saiarcot895, except I also had to modify /var/lib/dpkg/info/google-chrome-stable.prerm in the same way.






        share|improve this answer













        The response here helped me,



        It's very similar to @saiarcot895, except I also had to modify /var/lib/dpkg/info/google-chrome-stable.prerm in the same way.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 1 '15 at 19:47









        MattMatt

        1315




        1315























            1














            What worked for me was installing the xdg-utils package, removing chrome, and removing the xdg.utils package once it all finished:




            1. yum install xdg-utils

            2. yum remove google-chrome

            3. yum remove xdg-utils






            share|improve this answer
























            • Yes excellent answer, thank you.

              – java-addict301
              yesterday
















            1














            What worked for me was installing the xdg-utils package, removing chrome, and removing the xdg.utils package once it all finished:




            1. yum install xdg-utils

            2. yum remove google-chrome

            3. yum remove xdg-utils






            share|improve this answer
























            • Yes excellent answer, thank you.

              – java-addict301
              yesterday














            1












            1








            1







            What worked for me was installing the xdg-utils package, removing chrome, and removing the xdg.utils package once it all finished:




            1. yum install xdg-utils

            2. yum remove google-chrome

            3. yum remove xdg-utils






            share|improve this answer













            What worked for me was installing the xdg-utils package, removing chrome, and removing the xdg.utils package once it all finished:




            1. yum install xdg-utils

            2. yum remove google-chrome

            3. yum remove xdg-utils







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 4 at 17:15









            Luis Alberto BarandiaranLuis Alberto Barandiaran

            113




            113













            • Yes excellent answer, thank you.

              – java-addict301
              yesterday



















            • Yes excellent answer, thank you.

              – java-addict301
              yesterday

















            Yes excellent answer, thank you.

            – java-addict301
            yesterday





            Yes excellent answer, thank you.

            – java-addict301
            yesterday


















            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%2f506022%2fgetting-error-when-uninstalling-google-chrome%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

            數位音樂下載

            When can things happen in Etherscan, such as the picture below?

            格利澤436b