Unexpected end of file or stream

Clash 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.
apt
add a comment |Â
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.
apt
What is your distro version? Have you runapt-get updatebeforeupgrade?
â 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
add a comment |Â
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.
apt
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
apt
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 runapt-get updatebeforeupgrade?
â 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
add a comment |Â
What is your distro version? Have you runapt-get updatebeforeupgrade?
â 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
add a comment |Â
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 cleanclears 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]
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.
add a comment |Â
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 cleanclears 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]
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.
add a comment |Â
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 cleanclears 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]
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.
add a comment |Â
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 cleanclears 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]
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 cleanclears 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]
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.
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.
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What is your distro version? Have you run
apt-get updatebeforeupgrade?â 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