CUPS error while installing packages using apt-get












3















I recently use the command sudo apt-get update in Ubuntu 14.04 and now when I want install packages, I get an error.



For example, when I use sudo apt-get install vagrant for installing Vagrant I get the following error:



invoke-rc.d: initscript cups, action "start" failed.
dpkg: error processing package cups-daemon (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up fontconfig (2.11.1-0ubuntu6) ...
Regenerating fonts cache... failed.
See /var/log/fontconfig.log for more information.
dpkg: error processing package fontconfig (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of cups-core-drivers:
cups-core-drivers depends on cups-daemon (>= 2.0.2-1ubuntu3); however:
Package cups-daemon is not configured yet.
dpkg: error processing package cups-core-drivers (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of cups:
cups depends on cups-core-drivers (>= 2.0.2-1ubuntu3); however:
Package cups-core-drivers is not configured yet.
cups depends on cups-daemon (>= 2.0.2-1ubuntu3); however:
Package cups-daemon is not configured yet.
dpkg: error processing package cups (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
util-linux
cups-browsed
cups-daemon
fontconfig
cups-core-drivers
cups
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have searched for details about this error, and one person suggested using sudo apt-get upgrade. I tried this, but it does not help.



How can I fix this problem?










share|improve this question

























  • Similar to my question here askubuntu.com/questions/687319/… but for different package . sudo nano /var/lib/dpkg/info/cups-daemon.postinst and change set -e to #set -e

    – user.dz
    May 28 '16 at 20:53






  • 1





    Could you add contents of /var/log/fontconfig.log.

    – user.dz
    Dec 13 '16 at 9:47











  • Take a look at this post here

    – George Udosen
    Dec 13 '16 at 21:34











  • Here it suggests re-installing cups, look at the bottom of the post

    – George Udosen
    Dec 13 '16 at 21:42
















3















I recently use the command sudo apt-get update in Ubuntu 14.04 and now when I want install packages, I get an error.



For example, when I use sudo apt-get install vagrant for installing Vagrant I get the following error:



invoke-rc.d: initscript cups, action "start" failed.
dpkg: error processing package cups-daemon (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up fontconfig (2.11.1-0ubuntu6) ...
Regenerating fonts cache... failed.
See /var/log/fontconfig.log for more information.
dpkg: error processing package fontconfig (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of cups-core-drivers:
cups-core-drivers depends on cups-daemon (>= 2.0.2-1ubuntu3); however:
Package cups-daemon is not configured yet.
dpkg: error processing package cups-core-drivers (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of cups:
cups depends on cups-core-drivers (>= 2.0.2-1ubuntu3); however:
Package cups-core-drivers is not configured yet.
cups depends on cups-daemon (>= 2.0.2-1ubuntu3); however:
Package cups-daemon is not configured yet.
dpkg: error processing package cups (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
util-linux
cups-browsed
cups-daemon
fontconfig
cups-core-drivers
cups
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have searched for details about this error, and one person suggested using sudo apt-get upgrade. I tried this, but it does not help.



How can I fix this problem?










share|improve this question

























  • Similar to my question here askubuntu.com/questions/687319/… but for different package . sudo nano /var/lib/dpkg/info/cups-daemon.postinst and change set -e to #set -e

    – user.dz
    May 28 '16 at 20:53






  • 1





    Could you add contents of /var/log/fontconfig.log.

    – user.dz
    Dec 13 '16 at 9:47











  • Take a look at this post here

    – George Udosen
    Dec 13 '16 at 21:34











  • Here it suggests re-installing cups, look at the bottom of the post

    – George Udosen
    Dec 13 '16 at 21:42














3












3








3








I recently use the command sudo apt-get update in Ubuntu 14.04 and now when I want install packages, I get an error.



For example, when I use sudo apt-get install vagrant for installing Vagrant I get the following error:



invoke-rc.d: initscript cups, action "start" failed.
dpkg: error processing package cups-daemon (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up fontconfig (2.11.1-0ubuntu6) ...
Regenerating fonts cache... failed.
See /var/log/fontconfig.log for more information.
dpkg: error processing package fontconfig (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of cups-core-drivers:
cups-core-drivers depends on cups-daemon (>= 2.0.2-1ubuntu3); however:
Package cups-daemon is not configured yet.
dpkg: error processing package cups-core-drivers (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of cups:
cups depends on cups-core-drivers (>= 2.0.2-1ubuntu3); however:
Package cups-core-drivers is not configured yet.
cups depends on cups-daemon (>= 2.0.2-1ubuntu3); however:
Package cups-daemon is not configured yet.
dpkg: error processing package cups (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
util-linux
cups-browsed
cups-daemon
fontconfig
cups-core-drivers
cups
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have searched for details about this error, and one person suggested using sudo apt-get upgrade. I tried this, but it does not help.



How can I fix this problem?










share|improve this question
















I recently use the command sudo apt-get update in Ubuntu 14.04 and now when I want install packages, I get an error.



For example, when I use sudo apt-get install vagrant for installing Vagrant I get the following error:



invoke-rc.d: initscript cups, action "start" failed.
dpkg: error processing package cups-daemon (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up fontconfig (2.11.1-0ubuntu6) ...
Regenerating fonts cache... failed.
See /var/log/fontconfig.log for more information.
dpkg: error processing package fontconfig (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of cups-core-drivers:
cups-core-drivers depends on cups-daemon (>= 2.0.2-1ubuntu3); however:
Package cups-daemon is not configured yet.
dpkg: error processing package cups-core-drivers (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of cups:
cups depends on cups-core-drivers (>= 2.0.2-1ubuntu3); however:
Package cups-core-drivers is not configured yet.
cups depends on cups-daemon (>= 2.0.2-1ubuntu3); however:
Package cups-daemon is not configured yet.
dpkg: error processing package cups (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
util-linux
cups-browsed
cups-daemon
fontconfig
cups-core-drivers
cups
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have searched for details about this error, and one person suggested using sudo apt-get upgrade. I tried this, but it does not help.



How can I fix this problem?







14.04 apt dpkg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 15 at 2:59









Kevin Bowen

14.7k155970




14.7k155970










asked May 28 '16 at 20:32









jody abbotjody abbot

1613




1613













  • Similar to my question here askubuntu.com/questions/687319/… but for different package . sudo nano /var/lib/dpkg/info/cups-daemon.postinst and change set -e to #set -e

    – user.dz
    May 28 '16 at 20:53






  • 1





    Could you add contents of /var/log/fontconfig.log.

    – user.dz
    Dec 13 '16 at 9:47











  • Take a look at this post here

    – George Udosen
    Dec 13 '16 at 21:34











  • Here it suggests re-installing cups, look at the bottom of the post

    – George Udosen
    Dec 13 '16 at 21:42



















  • Similar to my question here askubuntu.com/questions/687319/… but for different package . sudo nano /var/lib/dpkg/info/cups-daemon.postinst and change set -e to #set -e

    – user.dz
    May 28 '16 at 20:53






  • 1





    Could you add contents of /var/log/fontconfig.log.

    – user.dz
    Dec 13 '16 at 9:47











  • Take a look at this post here

    – George Udosen
    Dec 13 '16 at 21:34











  • Here it suggests re-installing cups, look at the bottom of the post

    – George Udosen
    Dec 13 '16 at 21:42

















Similar to my question here askubuntu.com/questions/687319/… but for different package . sudo nano /var/lib/dpkg/info/cups-daemon.postinst and change set -e to #set -e

– user.dz
May 28 '16 at 20:53





Similar to my question here askubuntu.com/questions/687319/… but for different package . sudo nano /var/lib/dpkg/info/cups-daemon.postinst and change set -e to #set -e

– user.dz
May 28 '16 at 20:53




1




1





Could you add contents of /var/log/fontconfig.log.

– user.dz
Dec 13 '16 at 9:47





Could you add contents of /var/log/fontconfig.log.

– user.dz
Dec 13 '16 at 9:47













Take a look at this post here

– George Udosen
Dec 13 '16 at 21:34





Take a look at this post here

– George Udosen
Dec 13 '16 at 21:34













Here it suggests re-installing cups, look at the bottom of the post

– George Udosen
Dec 13 '16 at 21:42





Here it suggests re-installing cups, look at the bottom of the post

– George Udosen
Dec 13 '16 at 21:42










1 Answer
1






active

oldest

votes


















0














It means you added a bad source.list and your libraries became corrupt due it. In my case I had added source list of 13.04 in ubuntu 14.04 to make somethings work based on the answer of some guy in askubuntu.com, that was the stupidest thing I did, and learnt never to add libraries of older versions.
But it did solve the problem and everything was working fine until I restarted the system.



When I got this error, I restarted by ubuntu and I was unable to start it again. Reboot failed. So I took a pendrive and upgraded the 14.04 to 16.04 and everything was fixed and I was able to install this cup thing too. That was the only thing I could do.



So use:



sudo apt-get upgrade





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/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%2f778816%2fcups-error-while-installing-packages-using-apt-get%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









    0














    It means you added a bad source.list and your libraries became corrupt due it. In my case I had added source list of 13.04 in ubuntu 14.04 to make somethings work based on the answer of some guy in askubuntu.com, that was the stupidest thing I did, and learnt never to add libraries of older versions.
    But it did solve the problem and everything was working fine until I restarted the system.



    When I got this error, I restarted by ubuntu and I was unable to start it again. Reboot failed. So I took a pendrive and upgraded the 14.04 to 16.04 and everything was fixed and I was able to install this cup thing too. That was the only thing I could do.



    So use:



    sudo apt-get upgrade





    share|improve this answer




























      0














      It means you added a bad source.list and your libraries became corrupt due it. In my case I had added source list of 13.04 in ubuntu 14.04 to make somethings work based on the answer of some guy in askubuntu.com, that was the stupidest thing I did, and learnt never to add libraries of older versions.
      But it did solve the problem and everything was working fine until I restarted the system.



      When I got this error, I restarted by ubuntu and I was unable to start it again. Reboot failed. So I took a pendrive and upgraded the 14.04 to 16.04 and everything was fixed and I was able to install this cup thing too. That was the only thing I could do.



      So use:



      sudo apt-get upgrade





      share|improve this answer


























        0












        0








        0







        It means you added a bad source.list and your libraries became corrupt due it. In my case I had added source list of 13.04 in ubuntu 14.04 to make somethings work based on the answer of some guy in askubuntu.com, that was the stupidest thing I did, and learnt never to add libraries of older versions.
        But it did solve the problem and everything was working fine until I restarted the system.



        When I got this error, I restarted by ubuntu and I was unable to start it again. Reboot failed. So I took a pendrive and upgraded the 14.04 to 16.04 and everything was fixed and I was able to install this cup thing too. That was the only thing I could do.



        So use:



        sudo apt-get upgrade





        share|improve this answer













        It means you added a bad source.list and your libraries became corrupt due it. In my case I had added source list of 13.04 in ubuntu 14.04 to make somethings work based on the answer of some guy in askubuntu.com, that was the stupidest thing I did, and learnt never to add libraries of older versions.
        But it did solve the problem and everything was working fine until I restarted the system.



        When I got this error, I restarted by ubuntu and I was unable to start it again. Reboot failed. So I took a pendrive and upgraded the 14.04 to 16.04 and everything was fixed and I was able to install this cup thing too. That was the only thing I could do.



        So use:



        sudo apt-get upgrade






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 20 '16 at 7:38









        user1735921user1735921

        87210




        87210






























            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%2f778816%2fcups-error-while-installing-packages-using-apt-get%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