Failure installing v19 from PPA - "held broken packages"

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
ttshaw1
Posts: 7
Joined: Tue Aug 13, 2019 1:59 am

Failure installing v19 from PPA - "held broken packages"

Post by ttshaw1 »

I had previously installed FreeCAD v18 from the default repositories. I'm now trying to install FreeCAD v19 stable from the FreeCAD maintainers' PPA on Linux Mint 20.2. What I've done is

`sudo add-apt-repository ppa:freecad-maintainers/freecad-stable`
`sudo apt update`
That all went fine. But when I try
`sudo apt install freecad` I get:

Code: Select all

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-python3 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
If I do `sudo apt install freecad-python3`

Code: Select all

The following packages have unmet dependencies:
 freecad-python3 : Depends: libfreecad-python3-0.19 (< 2:0.19.2+dfsg1~202107210810~ubuntu20.04.1+1~) but it is not going to be installed
                   Depends: libfreecad-python3-0.19 (>= 2:0.19.2+dfsg1~202107210810~ubuntu20.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I was able to install libfreecad-python3-0.19 :

Code: Select all

libfreecad-python3-0.19 is already the newest version (2:0.19.2+dfsg1~202107210810~ubuntu20.04.1)
But that's as far as I've gotten. That doesn't seem to solve the issue with freecad-python3. How can I resolve this? Also, is this the best way to get in touch with the PPA maintainers?
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Failure installing v19 from PPA - "held broken packages"

Post by kkremitzki »

I am the PPA maintainer. Can you paste the output of

Code: Select all

dpkg -l | grep freecad
please?
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.
ttshaw1
Posts: 7
Joined: Tue Aug 13, 2019 1:59 am

Re: Failure installing v19 from PPA - "held broken packages"

Post by ttshaw1 »

Code: Select all

ii  freecad-common                                2:0.19.2+dfsg1~202107210810~ubuntu20.04.1        all          Extensible Open Source CAx program - common files
ii  libfreecad-python3-0.19                       2:0.19.2+dfsg1~202107210810~ubuntu20.04.1        amd64        Extensible Open Source CAx program - Python 3 library files
Thanks!
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Failure installing v19 from PPA - "held broken packages"

Post by kkremitzki »

This problem seems vaguely familiar, as if I had done some testing for it but don't quite recall the details. Are you also by any chance running a PPA for KiCad or QGIS? I wonder if there's a co-installability bug.

If not, could you try `sudo apt purge` on all your FreeCAD packages, attempt the install again, and if it complains about a sub-package that can't be installed, try running the installation command again with only that package until you arrive at the core conflict.
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.
ttshaw1
Posts: 7
Joined: Tue Aug 13, 2019 1:59 am

Re: Failure installing v19 from PPA - "held broken packages"

Post by ttshaw1 »

Unless you count the default repositories, no to KiCAD and QGIS.

I purged freecad-common and freecad-python3. dpkg -l | grep freecad returns nothing. Trying to install freecad runs into the same issue - depends on freecad-python3, depends on two versions of libfreecad. I can install libfreecad-python3-0.19 (2:0.19.2+dfsg1~202107210810~ubuntu20.04.1) but that doesn't satisfy the dependencies for freecad-python3.
Post Reply