Package operation failed E: Sub-process /usr/bin/dpkg returned an error code (1)












1















When I run software update I get



  package operation failed


The updates downloaded ok.



The error window disappeared so fast, I could not write down errors.



I ran sudo apt-get dist-upgrade



  Errors were encountered while processing:
/var/cache/apt/archives/apt_1.6.6ubuntu0.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


While following the answer below I got:



Unpacking apt (1.6.6ubuntu0.1) over (1.6.6) ... 
dpkg: error processing archive /var/cache/apt/archives/apt_1.6.6ubuntu0.1_amd64.deb (--unpack):
unable to make backup link of './lib/systemd/system/apt-daily.timer'
before installing new version: Operation not permitted dpkg-deb:
error: paste subprocess was killed by signal (Broken pipe)









share|improve this question





























    1















    When I run software update I get



      package operation failed


    The updates downloaded ok.



    The error window disappeared so fast, I could not write down errors.



    I ran sudo apt-get dist-upgrade



      Errors were encountered while processing:
    /var/cache/apt/archives/apt_1.6.6ubuntu0.1_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    While following the answer below I got:



    Unpacking apt (1.6.6ubuntu0.1) over (1.6.6) ... 
    dpkg: error processing archive /var/cache/apt/archives/apt_1.6.6ubuntu0.1_amd64.deb (--unpack):
    unable to make backup link of './lib/systemd/system/apt-daily.timer'
    before installing new version: Operation not permitted dpkg-deb:
    error: paste subprocess was killed by signal (Broken pipe)









    share|improve this question



























      1












      1








      1








      When I run software update I get



        package operation failed


      The updates downloaded ok.



      The error window disappeared so fast, I could not write down errors.



      I ran sudo apt-get dist-upgrade



        Errors were encountered while processing:
      /var/cache/apt/archives/apt_1.6.6ubuntu0.1_amd64.deb
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      While following the answer below I got:



      Unpacking apt (1.6.6ubuntu0.1) over (1.6.6) ... 
      dpkg: error processing archive /var/cache/apt/archives/apt_1.6.6ubuntu0.1_amd64.deb (--unpack):
      unable to make backup link of './lib/systemd/system/apt-daily.timer'
      before installing new version: Operation not permitted dpkg-deb:
      error: paste subprocess was killed by signal (Broken pipe)









      share|improve this question
















      When I run software update I get



        package operation failed


      The updates downloaded ok.



      The error window disappeared so fast, I could not write down errors.



      I ran sudo apt-get dist-upgrade



        Errors were encountered while processing:
      /var/cache/apt/archives/apt_1.6.6ubuntu0.1_amd64.deb
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      While following the answer below I got:



      Unpacking apt (1.6.6ubuntu0.1) over (1.6.6) ... 
      dpkg: error processing archive /var/cache/apt/archives/apt_1.6.6ubuntu0.1_amd64.deb (--unpack):
      unable to make backup link of './lib/systemd/system/apt-daily.timer'
      before installing new version: Operation not permitted dpkg-deb:
      error: paste subprocess was killed by signal (Broken pipe)






      18.04 ubuntu-mate






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 29 at 20:32









      N0rbert

      23.3k649110




      23.3k649110










      asked Jan 29 at 19:11









      fixit7fixit7

      561321




      561321






















          1 Answer
          1






          active

          oldest

          votes


















          1














          Months ago I added the immutable attribute to apt-daily.timer.



          For some reason, software updater decided it did not like that.



          After removing the attribute, software updater now works. ?






          share|improve this answer
























          • Next time consider to disable these timers or mask them. File-system hacks are dangerous (as you have seen) :)

            – N0rbert
            Jan 30 at 8:56











          • I don't see what I did as dangerous per se. I only did it because sometimes my customized apt.daily.timer is overwritten. It is just part of the learning process. I have a script that copies that version on each boot up. I keep a file of most changes I make just in case problems develop. :-)

            – fixit7
            Jan 30 at 14:44













          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%2f1113910%2fpackage-operation-failed-e-sub-process-usr-bin-dpkg-returned-an-error-code-1%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














          Months ago I added the immutable attribute to apt-daily.timer.



          For some reason, software updater decided it did not like that.



          After removing the attribute, software updater now works. ?






          share|improve this answer
























          • Next time consider to disable these timers or mask them. File-system hacks are dangerous (as you have seen) :)

            – N0rbert
            Jan 30 at 8:56











          • I don't see what I did as dangerous per se. I only did it because sometimes my customized apt.daily.timer is overwritten. It is just part of the learning process. I have a script that copies that version on each boot up. I keep a file of most changes I make just in case problems develop. :-)

            – fixit7
            Jan 30 at 14:44


















          1














          Months ago I added the immutable attribute to apt-daily.timer.



          For some reason, software updater decided it did not like that.



          After removing the attribute, software updater now works. ?






          share|improve this answer
























          • Next time consider to disable these timers or mask them. File-system hacks are dangerous (as you have seen) :)

            – N0rbert
            Jan 30 at 8:56











          • I don't see what I did as dangerous per se. I only did it because sometimes my customized apt.daily.timer is overwritten. It is just part of the learning process. I have a script that copies that version on each boot up. I keep a file of most changes I make just in case problems develop. :-)

            – fixit7
            Jan 30 at 14:44
















          1












          1








          1







          Months ago I added the immutable attribute to apt-daily.timer.



          For some reason, software updater decided it did not like that.



          After removing the attribute, software updater now works. ?






          share|improve this answer













          Months ago I added the immutable attribute to apt-daily.timer.



          For some reason, software updater decided it did not like that.



          After removing the attribute, software updater now works. ?







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 29 at 23:25









          fixit7fixit7

          561321




          561321













          • Next time consider to disable these timers or mask them. File-system hacks are dangerous (as you have seen) :)

            – N0rbert
            Jan 30 at 8:56











          • I don't see what I did as dangerous per se. I only did it because sometimes my customized apt.daily.timer is overwritten. It is just part of the learning process. I have a script that copies that version on each boot up. I keep a file of most changes I make just in case problems develop. :-)

            – fixit7
            Jan 30 at 14:44





















          • Next time consider to disable these timers or mask them. File-system hacks are dangerous (as you have seen) :)

            – N0rbert
            Jan 30 at 8:56











          • I don't see what I did as dangerous per se. I only did it because sometimes my customized apt.daily.timer is overwritten. It is just part of the learning process. I have a script that copies that version on each boot up. I keep a file of most changes I make just in case problems develop. :-)

            – fixit7
            Jan 30 at 14:44



















          Next time consider to disable these timers or mask them. File-system hacks are dangerous (as you have seen) :)

          – N0rbert
          Jan 30 at 8:56





          Next time consider to disable these timers or mask them. File-system hacks are dangerous (as you have seen) :)

          – N0rbert
          Jan 30 at 8:56













          I don't see what I did as dangerous per se. I only did it because sometimes my customized apt.daily.timer is overwritten. It is just part of the learning process. I have a script that copies that version on each boot up. I keep a file of most changes I make just in case problems develop. :-)

          – fixit7
          Jan 30 at 14:44







          I don't see what I did as dangerous per se. I only did it because sometimes my customized apt.daily.timer is overwritten. It is just part of the learning process. I have a script that copies that version on each boot up. I keep a file of most changes I make just in case problems develop. :-)

          – fixit7
          Jan 30 at 14:44




















          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%2f1113910%2fpackage-operation-failed-e-sub-process-usr-bin-dpkg-returned-an-error-code-1%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

          How to make a Squid Proxy server?

          第一次世界大戦

          Touch on Surface Book