LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 10-12-2019, 01:05 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Some apt magic pls


Can't do much installing/removal in this Mint-19.0 VM because of the following errors
Code:
The following packages have unmet dependencies:
 libpython2.7 : Depends: libpython2.7-stdlib (= 2.7.15-4ubuntu4~18.04) but 2.7.15~rc1-1ubuntu0.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
dec@Mint19-VBox:~$ sudo apt  remove libpython2.7
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:
 dia : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 libpeas-1.0-python2loader : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 libpython2.7-stdlib : Depends: libpython2.7-minimal (= 2.7.15~rc1-1ubuntu0.1) but 2.7.15-4ubuntu4~18.04.2 is to be installed
 libvtk6.3 : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 libvtk6.3-qt : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-compizconfig : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-ldb : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-qt4 : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-samba : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-talloc : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-tdb : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-vtk6 : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-vtkgdcm : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-wxgtk4.0 : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python2.7-minimal : Depends: libpython2.7-minimal (= 2.7.15~rc1-1ubuntu0.1) but 2.7.15-4ubuntu4~18.04.2 is to be installed
 samba-libs : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
It's really rooting for me to try that 'apt --fix-broken install' which of course produces a syntax error and reams of 'Here's how you use apt, stupid' stuff . There's nothing mission critical here atm, but I would like to know how to sort this if only for pride's sake.
 
Old 10-12-2019, 03:34 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Quote:
libpython2.7 : Depends: libpython2.7-stdlib (= 2.7.15-4ubuntu4~18.04) but 2.7.15~rc1-1ubuntu0.1 is installed
I don't know. Can you remove python2 with the package mgr. Or do you have to remove everything that depends on it first?
Does apt have a -force option? Force install python2 over what's there.

Otherwise remove
Code:
dia : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 libpeas-1.0-python2loader : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 libpython2.7-stdlib : Depends: libpython2.7-minimal (= 2.7.15~rc1-1ubuntu0.1) but 2.7.15-4ubuntu4~18.04.2 is to be installed
 libvtk6.3 : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 libvtk6.3-qt : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-compizconfig : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-ldb : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-qt4 : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-samba : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-talloc : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-tdb : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-vtk6 : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-vtkgdcm : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python-wxgtk4.0 : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
 python2.7-minimal : Depends: libpython2.7-minimal (= 2.7.15~rc1-1ubuntu0.1) but 2.7.15-4ubuntu4~18.04.2 is to be installed
 samba-libs : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
And remove python2, reinstall the one it wants, then reinstall all above that you removed.

How did it get that way to start with? Install something outside of the package mgr? Build from source? Or different repo than the one you have installed.
 
Old 10-12-2019, 08:15 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Try opening Synaptic and going to Edit-->Fix Broken Packages.

You might also try apt-get -f or apt-get --fix-broken, but I've had more success with Synaptic in fixing broken packages.
 
Old 10-13-2019, 04:16 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by teckk
How did it get that way to start with? Install something outside of the package mgr? Build from source? Or different repo than the one you have installed.
I installed FreeCad, which is nearly pure python, apparently. It needed 25 dependencies or so. In they went. Mint is ubuntu with go faster stripes; there's one Mint repo (They run different things in X which speed things up) and all the rest are Ubuntu. I did add the freecad repo, but that only has freecad. I also may have Invesalius - another pure python thing, and that may have a repo, with just Invesalius. It also has fancy graphics modules, dozens of deps. No other repos - period.

Then it was just update & upgrade or dist-upgrade every time I opened it. Both of those apps really want python3. I did restore the backup, but that's got the problem, too. I'll try Synaptic, and if that doesn't sort it, I'll delete it. If I need a linux VM, I can install one. For that matter, my Vista VM can go also.

I have FreeCad & Invesalius AppImages (and other stuff) in my main system - a Multilib Slackware64. I also have python2 & pythyon3 with /usr/bin/python symlinked to python3. They work well. The vm was slow, as it only gets 1 core.
 
Old 10-13-2019, 04:37 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Well, Synaptic seemed to do the business. I got out freecad. I've 2 later versions in Slackware. Doing a dist-upgrade atm.

I do have Mint in dual boot as a 'save my a**' distro if/when I inevitably mess up, and it's only called on to restore working backups. But I can install dependency-heavy apps there, to see if they're worth the sweat in slackware.

Thanks very much, guys. I'll back up Mint once it finishes upgrading.
 
  


Reply



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
"error invalid magic number alloc magic is broken" MrRex Linux - Newbie 1 09-14-2016 11:00 AM
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 when trying x11 forwarding Sean1988 Linux - Newbie 2 05-12-2014 05:35 AM
Using Partition Magic and Boot Magic to install Linux zathrus MEPIS 4 01-14-2006 08:24 PM
Partition Magic/Boot magic and Slackware. adam1835 Linux - Newbie 5 01-11-2006 11:46 AM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 05:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 09:53 PM.

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
Open Source Consulting | Domain Registration