Unexpected end of file or stream

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











up vote
1
down vote

favorite












Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 301729 files and directories currently installed.)
Preparing to unpack .../libpython2.7_2.7.6-8ubuntu0.2_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.6-8ubuntu0.2) over (2.7.6-8) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive/var/cache/apt/archives/libpython2.7_2.7.6-8ubuntu0.2_amd64.deb (--unpack): cannot copy extracted data for './usr/lib/x86_64-linux- gnu/libpython2.7.so.1.0' to '/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
/var/cache/apt/archives/libpython2.7_2.7.6-8ubuntu0.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


The above is the result of apt-get upgrade -f dpkg. I appreciate any help you can give on this issue!



Edit: Here are a few more details. I am using Linux Mint 17.2 Cinnamon 640bit. Many programs seem to be crashing and Synaptic says that python2.7 and libpython2.7 are broken, but is unable to fix them. Every attempt to fix them has resulted in E: Sub-process /usr/bin/dpkg returned an error code (1).



I ran apt-get update and then apt-get upgrade -f dpkg and got the result above.










share|improve this question























  • What is your distro version? Have you run apt-get update before upgrade?
    – Kira
    Oct 30 '15 at 17:48










  • Why are you doing this?
    – terdon♦
    Oct 30 '15 at 18:51










  • do some apt-get clean first。
    – Arthur2e5
    Oct 30 '15 at 20:23














up vote
1
down vote

favorite












Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 301729 files and directories currently installed.)
Preparing to unpack .../libpython2.7_2.7.6-8ubuntu0.2_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.6-8ubuntu0.2) over (2.7.6-8) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive/var/cache/apt/archives/libpython2.7_2.7.6-8ubuntu0.2_amd64.deb (--unpack): cannot copy extracted data for './usr/lib/x86_64-linux- gnu/libpython2.7.so.1.0' to '/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
/var/cache/apt/archives/libpython2.7_2.7.6-8ubuntu0.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


The above is the result of apt-get upgrade -f dpkg. I appreciate any help you can give on this issue!



Edit: Here are a few more details. I am using Linux Mint 17.2 Cinnamon 640bit. Many programs seem to be crashing and Synaptic says that python2.7 and libpython2.7 are broken, but is unable to fix them. Every attempt to fix them has resulted in E: Sub-process /usr/bin/dpkg returned an error code (1).



I ran apt-get update and then apt-get upgrade -f dpkg and got the result above.










share|improve this question























  • What is your distro version? Have you run apt-get update before upgrade?
    – Kira
    Oct 30 '15 at 17:48










  • Why are you doing this?
    – terdon♦
    Oct 30 '15 at 18:51










  • do some apt-get clean first。
    – Arthur2e5
    Oct 30 '15 at 20:23












up vote
1
down vote

favorite









up vote
1
down vote

favorite











Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 301729 files and directories currently installed.)
Preparing to unpack .../libpython2.7_2.7.6-8ubuntu0.2_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.6-8ubuntu0.2) over (2.7.6-8) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive/var/cache/apt/archives/libpython2.7_2.7.6-8ubuntu0.2_amd64.deb (--unpack): cannot copy extracted data for './usr/lib/x86_64-linux- gnu/libpython2.7.so.1.0' to '/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
/var/cache/apt/archives/libpython2.7_2.7.6-8ubuntu0.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


The above is the result of apt-get upgrade -f dpkg. I appreciate any help you can give on this issue!



Edit: Here are a few more details. I am using Linux Mint 17.2 Cinnamon 640bit. Many programs seem to be crashing and Synaptic says that python2.7 and libpython2.7 are broken, but is unable to fix them. Every attempt to fix them has resulted in E: Sub-process /usr/bin/dpkg returned an error code (1).



I ran apt-get update and then apt-get upgrade -f dpkg and got the result above.










share|improve this question















Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 301729 files and directories currently installed.)
Preparing to unpack .../libpython2.7_2.7.6-8ubuntu0.2_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.6-8ubuntu0.2) over (2.7.6-8) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive/var/cache/apt/archives/libpython2.7_2.7.6-8ubuntu0.2_amd64.deb (--unpack): cannot copy extracted data for './usr/lib/x86_64-linux- gnu/libpython2.7.so.1.0' to '/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
/var/cache/apt/archives/libpython2.7_2.7.6-8ubuntu0.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


The above is the result of apt-get upgrade -f dpkg. I appreciate any help you can give on this issue!



Edit: Here are a few more details. I am using Linux Mint 17.2 Cinnamon 640bit. Many programs seem to be crashing and Synaptic says that python2.7 and libpython2.7 are broken, but is unable to fix them. Every attempt to fix them has resulted in E: Sub-process /usr/bin/dpkg returned an error code (1).



I ran apt-get update and then apt-get upgrade -f dpkg and got the result above.







apt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 1 '15 at 0:19









Gilles

518k12410321563




518k12410321563










asked Oct 30 '15 at 17:41









C.Ng

63




63











  • What is your distro version? Have you run apt-get update before upgrade?
    – Kira
    Oct 30 '15 at 17:48










  • Why are you doing this?
    – terdon♦
    Oct 30 '15 at 18:51










  • do some apt-get clean first。
    – Arthur2e5
    Oct 30 '15 at 20:23
















  • What is your distro version? Have you run apt-get update before upgrade?
    – Kira
    Oct 30 '15 at 17:48










  • Why are you doing this?
    – terdon♦
    Oct 30 '15 at 18:51










  • do some apt-get clean first。
    – Arthur2e5
    Oct 30 '15 at 20:23















What is your distro version? Have you run apt-get update before upgrade?
– Kira
Oct 30 '15 at 17:48




What is your distro version? Have you run apt-get update before upgrade?
– Kira
Oct 30 '15 at 17:48












Why are you doing this?
– terdon♦
Oct 30 '15 at 18:51




Why are you doing this?
– terdon♦
Oct 30 '15 at 18:51












do some apt-get clean first。
– Arthur2e5
Oct 30 '15 at 20:23




do some apt-get clean first。
– Arthur2e5
Oct 30 '15 at 20:23










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Running sudo apt-get clean on the command line worked for me.



From a related question on ask ubuntu:




sudo apt-get clean clears out the local repository of retrieved package files.




So it seems that some downloaded package file was faulty. Deleting it and applying updates (downloading the file again) fixed it.



[I would have upvoted the comment above, but lack reputation]






share|improve this answer








New contributor




Niels is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f239822%2funexpected-end-of-file-or-stream%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













    Running sudo apt-get clean on the command line worked for me.



    From a related question on ask ubuntu:




    sudo apt-get clean clears out the local repository of retrieved package files.




    So it seems that some downloaded package file was faulty. Deleting it and applying updates (downloading the file again) fixed it.



    [I would have upvoted the comment above, but lack reputation]






    share|improve this answer








    New contributor




    Niels is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote













      Running sudo apt-get clean on the command line worked for me.



      From a related question on ask ubuntu:




      sudo apt-get clean clears out the local repository of retrieved package files.




      So it seems that some downloaded package file was faulty. Deleting it and applying updates (downloading the file again) fixed it.



      [I would have upvoted the comment above, but lack reputation]






      share|improve this answer








      New contributor




      Niels is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



















        up vote
        0
        down vote










        up vote
        0
        down vote









        Running sudo apt-get clean on the command line worked for me.



        From a related question on ask ubuntu:




        sudo apt-get clean clears out the local repository of retrieved package files.




        So it seems that some downloaded package file was faulty. Deleting it and applying updates (downloading the file again) fixed it.



        [I would have upvoted the comment above, but lack reputation]






        share|improve this answer








        New contributor




        Niels is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        Running sudo apt-get clean on the command line worked for me.



        From a related question on ask ubuntu:




        sudo apt-get clean clears out the local repository of retrieved package files.




        So it seems that some downloaded package file was faulty. Deleting it and applying updates (downloading the file again) fixed it.



        [I would have upvoted the comment above, but lack reputation]







        share|improve this answer








        New contributor




        Niels is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Niels is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 32 mins ago









        Niels

        1




        1




        New contributor




        Niels is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Niels is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Niels is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f239822%2funexpected-end-of-file-or-stream%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)