Error when installing mailutils on Ubuntu 16.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












When we try to install, remove, update mailutils we always have same error with status 'half-installed'. Can help me?
The output of:



sudo apt install mailutils


is:



Reading package lists... Done 
Building dependency tree
Reading state information... Done
mailutils is already the newest version (1:2.99.99-1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 136 not upgraded. 1 not fully installed or removed.
Need to get 0 B/90.4 kB of archives. After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package patch (--configure): package patch is not ready for configuration cannot configure (current status 'half-installed')
Errors were encountered while processing: patch
E: Sub-process /usr/bin/dpkg returned an error code (1)






share|improve this question






















  • first, you need to run 'sudo apt-get update && sudo apt-get upgrade'
    – Philippe Delteil
    Apr 23 at 15:33










  • OP said the problem occurs when they install, remove, or update
    – NerdOfLinux
    Apr 23 at 15:41










  • Thank you! We used this commands: sudo apt clean sudo apt autoclean sudo apt autoremove And next command fix our problem sudo apt-get update && sudo apt-get upgrade
    – Ð¡ÐµÑ€Ð³Ñ–й Анатолійович
    Apr 23 at 17:20















up vote
1
down vote

favorite












When we try to install, remove, update mailutils we always have same error with status 'half-installed'. Can help me?
The output of:



sudo apt install mailutils


is:



Reading package lists... Done 
Building dependency tree
Reading state information... Done
mailutils is already the newest version (1:2.99.99-1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 136 not upgraded. 1 not fully installed or removed.
Need to get 0 B/90.4 kB of archives. After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package patch (--configure): package patch is not ready for configuration cannot configure (current status 'half-installed')
Errors were encountered while processing: patch
E: Sub-process /usr/bin/dpkg returned an error code (1)






share|improve this question






















  • first, you need to run 'sudo apt-get update && sudo apt-get upgrade'
    – Philippe Delteil
    Apr 23 at 15:33










  • OP said the problem occurs when they install, remove, or update
    – NerdOfLinux
    Apr 23 at 15:41










  • Thank you! We used this commands: sudo apt clean sudo apt autoclean sudo apt autoremove And next command fix our problem sudo apt-get update && sudo apt-get upgrade
    – Ð¡ÐµÑ€Ð³Ñ–й Анатолійович
    Apr 23 at 17:20













up vote
1
down vote

favorite









up vote
1
down vote

favorite











When we try to install, remove, update mailutils we always have same error with status 'half-installed'. Can help me?
The output of:



sudo apt install mailutils


is:



Reading package lists... Done 
Building dependency tree
Reading state information... Done
mailutils is already the newest version (1:2.99.99-1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 136 not upgraded. 1 not fully installed or removed.
Need to get 0 B/90.4 kB of archives. After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package patch (--configure): package patch is not ready for configuration cannot configure (current status 'half-installed')
Errors were encountered while processing: patch
E: Sub-process /usr/bin/dpkg returned an error code (1)






share|improve this question














When we try to install, remove, update mailutils we always have same error with status 'half-installed'. Can help me?
The output of:



sudo apt install mailutils


is:



Reading package lists... Done 
Building dependency tree
Reading state information... Done
mailutils is already the newest version (1:2.99.99-1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 136 not upgraded. 1 not fully installed or removed.
Need to get 0 B/90.4 kB of archives. After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package patch (--configure): package patch is not ready for configuration cannot configure (current status 'half-installed')
Errors were encountered while processing: patch
E: Sub-process /usr/bin/dpkg returned an error code (1)








share|improve this question













share|improve this question




share|improve this question








edited Apr 23 at 16:13









NerdOfLinux

1,499830




1,499830










asked Apr 23 at 15:28









Сергій Анатолійович

82




82











  • first, you need to run 'sudo apt-get update && sudo apt-get upgrade'
    – Philippe Delteil
    Apr 23 at 15:33










  • OP said the problem occurs when they install, remove, or update
    – NerdOfLinux
    Apr 23 at 15:41










  • Thank you! We used this commands: sudo apt clean sudo apt autoclean sudo apt autoremove And next command fix our problem sudo apt-get update && sudo apt-get upgrade
    – Ð¡ÐµÑ€Ð³Ñ–й Анатолійович
    Apr 23 at 17:20

















  • first, you need to run 'sudo apt-get update && sudo apt-get upgrade'
    – Philippe Delteil
    Apr 23 at 15:33










  • OP said the problem occurs when they install, remove, or update
    – NerdOfLinux
    Apr 23 at 15:41










  • Thank you! We used this commands: sudo apt clean sudo apt autoclean sudo apt autoremove And next command fix our problem sudo apt-get update && sudo apt-get upgrade
    – Ð¡ÐµÑ€Ð³Ñ–й Анатолійович
    Apr 23 at 17:20
















first, you need to run 'sudo apt-get update && sudo apt-get upgrade'
– Philippe Delteil
Apr 23 at 15:33




first, you need to run 'sudo apt-get update && sudo apt-get upgrade'
– Philippe Delteil
Apr 23 at 15:33












OP said the problem occurs when they install, remove, or update
– NerdOfLinux
Apr 23 at 15:41




OP said the problem occurs when they install, remove, or update
– NerdOfLinux
Apr 23 at 15:41












Thank you! We used this commands: sudo apt clean sudo apt autoclean sudo apt autoremove And next command fix our problem sudo apt-get update && sudo apt-get upgrade
– Ð¡ÐµÑ€Ð³Ñ–й Анатолійович
Apr 23 at 17:20





Thank you! We used this commands: sudo apt clean sudo apt autoclean sudo apt autoremove And next command fix our problem sudo apt-get update && sudo apt-get upgrade
– Ð¡ÐµÑ€Ð³Ñ–й Анатолійович
Apr 23 at 17:20











1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










In this case, I would try the following to attempt a repair:

First, try using apt itself to repair the package.



sudo apt install -f


Then, try re-installing the package:



sudo apt install --reinstall mailutils


If this fails, the next step is to go one level below apt, and use dpkg:



sudo dpkg --configure -a


If all else fails, try removing with apt, and then re-installing:



sudo apt purge mailutils


and be sure to back up any configs you want to keep, just in case.



If even that doesn't work, try dpkg again:



sudo dpkg --remove mailutils


followed by apt:



sudo apt install mailutils


Should that not work, you may have a corrupted .deb file cached, or a broken dependency so run:



sudo apt clean
sudo apt autoclean
sudo apt autoremove


and then re-start all the steps.






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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f1027497%2ferror-when-installing-mailutils-on-ubuntu-16-04%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote



    accepted










    In this case, I would try the following to attempt a repair:

    First, try using apt itself to repair the package.



    sudo apt install -f


    Then, try re-installing the package:



    sudo apt install --reinstall mailutils


    If this fails, the next step is to go one level below apt, and use dpkg:



    sudo dpkg --configure -a


    If all else fails, try removing with apt, and then re-installing:



    sudo apt purge mailutils


    and be sure to back up any configs you want to keep, just in case.



    If even that doesn't work, try dpkg again:



    sudo dpkg --remove mailutils


    followed by apt:



    sudo apt install mailutils


    Should that not work, you may have a corrupted .deb file cached, or a broken dependency so run:



    sudo apt clean
    sudo apt autoclean
    sudo apt autoremove


    and then re-start all the steps.






    share|improve this answer
























      up vote
      0
      down vote



      accepted










      In this case, I would try the following to attempt a repair:

      First, try using apt itself to repair the package.



      sudo apt install -f


      Then, try re-installing the package:



      sudo apt install --reinstall mailutils


      If this fails, the next step is to go one level below apt, and use dpkg:



      sudo dpkg --configure -a


      If all else fails, try removing with apt, and then re-installing:



      sudo apt purge mailutils


      and be sure to back up any configs you want to keep, just in case.



      If even that doesn't work, try dpkg again:



      sudo dpkg --remove mailutils


      followed by apt:



      sudo apt install mailutils


      Should that not work, you may have a corrupted .deb file cached, or a broken dependency so run:



      sudo apt clean
      sudo apt autoclean
      sudo apt autoremove


      and then re-start all the steps.






      share|improve this answer






















        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        In this case, I would try the following to attempt a repair:

        First, try using apt itself to repair the package.



        sudo apt install -f


        Then, try re-installing the package:



        sudo apt install --reinstall mailutils


        If this fails, the next step is to go one level below apt, and use dpkg:



        sudo dpkg --configure -a


        If all else fails, try removing with apt, and then re-installing:



        sudo apt purge mailutils


        and be sure to back up any configs you want to keep, just in case.



        If even that doesn't work, try dpkg again:



        sudo dpkg --remove mailutils


        followed by apt:



        sudo apt install mailutils


        Should that not work, you may have a corrupted .deb file cached, or a broken dependency so run:



        sudo apt clean
        sudo apt autoclean
        sudo apt autoremove


        and then re-start all the steps.






        share|improve this answer












        In this case, I would try the following to attempt a repair:

        First, try using apt itself to repair the package.



        sudo apt install -f


        Then, try re-installing the package:



        sudo apt install --reinstall mailutils


        If this fails, the next step is to go one level below apt, and use dpkg:



        sudo dpkg --configure -a


        If all else fails, try removing with apt, and then re-installing:



        sudo apt purge mailutils


        and be sure to back up any configs you want to keep, just in case.



        If even that doesn't work, try dpkg again:



        sudo dpkg --remove mailutils


        followed by apt:



        sudo apt install mailutils


        Should that not work, you may have a corrupted .deb file cached, or a broken dependency so run:



        sudo apt clean
        sudo apt autoclean
        sudo apt autoremove


        and then re-start all the steps.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 23 at 15:36









        NerdOfLinux

        1,499830




        1,499830



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027497%2ferror-when-installing-mailutils-on-ubuntu-16-04%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491