Depends: freecad-python2 but it is not going to be installed

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Erich Schulz
Posts: 141
Joined: Tue May 07, 2019 10:50 pm
Location: Brisbane, Australia

Depends: freecad-python2 but it is not going to be installed

Post by Erich Schulz »

Hello :-)

I just tried freecad upgrade and I got "freecad : Depends: freecad-python2 but it is not going to be installed
E: Unable to correct problems, you have held broken packages."

I did a google and couldn't find any discussion of this, so I've shared.

I think i'm on ubuntu 16.

e

Code: Select all

erich@erich-Gazelle:~$ sudo add-apt-repository ppa:freecad-maintainers/freecad-stable
[sudo] password for erich: 
Sorry, try 
[sudo] password for erich: 
 This PPA repository hosts stable releases of FreeCAD for all supported versions of Ubuntu in 32 and 64-Bit architecture. These packages are more up to date than those found on the Ubuntu repositories.

Note: the freecad-doc package brings offline FreeCAD help support, and needs to be installed separately..  

Note: the ccx package brings CalculiX support to the FEM workbench, and needs to be installed separately.
 More info: https://launchpad.net/~freecad-maintainers/+archive/ubuntu/freecad-stable
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpyc31rmrg/secring.gpg' created
gpg: keyring `/tmp/tmpyc31rmrg/pubring.gpg' created
gpg: requesting key 19BB5BCA from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpyc31rmrg/trustdb.gpg: trustdb created
gpg: key 19BB5BCA: public key "Launchpad PPA for FreeCAD maintainers" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
erich@erich-Gazelle:~$ sudo apt-get update
Hit:1 http://au.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://au.archive.ubuntu.com/ubuntu xenial-updates InRelease                                                
Hit:3 http://au.archive.ubuntu.com/ubuntu xenial-backports InRelease                                              
Hit:4 http://au.archive.ubuntu.com/ubuntu xenial-security InRelease                                               
Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease                                                      
Hit:6 https://deb.nodesource.com/node_8.x xenial InRelease               
Hit:7 http://dl.google.com/linux/chrome/deb stable Release                                          
Get:9 http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu xenial InRelease [17.5 kB] 
Get:10 http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu xenial/main amd64 Packages [4,736 B]
Get:11 http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu xenial/main i386 Packages [4,740 B]
Get:12 http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu xenial/main Translation-en [2,564 B]
Fetched 29.6 kB in 4s (5,973 B/s)            
Reading package lists... Done
erich@erich-Gazelle:~$ sudo apt-get install freecad freecad-doc && sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 freecad : Depends: freecad-python2 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
erich@erich-Gazelle:~$ 



jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Depends: freecad-python2 but it is not going to be installed

Post by jmaustpc »

Your first post, welcome.

I think the problem is that, documents package, don't install FreeCAD-docs and see if that works.

I have to run now, I am picking up some cows and the farmer is coming on his tractor now.
Jim
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Depends: freecad-python2 but it is not going to be installed

Post by kkremitzki »

When you have a problem like this, the way to troubleshoot it is to follow this line:

Code: Select all

 freecad : Depends: freecad-python2 but it is not going to be installed
 
So, try sudo apt install freecad-python2. That will probably give you a similar message, where freecad-python2 Depends on foo, but it is not going to be installed--then try to install foo, until you get to the "real" error message. The bottom line is that you have a package installed that conflicts, but which one isn't apparent yet.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
Erich Schulz
Posts: 141
Joined: Tue May 07, 2019 10:50 pm
Location: Brisbane, Australia

Re: Depends: freecad-python2 but it is not going to be installed

Post by Erich Schulz »

thanks for that. I'll give it a go.
Erich Schulz
Posts: 141
Joined: Tue May 07, 2019 10:50 pm
Location: Brisbane, Australia

Re: Depends: freecad-python2 but it is not going to be installed

Post by Erich Schulz »

ok yes - dropping the docs package seems to have made it happy!

thanks again
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Depends: freecad-python2 but it is not going to be installed

Post by vocx »

Erich Schulz wrote: Tue May 07, 2019 10:57 pm ...

I think i'm on ubuntu 16.
Ubuntu 16.04 is a long term support (LTS) version, so it is supported until 2021. However, now it's already three years old, so many of the libraries that it has are old. I would advice you to upgrade at least to Ubuntu 18.04 LTS, which is more recent. FreeCAD 0.18 works quite well with it.

Also, is there are reason you are installing the Python 2 version? Python 2 will be discontinued exactly on 1st January 2020, so in the future FreeCAD will probably not support Python 2 either. Most development happening right now is done in Python 3. I think you should think about installing the Python 3 and Qt5 version, along with upgrading your operating system.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Depends: freecad-python2 but it is not going to be installed

Post by jmaustpc »

vocx wrote: Wed May 08, 2019 3:26 am
Erich Schulz wrote: Tue May 07, 2019 10:57 pm ...

I think i'm on ubuntu 16.
Ubuntu 16.04 is a long term support (LTS) version, so it is supported until 2021. However, now it's already three years old, so many of the libraries that it has are old. I would advice you to upgrade at least to Ubuntu 18.04 LTS, which is more recent. FreeCAD 0.18 works quite well with it.

Also, is there are reason you are installing the Python 2 version? Python 2 will be discontinued exactly on 1st January 2020, so in the future FreeCAD will probably not support Python 2 either. Most development happening right now is done in Python 3. I think you should think about installing the Python 3 and Qt5 version, along with upgrading your operating system.
Its because the version of Python 3 in Ubuntu 16.04 is too old to work with current FreeCAD. So FreeCAD Python2 is installed.
Erich Schulz
Posts: 141
Joined: Tue May 07, 2019 10:50 pm
Location: Brisbane, Australia

Re: Depends: freecad-python2 but it is not going to be installed

Post by Erich Schulz »

Yes I needs to upgrade. But for now I have recent freecad working and it's much much nicer than version from default package.

People have been busy!
Post Reply