apt-get upgrade error for Python packages in Ubuntu 16.04
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
6
down vote
favorite
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libpython3.6 : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-5~16.04.york0 is installed
libpython3.6-dev : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-5~16.04.york0 is installed
libpython3.6-stdlib : Depends: libpython3.6-minimal (= 3.6.5-5~16.04.york0) but 3.6.5-5~16.04.york1 is installed
python3.6 : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-5~16.04.york0 is installed
E: Unmet dependencies. Try using -f.
I had installed using PPA JonathanF in Ubuntu 16.04, and it was working fine until I encountered this issue today.
TI tried and got the below error:
$ sudo apt-get upgrade -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
Calculating upgrade... Done
The following packages will be upgraded:
libpython3.6-stdlib
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
Need to get 0 B/1,989 kB of archives.
After this operation, 1,393 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 231399 files and directories currently installed.)
Preparing to unpack .../libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb ...
Unpacking libpython3.6-stdlib:amd64 (3.6.5-5~16.04.york1) over (3.6.5-5~16.04.york0) ...
dpkg: error processing archive /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/python3.6/lib2to3/refactor.py', which is also in package python3-lib2to3 3.6.5-3~16.04.york0.2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt package-management dependencies
add a comment |Â
up vote
6
down vote
favorite
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libpython3.6 : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-5~16.04.york0 is installed
libpython3.6-dev : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-5~16.04.york0 is installed
libpython3.6-stdlib : Depends: libpython3.6-minimal (= 3.6.5-5~16.04.york0) but 3.6.5-5~16.04.york1 is installed
python3.6 : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-5~16.04.york0 is installed
E: Unmet dependencies. Try using -f.
I had installed using PPA JonathanF in Ubuntu 16.04, and it was working fine until I encountered this issue today.
TI tried and got the below error:
$ sudo apt-get upgrade -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
Calculating upgrade... Done
The following packages will be upgraded:
libpython3.6-stdlib
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
Need to get 0 B/1,989 kB of archives.
After this operation, 1,393 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 231399 files and directories currently installed.)
Preparing to unpack .../libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb ...
Unpacking libpython3.6-stdlib:amd64 (3.6.5-5~16.04.york1) over (3.6.5-5~16.04.york0) ...
dpkg: error processing archive /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/python3.6/lib2to3/refactor.py', which is also in package python3-lib2to3 3.6.5-3~16.04.york0.2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt package-management dependencies
2
"You might want to run 'apt-get -f install' to correct these." -> Is that command successful, and what does it output?
â dsstorefile1
May 17 at 20:44
Could you please edit your question to include the output ofapt-cache policy libpython3.6-stdlib python3-lib2to3
? (Ideally can you please also remove your redundant comments to my answer to unclutter it?) Thanks.
â David Foerster
May 19 at 1:01
add a comment |Â
up vote
6
down vote
favorite
up vote
6
down vote
favorite
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libpython3.6 : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-5~16.04.york0 is installed
libpython3.6-dev : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-5~16.04.york0 is installed
libpython3.6-stdlib : Depends: libpython3.6-minimal (= 3.6.5-5~16.04.york0) but 3.6.5-5~16.04.york1 is installed
python3.6 : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-5~16.04.york0 is installed
E: Unmet dependencies. Try using -f.
I had installed using PPA JonathanF in Ubuntu 16.04, and it was working fine until I encountered this issue today.
TI tried and got the below error:
$ sudo apt-get upgrade -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
Calculating upgrade... Done
The following packages will be upgraded:
libpython3.6-stdlib
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
Need to get 0 B/1,989 kB of archives.
After this operation, 1,393 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 231399 files and directories currently installed.)
Preparing to unpack .../libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb ...
Unpacking libpython3.6-stdlib:amd64 (3.6.5-5~16.04.york1) over (3.6.5-5~16.04.york0) ...
dpkg: error processing archive /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/python3.6/lib2to3/refactor.py', which is also in package python3-lib2to3 3.6.5-3~16.04.york0.2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt package-management dependencies
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libpython3.6 : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-5~16.04.york0 is installed
libpython3.6-dev : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-5~16.04.york0 is installed
libpython3.6-stdlib : Depends: libpython3.6-minimal (= 3.6.5-5~16.04.york0) but 3.6.5-5~16.04.york1 is installed
python3.6 : Depends: libpython3.6-stdlib (= 3.6.5-5~16.04.york1) but 3.6.5-5~16.04.york0 is installed
E: Unmet dependencies. Try using -f.
I had installed using PPA JonathanF in Ubuntu 16.04, and it was working fine until I encountered this issue today.
TI tried and got the below error:
$ sudo apt-get upgrade -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
Calculating upgrade... Done
The following packages will be upgraded:
libpython3.6-stdlib
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
Need to get 0 B/1,989 kB of archives.
After this operation, 1,393 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 231399 files and directories currently installed.)
Preparing to unpack .../libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb ...
Unpacking libpython3.6-stdlib:amd64 (3.6.5-5~16.04.york1) over (3.6.5-5~16.04.york0) ...
dpkg: error processing archive /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/python3.6/lib2to3/refactor.py', which is also in package python3-lib2to3 3.6.5-3~16.04.york0.2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt package-management dependencies
edited May 18 at 11:51
![](https://i.stack.imgur.com/zqElV.png?s=32&g=1)
![](https://i.stack.imgur.com/zqElV.png?s=32&g=1)
karel
49.7k11105127
49.7k11105127
asked May 17 at 18:47
user9807993
313
313
2
"You might want to run 'apt-get -f install' to correct these." -> Is that command successful, and what does it output?
â dsstorefile1
May 17 at 20:44
Could you please edit your question to include the output ofapt-cache policy libpython3.6-stdlib python3-lib2to3
? (Ideally can you please also remove your redundant comments to my answer to unclutter it?) Thanks.
â David Foerster
May 19 at 1:01
add a comment |Â
2
"You might want to run 'apt-get -f install' to correct these." -> Is that command successful, and what does it output?
â dsstorefile1
May 17 at 20:44
Could you please edit your question to include the output ofapt-cache policy libpython3.6-stdlib python3-lib2to3
? (Ideally can you please also remove your redundant comments to my answer to unclutter it?) Thanks.
â David Foerster
May 19 at 1:01
2
2
"You might want to run 'apt-get -f install' to correct these." -> Is that command successful, and what does it output?
â dsstorefile1
May 17 at 20:44
"You might want to run 'apt-get -f install' to correct these." -> Is that command successful, and what does it output?
â dsstorefile1
May 17 at 20:44
Could you please edit your question to include the output of
apt-cache policy libpython3.6-stdlib python3-lib2to3
? (Ideally can you please also remove your redundant comments to my answer to unclutter it?) Thanks.â David Foerster
May 19 at 1:01
Could you please edit your question to include the output of
apt-cache policy libpython3.6-stdlib python3-lib2to3
? (Ideally can you please also remove your redundant comments to my answer to unclutter it?) Thanks.â David Foerster
May 19 at 1:01
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
14
down vote
This answer worked for me =)
sudo dpkg --install --force all /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb
From: https://stackoverflow.com/a/50408787/1503549
NB: Remember to perform the following afterwards:
sudo apt install -f
Replace "apt" with "apt-get"/"aptitude", or whatever apt-derivative you're using.
saved my day. thanks :)
â shrish
May 21 at 10:37
You're welcome =)
â x10an14
May 23 at 15:26
add a comment |Â
up vote
1
down vote
Looks like your packages are partially out of date. Updating the package list and then upgrading installed packages with available upgrades should fix the broken dependencies:
sudo apt-get update
sudo apt-get upgrade -f
If not, could you please edit your question to include the complete, verbatim output of the above commands? Thanks.
As youâÂÂve never accepted an answer before: if this answers your question, donâÂÂt forget to click the grey â under the number at the left of this text to accept it, which means âÂÂyes, this answer is validâÂÂ!
â David Foerster
May 18 at 0:24
Tried doing that get the below error:
â user9807993
May 18 at 5:36
The following packages will be upgraded: libpython3.6-stdlib python3-gdbm 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. Need to get 16.1 kB/2,005 kB of archives. After this operation, 1,415 kB of additional disk space will be used. Do you want to continue? [Y/n] Y 89% [Working] Get:1 ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 python3-gdbm amd64 3.6.5-3~16.04.york4 [16.1 kB] Fetched 16.1 kB in 0s (30.3 kB/s) (Reading database ... 231398 files and directories currently installed.)
â user9807993
May 18 at 5:42
Preparing to unpack .../libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb ... Unpacking libpython3.6-stdlib:amd64 (3.6.5-5~16.04.york1) over (3.6.5-5~16.04.york0) ... dpkg: error processing archive /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb (--unpack): trying to overwrite '/usr/lib/python3.6/lib2to3/refactor.py', which is also in package python3-lib2to3 3.6.5-3~16.04.york0.2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
â user9807993
May 18 at 5:42
Preparing to unpack .../python3-gdbm_3.6.5-3~16.04.york4_amd64.deb ... Unpacking python3-gdbm:amd64 (3.6.5-3~16.04.york4) over (3.6.5-3~16.04.york0.2) ... Errors were encountered while processing: /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
â user9807993
May 18 at 5:43
add a comment |Â
up vote
0
down vote
You might have python 3.6 being installed from multiple places which is causing the issue (http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu for example).
If this is the case, you need to comment or remove it from /etc/apt/sources, do an apt update, then try apt-get -f install again.
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
14
down vote
This answer worked for me =)
sudo dpkg --install --force all /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb
From: https://stackoverflow.com/a/50408787/1503549
NB: Remember to perform the following afterwards:
sudo apt install -f
Replace "apt" with "apt-get"/"aptitude", or whatever apt-derivative you're using.
saved my day. thanks :)
â shrish
May 21 at 10:37
You're welcome =)
â x10an14
May 23 at 15:26
add a comment |Â
up vote
14
down vote
This answer worked for me =)
sudo dpkg --install --force all /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb
From: https://stackoverflow.com/a/50408787/1503549
NB: Remember to perform the following afterwards:
sudo apt install -f
Replace "apt" with "apt-get"/"aptitude", or whatever apt-derivative you're using.
saved my day. thanks :)
â shrish
May 21 at 10:37
You're welcome =)
â x10an14
May 23 at 15:26
add a comment |Â
up vote
14
down vote
up vote
14
down vote
This answer worked for me =)
sudo dpkg --install --force all /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb
From: https://stackoverflow.com/a/50408787/1503549
NB: Remember to perform the following afterwards:
sudo apt install -f
Replace "apt" with "apt-get"/"aptitude", or whatever apt-derivative you're using.
This answer worked for me =)
sudo dpkg --install --force all /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb
From: https://stackoverflow.com/a/50408787/1503549
NB: Remember to perform the following afterwards:
sudo apt install -f
Replace "apt" with "apt-get"/"aptitude", or whatever apt-derivative you're using.
answered May 20 at 17:12
x10an14
1413
1413
saved my day. thanks :)
â shrish
May 21 at 10:37
You're welcome =)
â x10an14
May 23 at 15:26
add a comment |Â
saved my day. thanks :)
â shrish
May 21 at 10:37
You're welcome =)
â x10an14
May 23 at 15:26
saved my day. thanks :)
â shrish
May 21 at 10:37
saved my day. thanks :)
â shrish
May 21 at 10:37
You're welcome =)
â x10an14
May 23 at 15:26
You're welcome =)
â x10an14
May 23 at 15:26
add a comment |Â
up vote
1
down vote
Looks like your packages are partially out of date. Updating the package list and then upgrading installed packages with available upgrades should fix the broken dependencies:
sudo apt-get update
sudo apt-get upgrade -f
If not, could you please edit your question to include the complete, verbatim output of the above commands? Thanks.
As youâÂÂve never accepted an answer before: if this answers your question, donâÂÂt forget to click the grey â under the number at the left of this text to accept it, which means âÂÂyes, this answer is validâÂÂ!
â David Foerster
May 18 at 0:24
Tried doing that get the below error:
â user9807993
May 18 at 5:36
The following packages will be upgraded: libpython3.6-stdlib python3-gdbm 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. Need to get 16.1 kB/2,005 kB of archives. After this operation, 1,415 kB of additional disk space will be used. Do you want to continue? [Y/n] Y 89% [Working] Get:1 ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 python3-gdbm amd64 3.6.5-3~16.04.york4 [16.1 kB] Fetched 16.1 kB in 0s (30.3 kB/s) (Reading database ... 231398 files and directories currently installed.)
â user9807993
May 18 at 5:42
Preparing to unpack .../libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb ... Unpacking libpython3.6-stdlib:amd64 (3.6.5-5~16.04.york1) over (3.6.5-5~16.04.york0) ... dpkg: error processing archive /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb (--unpack): trying to overwrite '/usr/lib/python3.6/lib2to3/refactor.py', which is also in package python3-lib2to3 3.6.5-3~16.04.york0.2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
â user9807993
May 18 at 5:42
Preparing to unpack .../python3-gdbm_3.6.5-3~16.04.york4_amd64.deb ... Unpacking python3-gdbm:amd64 (3.6.5-3~16.04.york4) over (3.6.5-3~16.04.york0.2) ... Errors were encountered while processing: /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
â user9807993
May 18 at 5:43
add a comment |Â
up vote
1
down vote
Looks like your packages are partially out of date. Updating the package list and then upgrading installed packages with available upgrades should fix the broken dependencies:
sudo apt-get update
sudo apt-get upgrade -f
If not, could you please edit your question to include the complete, verbatim output of the above commands? Thanks.
As youâÂÂve never accepted an answer before: if this answers your question, donâÂÂt forget to click the grey â under the number at the left of this text to accept it, which means âÂÂyes, this answer is validâÂÂ!
â David Foerster
May 18 at 0:24
Tried doing that get the below error:
â user9807993
May 18 at 5:36
The following packages will be upgraded: libpython3.6-stdlib python3-gdbm 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. Need to get 16.1 kB/2,005 kB of archives. After this operation, 1,415 kB of additional disk space will be used. Do you want to continue? [Y/n] Y 89% [Working] Get:1 ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 python3-gdbm amd64 3.6.5-3~16.04.york4 [16.1 kB] Fetched 16.1 kB in 0s (30.3 kB/s) (Reading database ... 231398 files and directories currently installed.)
â user9807993
May 18 at 5:42
Preparing to unpack .../libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb ... Unpacking libpython3.6-stdlib:amd64 (3.6.5-5~16.04.york1) over (3.6.5-5~16.04.york0) ... dpkg: error processing archive /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb (--unpack): trying to overwrite '/usr/lib/python3.6/lib2to3/refactor.py', which is also in package python3-lib2to3 3.6.5-3~16.04.york0.2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
â user9807993
May 18 at 5:42
Preparing to unpack .../python3-gdbm_3.6.5-3~16.04.york4_amd64.deb ... Unpacking python3-gdbm:amd64 (3.6.5-3~16.04.york4) over (3.6.5-3~16.04.york0.2) ... Errors were encountered while processing: /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
â user9807993
May 18 at 5:43
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Looks like your packages are partially out of date. Updating the package list and then upgrading installed packages with available upgrades should fix the broken dependencies:
sudo apt-get update
sudo apt-get upgrade -f
If not, could you please edit your question to include the complete, verbatim output of the above commands? Thanks.
Looks like your packages are partially out of date. Updating the package list and then upgrading installed packages with available upgrades should fix the broken dependencies:
sudo apt-get update
sudo apt-get upgrade -f
If not, could you please edit your question to include the complete, verbatim output of the above commands? Thanks.
answered May 18 at 0:23
![](https://i.stack.imgur.com/E0SEH.png?s=32&g=1)
![](https://i.stack.imgur.com/E0SEH.png?s=32&g=1)
David Foerster
25.9k1361106
25.9k1361106
As youâÂÂve never accepted an answer before: if this answers your question, donâÂÂt forget to click the grey â under the number at the left of this text to accept it, which means âÂÂyes, this answer is validâÂÂ!
â David Foerster
May 18 at 0:24
Tried doing that get the below error:
â user9807993
May 18 at 5:36
The following packages will be upgraded: libpython3.6-stdlib python3-gdbm 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. Need to get 16.1 kB/2,005 kB of archives. After this operation, 1,415 kB of additional disk space will be used. Do you want to continue? [Y/n] Y 89% [Working] Get:1 ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 python3-gdbm amd64 3.6.5-3~16.04.york4 [16.1 kB] Fetched 16.1 kB in 0s (30.3 kB/s) (Reading database ... 231398 files and directories currently installed.)
â user9807993
May 18 at 5:42
Preparing to unpack .../libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb ... Unpacking libpython3.6-stdlib:amd64 (3.6.5-5~16.04.york1) over (3.6.5-5~16.04.york0) ... dpkg: error processing archive /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb (--unpack): trying to overwrite '/usr/lib/python3.6/lib2to3/refactor.py', which is also in package python3-lib2to3 3.6.5-3~16.04.york0.2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
â user9807993
May 18 at 5:42
Preparing to unpack .../python3-gdbm_3.6.5-3~16.04.york4_amd64.deb ... Unpacking python3-gdbm:amd64 (3.6.5-3~16.04.york4) over (3.6.5-3~16.04.york0.2) ... Errors were encountered while processing: /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
â user9807993
May 18 at 5:43
add a comment |Â
As youâÂÂve never accepted an answer before: if this answers your question, donâÂÂt forget to click the grey â under the number at the left of this text to accept it, which means âÂÂyes, this answer is validâÂÂ!
â David Foerster
May 18 at 0:24
Tried doing that get the below error:
â user9807993
May 18 at 5:36
The following packages will be upgraded: libpython3.6-stdlib python3-gdbm 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. Need to get 16.1 kB/2,005 kB of archives. After this operation, 1,415 kB of additional disk space will be used. Do you want to continue? [Y/n] Y 89% [Working] Get:1 ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 python3-gdbm amd64 3.6.5-3~16.04.york4 [16.1 kB] Fetched 16.1 kB in 0s (30.3 kB/s) (Reading database ... 231398 files and directories currently installed.)
â user9807993
May 18 at 5:42
Preparing to unpack .../libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb ... Unpacking libpython3.6-stdlib:amd64 (3.6.5-5~16.04.york1) over (3.6.5-5~16.04.york0) ... dpkg: error processing archive /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb (--unpack): trying to overwrite '/usr/lib/python3.6/lib2to3/refactor.py', which is also in package python3-lib2to3 3.6.5-3~16.04.york0.2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
â user9807993
May 18 at 5:42
Preparing to unpack .../python3-gdbm_3.6.5-3~16.04.york4_amd64.deb ... Unpacking python3-gdbm:amd64 (3.6.5-3~16.04.york4) over (3.6.5-3~16.04.york0.2) ... Errors were encountered while processing: /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
â user9807993
May 18 at 5:43
As youâÂÂve never accepted an answer before: if this answers your question, donâÂÂt forget to click the grey â under the number at the left of this text to accept it, which means âÂÂyes, this answer is validâÂÂ!
â David Foerster
May 18 at 0:24
As youâÂÂve never accepted an answer before: if this answers your question, donâÂÂt forget to click the grey â under the number at the left of this text to accept it, which means âÂÂyes, this answer is validâÂÂ!
â David Foerster
May 18 at 0:24
Tried doing that get the below error:
â user9807993
May 18 at 5:36
Tried doing that get the below error:
â user9807993
May 18 at 5:36
The following packages will be upgraded: libpython3.6-stdlib python3-gdbm 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. Need to get 16.1 kB/2,005 kB of archives. After this operation, 1,415 kB of additional disk space will be used. Do you want to continue? [Y/n] Y 89% [Working] Get:1 ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 python3-gdbm amd64 3.6.5-3~16.04.york4 [16.1 kB] Fetched 16.1 kB in 0s (30.3 kB/s) (Reading database ... 231398 files and directories currently installed.)
â user9807993
May 18 at 5:42
The following packages will be upgraded: libpython3.6-stdlib python3-gdbm 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. Need to get 16.1 kB/2,005 kB of archives. After this operation, 1,415 kB of additional disk space will be used. Do you want to continue? [Y/n] Y 89% [Working] Get:1 ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 python3-gdbm amd64 3.6.5-3~16.04.york4 [16.1 kB] Fetched 16.1 kB in 0s (30.3 kB/s) (Reading database ... 231398 files and directories currently installed.)
â user9807993
May 18 at 5:42
Preparing to unpack .../libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb ... Unpacking libpython3.6-stdlib:amd64 (3.6.5-5~16.04.york1) over (3.6.5-5~16.04.york0) ... dpkg: error processing archive /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb (--unpack): trying to overwrite '/usr/lib/python3.6/lib2to3/refactor.py', which is also in package python3-lib2to3 3.6.5-3~16.04.york0.2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
â user9807993
May 18 at 5:42
Preparing to unpack .../libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb ... Unpacking libpython3.6-stdlib:amd64 (3.6.5-5~16.04.york1) over (3.6.5-5~16.04.york0) ... dpkg: error processing archive /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb (--unpack): trying to overwrite '/usr/lib/python3.6/lib2to3/refactor.py', which is also in package python3-lib2to3 3.6.5-3~16.04.york0.2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
â user9807993
May 18 at 5:42
Preparing to unpack .../python3-gdbm_3.6.5-3~16.04.york4_amd64.deb ... Unpacking python3-gdbm:amd64 (3.6.5-3~16.04.york4) over (3.6.5-3~16.04.york0.2) ... Errors were encountered while processing: /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
â user9807993
May 18 at 5:43
Preparing to unpack .../python3-gdbm_3.6.5-3~16.04.york4_amd64.deb ... Unpacking python3-gdbm:amd64 (3.6.5-3~16.04.york4) over (3.6.5-3~16.04.york0.2) ... Errors were encountered while processing: /var/cache/apt/archives/libpython3.6-stdlib_3.6.5-5~16.04.york1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
â user9807993
May 18 at 5:43
add a comment |Â
up vote
0
down vote
You might have python 3.6 being installed from multiple places which is causing the issue (http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu for example).
If this is the case, you need to comment or remove it from /etc/apt/sources, do an apt update, then try apt-get -f install again.
add a comment |Â
up vote
0
down vote
You might have python 3.6 being installed from multiple places which is causing the issue (http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu for example).
If this is the case, you need to comment or remove it from /etc/apt/sources, do an apt update, then try apt-get -f install again.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
You might have python 3.6 being installed from multiple places which is causing the issue (http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu for example).
If this is the case, you need to comment or remove it from /etc/apt/sources, do an apt update, then try apt-get -f install again.
You might have python 3.6 being installed from multiple places which is causing the issue (http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu for example).
If this is the case, you need to comment or remove it from /etc/apt/sources, do an apt update, then try apt-get -f install again.
answered May 19 at 12:24
Moobalee Boobalee
1
1
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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%2faskubuntu.com%2fquestions%2f1037528%2fapt-get-upgrade-error-for-python-packages-in-ubuntu-16-04%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
2
"You might want to run 'apt-get -f install' to correct these." -> Is that command successful, and what does it output?
â dsstorefile1
May 17 at 20:44
Could you please edit your question to include the output of
apt-cache policy libpython3.6-stdlib python3-lib2to3
? (Ideally can you please also remove your redundant comments to my answer to unclutter it?) Thanks.â David Foerster
May 19 at 1:01