LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-14-2018, 07:00 PM   #1
FrankG3000
LQ Newbie
 
Registered: Dec 2018
Location: Montreal
Distribution: KDE Neon
Posts: 1

Rep: Reputation: Disabled
Depedencies problem with python


I'm using KDE Neon and I seem to have some kind of a catch 22 dependencies issue.

when I do sudo apt upgrade I get this message:

PHP Code:
Reading package lists... Done
Building dependency tree       
Reading state information
... Done
You might want to run 
'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 
libpython3.7-stdlib Dependslibpython3.7-minimal (= 3.7.0-1+xenial2but 3.7.1-1~18.04 is installed
 python3.7 
Dependslibpython3.7-stdlib (= 3.7.1-1~18.04but 3.7.0-1+xenial2 is installed
E
Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). 
doing apt --fix-broken install gives me this:

PHP Code:
(Reading database ... 369349 files and directories currently installed.)
Preparing to unpack .../libpython3.7-stdlib_3.7.1-1~18.04_amd64.deb ...
Unpacking libpython3.7-stdlib:amd64 (3.7.1-1~18.04over (3.7.0-1+xenial2) ...
dpkgerror processing archive /var/cache/apt/archives/libpython3.7-stdlib_3.7.1-1~18.04_amd64.deb (--unpack):
 
trying to overwrite '/usr/lib/python3.7/distutils/__init__.py'which is also in package python3.7-distutils 3.7.0-1+xenial2
dpkg
-deberrorpaste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/
cache/apt/archives/libpython3.7-stdlib_3.7.1-1~18.04_amd64.deb
E
Sub-process /usr/bin/dpkg returned an error code (1
I'd rather not completely uninstall python as it's necessary for a lot of applications.

I tried to delete:
/var/cache/apt/archives/libpython3.7-stdlib_3.7.1-1~18.04_amd64.deb
in case it was corrupted, but on the next upgrade attempt I get the same issue.

any help would be appreciated.
 
Old 12-19-2018, 04:09 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,626

Rep: Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370Reputation: 4370
I cannot guarantee, but if there was no better idea try to force reinstall both packages: libpython3.7-stdlib and python3.7-distutils using version ~18.04.
 
Old 12-19-2018, 04:23 AM   #3
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,716

Rep: Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554
How do you come to have python packages from 16.04 & 18.04 installed at the same time?
 
Old 12-20-2018, 05:34 AM   #4
zeebra
Member
 
Registered: Dec 2011
Distribution: Mageia, Slackware
Posts: 847
Blog Entries: 8

Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by descendant_command View Post
How do you come to have python packages from 16.04 & 18.04 installed at the same time?
Maybe he migrated a /usr partition to his new system?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
find depedencies of e.g. wireshark-2.2.3 by command chtsalid Linux - Newbie 4 02-02-2017 06:24 PM
I got error while installing python-tk python-psycopg2 python-twisted saili kadam Linux - Newbie 1 09-05-2015 04:03 AM
[SOLVED] depedencies in apt-get install results in errors ted_chou12 Linux - Software 4 11-17-2011 04:41 PM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 09:30 PM
Kernel Compiling -- Finding all the depedencies Exeis Linux - General 3 11-07-2006 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration