Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.