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

Having trouble installing or compiling FreeCAD? Get help here.
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

Postby Erich Schulz » Tue May 07, 2019 10:57 pm

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
Posts: 9566
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

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

Postby jmaustpc » Tue May 07, 2019 11:35 pm

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
Posts: 1789
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

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

Postby kkremitzki » Wed May 08, 2019 1:20 am

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

Postby Erich Schulz » Wed May 08, 2019 2:52 am

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

Postby Erich Schulz » Wed May 08, 2019 2:54 am

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

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

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

Postby vocx » 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.
jmaustpc
Posts: 9566
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

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

Postby jmaustpc » Wed May 08, 2019 3:29 am

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

Postby Erich Schulz » Wed May 08, 2019 8:34 pm

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!