How to recover dpkg from corrupted downloads?












7















I just upgraded to the 10.10 RC earlier and had a few problems with graphic drivers (x didnt start) But i have remedied that now.
When i run 'sudo apt-get install -f' i get this:



will@UbuntuBox:/mnt/slax$ sudo apt-get install -f
[sudo] password for will:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libmono-wcf3.0-cil openoffice.org-calc openoffice.org-core
The following NEW packages will be installed:
libmono-wcf3.0-cil
The following packages will be upgraded:
openoffice.org-calc openoffice.org-core
2 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
16 not fully installed or removed.
Need to get 0B/32.5MB of archives.
After this operation, 1,929kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 201565 files and directories currently installed.)
Preparing to replace openoffice.org-calc 1:3.2.1-6ubuntu2~10.04.1 (using .../openoffice.org-calc_1%3a3.2.1-7ubuntu1_i386.deb) ...
Unpacking replacement openoffice.org-calc ...
xz: (stdin): Compressed data is corrupt
dpkg-deb: subprocess <decompress> returned error exit status 1
dpkg: error processing /var/cache/apt/archives/openoffice.org-calc_1%3a3.2.1-7ubuntu1_i386.deb (--unpack):
short read on buffer copy for backend dpkg-deb during `./usr/lib/openoffice/basis3.2/program/libscfiltli.so'
dpkg: regarding .../openoffice.org-core_1%3a3.2.1-7ubuntu1_i386.deb containing openoffice.org-core:
openoffice.org-core conflicts with openoffice.org-calc (<< 1:3.2.1-7ubuntu1)
openoffice.org-calc (version 1:3.2.1-6ubuntu2~10.04.1) is present and installed.
dpkg: error processing /var/cache/apt/archives/openoffice.org-core_1%3a3.2.1-7ubuntu1_i386.deb (--unpack):
conflicting packages - not installing openoffice.org-core
Unpacking libmono-wcf3.0-cil (from .../libmono-wcf3.0-cil_2.6.7-3ubuntu1_all.deb) ...
dpkg-deb (subprocess): data: internal gzip read error: '<fd:0>: data error'
dpkg-deb: subprocess <decompress> returned error exit status 2
dpkg: error processing /var/cache/apt/archives/libmono-wcf3.0-cil_2.6.7-3ubuntu1_all.deb (--unpack):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/openoffice.org-calc_1%3a3.2.1-7ubuntu1_i386.deb
/var/cache/apt/archives/openoffice.org-core_1%3a3.2.1-7ubuntu1_i386.deb
/var/cache/apt/archives/libmono-wcf3.0-cil_2.6.7-3ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Any idea how i can get the broken packages fixed?
Cheers,
Will










share|improve this question





























    7















    I just upgraded to the 10.10 RC earlier and had a few problems with graphic drivers (x didnt start) But i have remedied that now.
    When i run 'sudo apt-get install -f' i get this:



    will@UbuntuBox:/mnt/slax$ sudo apt-get install -f
    [sudo] password for will:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies... Done
    The following extra packages will be installed:
    libmono-wcf3.0-cil openoffice.org-calc openoffice.org-core
    The following NEW packages will be installed:
    libmono-wcf3.0-cil
    The following packages will be upgraded:
    openoffice.org-calc openoffice.org-core
    2 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    16 not fully installed or removed.
    Need to get 0B/32.5MB of archives.
    After this operation, 1,929kB disk space will be freed.
    Do you want to continue [Y/n]? Y
    (Reading database ... 201565 files and directories currently installed.)
    Preparing to replace openoffice.org-calc 1:3.2.1-6ubuntu2~10.04.1 (using .../openoffice.org-calc_1%3a3.2.1-7ubuntu1_i386.deb) ...
    Unpacking replacement openoffice.org-calc ...
    xz: (stdin): Compressed data is corrupt
    dpkg-deb: subprocess <decompress> returned error exit status 1
    dpkg: error processing /var/cache/apt/archives/openoffice.org-calc_1%3a3.2.1-7ubuntu1_i386.deb (--unpack):
    short read on buffer copy for backend dpkg-deb during `./usr/lib/openoffice/basis3.2/program/libscfiltli.so'
    dpkg: regarding .../openoffice.org-core_1%3a3.2.1-7ubuntu1_i386.deb containing openoffice.org-core:
    openoffice.org-core conflicts with openoffice.org-calc (<< 1:3.2.1-7ubuntu1)
    openoffice.org-calc (version 1:3.2.1-6ubuntu2~10.04.1) is present and installed.
    dpkg: error processing /var/cache/apt/archives/openoffice.org-core_1%3a3.2.1-7ubuntu1_i386.deb (--unpack):
    conflicting packages - not installing openoffice.org-core
    Unpacking libmono-wcf3.0-cil (from .../libmono-wcf3.0-cil_2.6.7-3ubuntu1_all.deb) ...
    dpkg-deb (subprocess): data: internal gzip read error: '<fd:0>: data error'
    dpkg-deb: subprocess <decompress> returned error exit status 2
    dpkg: error processing /var/cache/apt/archives/libmono-wcf3.0-cil_2.6.7-3ubuntu1_all.deb (--unpack):
    subprocess dpkg-deb --fsys-tarfile returned error exit status 2
    Errors were encountered while processing:
    /var/cache/apt/archives/openoffice.org-calc_1%3a3.2.1-7ubuntu1_i386.deb
    /var/cache/apt/archives/openoffice.org-core_1%3a3.2.1-7ubuntu1_i386.deb
    /var/cache/apt/archives/libmono-wcf3.0-cil_2.6.7-3ubuntu1_all.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    Any idea how i can get the broken packages fixed?
    Cheers,
    Will










    share|improve this question



























      7












      7








      7


      1






      I just upgraded to the 10.10 RC earlier and had a few problems with graphic drivers (x didnt start) But i have remedied that now.
      When i run 'sudo apt-get install -f' i get this:



      will@UbuntuBox:/mnt/slax$ sudo apt-get install -f
      [sudo] password for will:
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Correcting dependencies... Done
      The following extra packages will be installed:
      libmono-wcf3.0-cil openoffice.org-calc openoffice.org-core
      The following NEW packages will be installed:
      libmono-wcf3.0-cil
      The following packages will be upgraded:
      openoffice.org-calc openoffice.org-core
      2 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
      16 not fully installed or removed.
      Need to get 0B/32.5MB of archives.
      After this operation, 1,929kB disk space will be freed.
      Do you want to continue [Y/n]? Y
      (Reading database ... 201565 files and directories currently installed.)
      Preparing to replace openoffice.org-calc 1:3.2.1-6ubuntu2~10.04.1 (using .../openoffice.org-calc_1%3a3.2.1-7ubuntu1_i386.deb) ...
      Unpacking replacement openoffice.org-calc ...
      xz: (stdin): Compressed data is corrupt
      dpkg-deb: subprocess <decompress> returned error exit status 1
      dpkg: error processing /var/cache/apt/archives/openoffice.org-calc_1%3a3.2.1-7ubuntu1_i386.deb (--unpack):
      short read on buffer copy for backend dpkg-deb during `./usr/lib/openoffice/basis3.2/program/libscfiltli.so'
      dpkg: regarding .../openoffice.org-core_1%3a3.2.1-7ubuntu1_i386.deb containing openoffice.org-core:
      openoffice.org-core conflicts with openoffice.org-calc (<< 1:3.2.1-7ubuntu1)
      openoffice.org-calc (version 1:3.2.1-6ubuntu2~10.04.1) is present and installed.
      dpkg: error processing /var/cache/apt/archives/openoffice.org-core_1%3a3.2.1-7ubuntu1_i386.deb (--unpack):
      conflicting packages - not installing openoffice.org-core
      Unpacking libmono-wcf3.0-cil (from .../libmono-wcf3.0-cil_2.6.7-3ubuntu1_all.deb) ...
      dpkg-deb (subprocess): data: internal gzip read error: '<fd:0>: data error'
      dpkg-deb: subprocess <decompress> returned error exit status 2
      dpkg: error processing /var/cache/apt/archives/libmono-wcf3.0-cil_2.6.7-3ubuntu1_all.deb (--unpack):
      subprocess dpkg-deb --fsys-tarfile returned error exit status 2
      Errors were encountered while processing:
      /var/cache/apt/archives/openoffice.org-calc_1%3a3.2.1-7ubuntu1_i386.deb
      /var/cache/apt/archives/openoffice.org-core_1%3a3.2.1-7ubuntu1_i386.deb
      /var/cache/apt/archives/libmono-wcf3.0-cil_2.6.7-3ubuntu1_all.deb
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      Any idea how i can get the broken packages fixed?
      Cheers,
      Will










      share|improve this question
















      I just upgraded to the 10.10 RC earlier and had a few problems with graphic drivers (x didnt start) But i have remedied that now.
      When i run 'sudo apt-get install -f' i get this:



      will@UbuntuBox:/mnt/slax$ sudo apt-get install -f
      [sudo] password for will:
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Correcting dependencies... Done
      The following extra packages will be installed:
      libmono-wcf3.0-cil openoffice.org-calc openoffice.org-core
      The following NEW packages will be installed:
      libmono-wcf3.0-cil
      The following packages will be upgraded:
      openoffice.org-calc openoffice.org-core
      2 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
      16 not fully installed or removed.
      Need to get 0B/32.5MB of archives.
      After this operation, 1,929kB disk space will be freed.
      Do you want to continue [Y/n]? Y
      (Reading database ... 201565 files and directories currently installed.)
      Preparing to replace openoffice.org-calc 1:3.2.1-6ubuntu2~10.04.1 (using .../openoffice.org-calc_1%3a3.2.1-7ubuntu1_i386.deb) ...
      Unpacking replacement openoffice.org-calc ...
      xz: (stdin): Compressed data is corrupt
      dpkg-deb: subprocess <decompress> returned error exit status 1
      dpkg: error processing /var/cache/apt/archives/openoffice.org-calc_1%3a3.2.1-7ubuntu1_i386.deb (--unpack):
      short read on buffer copy for backend dpkg-deb during `./usr/lib/openoffice/basis3.2/program/libscfiltli.so'
      dpkg: regarding .../openoffice.org-core_1%3a3.2.1-7ubuntu1_i386.deb containing openoffice.org-core:
      openoffice.org-core conflicts with openoffice.org-calc (<< 1:3.2.1-7ubuntu1)
      openoffice.org-calc (version 1:3.2.1-6ubuntu2~10.04.1) is present and installed.
      dpkg: error processing /var/cache/apt/archives/openoffice.org-core_1%3a3.2.1-7ubuntu1_i386.deb (--unpack):
      conflicting packages - not installing openoffice.org-core
      Unpacking libmono-wcf3.0-cil (from .../libmono-wcf3.0-cil_2.6.7-3ubuntu1_all.deb) ...
      dpkg-deb (subprocess): data: internal gzip read error: '<fd:0>: data error'
      dpkg-deb: subprocess <decompress> returned error exit status 2
      dpkg: error processing /var/cache/apt/archives/libmono-wcf3.0-cil_2.6.7-3ubuntu1_all.deb (--unpack):
      subprocess dpkg-deb --fsys-tarfile returned error exit status 2
      Errors were encountered while processing:
      /var/cache/apt/archives/openoffice.org-calc_1%3a3.2.1-7ubuntu1_i386.deb
      /var/cache/apt/archives/openoffice.org-core_1%3a3.2.1-7ubuntu1_i386.deb
      /var/cache/apt/archives/libmono-wcf3.0-cil_2.6.7-3ubuntu1_all.deb
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      Any idea how i can get the broken packages fixed?
      Cheers,
      Will







      package-management dpkg






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 24 '11 at 15:10









      Jorge Castro

      36.9k106422617




      36.9k106422617










      asked Oct 3 '10 at 19:03









      WillWill

      1,23332127




      1,23332127






















          1 Answer
          1






          active

          oldest

          votes


















          7














          This line is a clue:



          xz: (stdin): Compressed data is corrupt


          Perhaps something happened to the .deb during transfer. Execute a sudo apt-get clean and then try again to force it to redownload the debs.



          There are similar reports in Launchpad on these kind of errors for OpenOffice lately. This is likely a bug and should be reported as such.






          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%2f5133%2fhow-to-recover-dpkg-from-corrupted-downloads%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









            7














            This line is a clue:



            xz: (stdin): Compressed data is corrupt


            Perhaps something happened to the .deb during transfer. Execute a sudo apt-get clean and then try again to force it to redownload the debs.



            There are similar reports in Launchpad on these kind of errors for OpenOffice lately. This is likely a bug and should be reported as such.






            share|improve this answer






























              7














              This line is a clue:



              xz: (stdin): Compressed data is corrupt


              Perhaps something happened to the .deb during transfer. Execute a sudo apt-get clean and then try again to force it to redownload the debs.



              There are similar reports in Launchpad on these kind of errors for OpenOffice lately. This is likely a bug and should be reported as such.






              share|improve this answer




























                7












                7








                7







                This line is a clue:



                xz: (stdin): Compressed data is corrupt


                Perhaps something happened to the .deb during transfer. Execute a sudo apt-get clean and then try again to force it to redownload the debs.



                There are similar reports in Launchpad on these kind of errors for OpenOffice lately. This is likely a bug and should be reported as such.






                share|improve this answer















                This line is a clue:



                xz: (stdin): Compressed data is corrupt


                Perhaps something happened to the .deb during transfer. Execute a sudo apt-get clean and then try again to force it to redownload the debs.



                There are similar reports in Launchpad on these kind of errors for OpenOffice lately. This is likely a bug and should be reported as such.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Oct 3 '10 at 19:32

























                answered Oct 3 '10 at 19:24









                Jorge CastroJorge Castro

                36.9k106422617




                36.9k106422617






























                    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%2f5133%2fhow-to-recover-dpkg-from-corrupted-downloads%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 send String Array data to Server using php in android

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                    Is anime1.com a legal site for watching anime?