PPA problem updating to Release of 0.18

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
iogui
Posts: 94
Joined: Tue Mar 19, 2019 3:44 pm
Location: São Paulo
Contact:

PPA problem updating to Release of 0.18

Postby iogui » Mon Apr 01, 2019 10:04 pm

I have an ubuntu 16.04 machine and I was waiting for the 0.18 FreeCAD to get ready on the ppa. A few minutes ago I've made the apt verification:

Code: Select all

sudo apt list --upgradable
The result:

Code: Select all

Listing... Pronto
freecad/xenial,xenial 2:0.18+dfsg1~201903301803~ubuntu16.04.1 amd64 [upgradable from: 1:0.17.13541-1ppa3~ubuntu16.04.1]
But when I ran the upgrade, the package was not upgraded, so I forced it by running

Code: Select all

sudo apt install freecad
That's what came from it:

Code: Select all

Lendo listas de pacotes... Pronto
Construindo árvore de dependências       
Lendo informação de estado... Pronto
Os seguintes pacotes foram instalados automaticamente e já não são necessários:
  libboost-signals1.58.0 libfontconfig1-dev libfreetype6-dev
Utilize 'sudo apt autoremove' para os remover.
The following additional packages will be installed:
  freecad-common freecad-python2 freecad-runtime libfreecad-python2-0.18
Pacotes sugeridos:
  freecad-doc povray
Os pacotes a seguir serão REMOVIDOS:
  freecad-doc
Os NOVOS pacotes a seguir serão instalados:
  freecad-common freecad-python2 freecad-runtime libfreecad-python2-0.18
Os pacotes a seguir serão atualizados:
  freecad
1 pacotes atualizados, 4 pacotes novos instalados, 1 a serem removidos e 0 não atualizados.
É preciso baixar 31,8 MB de arquivos.
Depois desta operação, 146 MB de espaço em disco serão liberados.
Você quer continuar? [S/n]
So... to be upgraded, the freecad-doc package had to be removed... but the apt package manager is suggesting for me to install freecad-doc. Don't you think that it is a little bit weird?
Also I didn't understand why the apt upgrade command didn't upgraded FreeCAD, WAS this freecad-doc package preventing FreeCAD to be upgraded?
Also when I try to reinstall freecad-doc, the apt package manager lists freecad as a package to be removed... As it seems there is no freecad-doc package for the freecad 0.18 version, am I right?
Be the change you want to see in the world. - Mahatma Gandhi
User avatar
kkremitzki
Posts: 1986
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: Release of 0.18

Postby kkremitzki » Mon Apr 01, 2019 11:09 pm

Did you do an upgrade, or a full-upgrade/dist-upgrade?
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.
jmaustpc
Posts: 9639
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: PPA problem updating to Release of 0.18

Postby jmaustpc » Tue Apr 02, 2019 12:19 am

I split this out of "release of 0.18" Dev forum topic moved it here,
iogui wrote:
Mon Apr 01, 2019 10:04 pm
So... to be upgraded, the freecad-doc package had to be removed... but the apt package manager is suggesting for me to install freecad-doc. Don't you think that it is a little bit weird?
can you have a look (easiest in gui) at the list of FreeCAD package dependencies? Docs is supposed to be a "suggests" not a "recommends" but treating either of those as a "depends" is an option in your package manager. By default, I think, some distros tick "treat recommands" as "depends" by default, but there are two options, on for "recommends" and one for "suggests" that are user configurable. Perhaps this is relevant on your system?
User avatar
iogui
Posts: 94
Joined: Tue Mar 19, 2019 3:44 pm
Location: São Paulo
Contact:

Re: Release of 0.18

Postby iogui » Tue Apr 02, 2019 1:40 am

kkremitzki wrote:
Mon Apr 01, 2019 11:09 pm
Did you do an upgrade, or a full-upgrade/dist-upgrade?
Just an upgrade:

Code: Select all

sudo apt get upgrade
By my experience, dist-upgrade is a little bit destructive and I always avoid it. Anyway, a simple upgrade should suffice.
jmaustpc wrote:
Tue Apr 02, 2019 12:19 am
(...)can you have a look (easiest in gui) at the list of FreeCAD package dependencies?(...)

Code: Select all

$ apt-cache depends freecad

freecad
  Depende: freecad-python2
  Quebra: freecad
  Recomenda: calculix-ccx
  Recomenda: graphviz
    graphviz:i386
  Sugere: freecad-doc
  Sugere: povray
  Sugere: python-collada
  Substitui: freecad

It is listed as sugests.
jmaustpc wrote:
Tue Apr 02, 2019 12:19 am
By default, I think, some distros tick "treat recommands" as "depends" by default, but there are two options, on for "recommends" and one for "suggests" that are user configurable. Perhaps this is relevant on your system?
I don't know but I don't think so, my system is an ubuntu 16.04 and I have not changed anything about how it should deal with "recommends" or "suggests". I always simply use apt upgrade an it uses to work. The FreeCAD package is behaving a little bit different then the usual.

BTW. FreeCAD 0.18 is indeed installed and I'm using it. But I had to give up freecad-doc package as to install it, it requeres me to uninstall freecad. In some way and I don't know why, those packages are conflicting to it-selves.

Anyway... if you want a little more info, there it goes:

Code: Select all

$ apt-cache showpkg freecad

Package: freecad
Versions: 
2:0.18+dfsg1~201903301803~ubuntu16.04.1 (/var/lib/apt/lists/ppa.launchpad.net_freecad-maintainers_freecad-stable_ubuntu_dists_xenial_main_binary-amd64_Packages) (/var/lib/apt/lists/ppa.launchpad.net_freecad-maintainers_freecad-stable_ubuntu_dists_xenial_main_binary-i386_Packages) (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/apt/lists/ppa.launchpad.net_freecad-maintainers_freecad-stable_ubuntu_dists_xenial_main_binary-amd64_Packages
                  MD5: d0806b37ee19ba4b2b3b18d48cda12dd
 Description Language: en
                 File: /var/lib/apt/lists/ppa.launchpad.net_freecad-maintainers_freecad-stable_ubuntu_dists_xenial_main_i18n_Translation-en
                  MD5: d0806b37ee19ba4b2b3b18d48cda12dd

0.15.4671+dfsg1-4 (/var/lib/apt/lists/br.archive.ubuntu.com_ubuntu_dists_xenial_universe_binary-amd64_Packages)
 Description Language: 
                 File: /var/lib/apt/lists/br.archive.ubuntu.com_ubuntu_dists_xenial_universe_binary-amd64_Packages
                  MD5: 55d1732b8e97faf08259c4148b4e3f24
 Description Language: 
                 File: /var/lib/apt/lists/br.archive.ubuntu.com_ubuntu_dists_xenial_universe_binary-i386_Packages
                  MD5: 55d1732b8e97faf08259c4148b4e3f24
 Description Language: pt_BR
                 File: /var/lib/apt/lists/br.archive.ubuntu.com_ubuntu_dists_xenial_universe_i18n_Translation-pt%5fBR
                  MD5: 55d1732b8e97faf08259c4148b4e3f24
 Description Language: pt
                 File: /var/lib/apt/lists/br.archive.ubuntu.com_ubuntu_dists_xenial_universe_i18n_Translation-pt
                  MD5: 55d1732b8e97faf08259c4148b4e3f24
 Description Language: en
                 File: /var/lib/apt/lists/br.archive.ubuntu.com_ubuntu_dists_xenial_universe_i18n_Translation-en
                  MD5: 55d1732b8e97faf08259c4148b4e3f24


Reverse Depends: 
  freecad,freecad 1:0.18~
  freecad-common,freecad 1:0.18~
  freecad-common,freecad 1:0.18~
  freecad-common,freecad 1:0.18~
  freecad,freecad 1:0.18~
  freecad-dev,freecad 0.15.4671+dfsg1-4
  freecad:i386,freecad
  science-engineering,freecad
  freecad-doc,freecad 0.15.4671+dfsg1-4
Dependencies: 
2:0.18+dfsg1~201903301803~ubuntu16.04.1 - freecad-python2 (0 (null)) freecad (3 1:0.18~) freecad:i386 (3 1:0.18~) calculix-ccx (0 (null)) graphviz (0 (null)) freecad-doc (0 (null)) povray (0 (null)) python-collada (0 (null)) freecad (3 1:0.18~) freecad:i386 (3 1:0.18~) freecad:i386 (32 (null)) 
0.15.4671+dfsg1-4 - libsoqt4-20 (2 1.6) python-collada (0 (null)) python-matplotlib (0 (null)) python-pivy (2 0.5.0~v609hg-2) python-ply (0 (null)) python-pyside (0 (null)) pyside-tools (0 (null)) python:any (2 2.6.6-7~) python2.7 (0 (null)) libboost-program-options1.58.0 (0 (null)) libboost-regex1.58.0 (0 (null)) libboost-signals1.58.0 (0 (null)) libboost-system1.58.0 (0 (null)) libc6 (2 2.14) libcoin80v5 (0 (null)) libfreetype6 (2 2.2.1) libgcc1 (2 1:3.4) libgl1-mesa-glx (16 (null)) libgl1 (0 (null)) libglu1-mesa (16 (null)) libglu1 (0 (null)) liboce-foundation10 (0 (null)) liboce-modeling10 (0 (null)) liboce-ocaf-lite10 (0 (null)) liboce-ocaf10 (0 (null)) liboce-visualization10 (0 (null)) libpython2.7 (2 2.7) libqt4-network (2 4:4.5.3) libqt4-opengl (2 4:4.6.1) libqt4-svg (2 4:4.5.3) libqt4-xml (2 4:4.5.3) libqtcore4 (2 4:4.8.0) libqtgui4 (2 4:4.8.0) libqtwebkit4 (0 (null)) libshiboken1.2v5 (2 1.1.0) libspnav0 (2 0.2.2) libstdc++6 (2 5.2) libx11-6 (0 (null)) libxerces-c3.1 (0 (null)) libzipios++0v5 (0 (null)) zlib1g (2 1:1.1.4) freecad-doc (0 (null)) freecad:i386 (32 (null)) 
Provides: 
2:0.18+dfsg1~201903301803~ubuntu16.04.1 - 
0.15.4671+dfsg1-4 - 
Reverse Provides: 
Be the change you want to see in the world. - Mahatma Gandhi
User avatar
iogui
Posts: 94
Joined: Tue Mar 19, 2019 3:44 pm
Location: São Paulo
Contact:

Re: PPA problem updating to Release of 0.18

Postby iogui » Tue Apr 02, 2019 1:59 am

I think that the problem is in the freecad-doc package. It's dependencies are strange... see:

Code: Select all

$ apt-cache depends freecad-doc
freecad-doc
  Depende: qt4-dev-tools
It declares that depends just on qt 4 but, if you look at the result of showpkg something different rises up:

Code: Select all

$ apt-cache showpkg freecad-doc
Package: freecad-doc
Versions: 
1:0.17.13541-1ppa3~ubuntu16.04.1 (/var/lib/apt/lists/ppa.launchpad.net_freecad-maintainers_freecad-stable_ubuntu_dists_xenial_main_binary-amd64_Packages) (/var/lib/apt/lists/ppa.launchpad.net_freecad-maintainers_freecad-stable_ubuntu_dists_xenial_main_binary-i386_Packages)
 Description Language: 
                 File: /var/lib/apt/lists/ppa.launchpad.net_freecad-maintainers_freecad-stable_ubuntu_dists_xenial_main_binary-amd64_Packages
                  MD5: fda477f676d3946a75bff8a54843e734
 Description Language: en
                 File: /var/lib/apt/lists/ppa.launchpad.net_freecad-maintainers_freecad-stable_ubuntu_dists_xenial_main_i18n_Translation-en
                  MD5: fda477f676d3946a75bff8a54843e734

0.15.4671+dfsg1-4 (/var/lib/apt/lists/br.archive.ubuntu.com_ubuntu_dists_xenial_universe_binary-amd64_Packages) (/var/lib/apt/lists/br.archive.ubuntu.com_ubuntu_dists_xenial_universe_binary-i386_Packages)
 Description Language: 
                 File: /var/lib/apt/lists/br.archive.ubuntu.com_ubuntu_dists_xenial_universe_binary-amd64_Packages
                  MD5: 71cb85cff5b3d4bdf89c1ab6d1523bb8
 Description Language: en
                 File: /var/lib/apt/lists/br.archive.ubuntu.com_ubuntu_dists_xenial_universe_i18n_Translation-en
                  MD5: 71cb85cff5b3d4bdf89c1ab6d1523bb8


Reverse Depends: 
  freecad-common,freecad-doc 1:0.18~
  freecad-common,freecad-doc 1:0.18~
  freecad-common,freecad-doc 1:0.18~
  freecad,freecad-doc
  freecad,freecad-doc
Dependencies: 
1:0.17.13541-1ppa3~ubuntu16.04.1 - qt4-dev-tools (0 (null)) 
0.15.4671+dfsg1-4 - qt4-dev-tools (0 (null)) freecad (5 0.15.4671+dfsg1-4) 
Provides: 
1:0.17.13541-1ppa3~ubuntu16.04.1 - 
0.15.4671+dfsg1-4 - 
Reverse Provides:
In it's dependencies freecad package is been listed as:
freecad (5 0.15.4671+dfsg1-4)

I'm not an apt specialist but as I know, this number 5 in front of the versions means "Equals" and it is pointing to freecad 0.15 package but till today freecad 0.17 was installed in my system living together and peacefully with freecad-doc package.

For what I know those are the codes:
0 NoOp
1 LessEq
2 GreaterEq
3 Less
4 Greater
5 Equals
6 NotEquals
16 OR
Be the change you want to see in the world. - Mahatma Gandhi
User avatar
kkremitzki
Posts: 1986
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: Release of 0.18

Postby kkremitzki » Tue Apr 02, 2019 2:23 am

iogui wrote:
Tue Apr 02, 2019 1:40 am
By my experience, dist-upgrade is a little bit destructive and I always avoid it. Anyway, a simple upgrade should suffice.
In this case, it's necessary because we have to force uninstallation of an old package before we can unpack a new package since they have conflicting file paths.
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.
jmaustpc
Posts: 9639
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: PPA problem updating to Release of 0.18

Postby jmaustpc » Tue Apr 02, 2019 3:53 am

iogui wrote:
Tue Apr 02, 2019 1:59 am
I think that the problem is in the freecad-doc package. It's dependencies are strange... see:
no, its just that the doc package is for the old FreeCAD 0.17, the package has not yet been updated for 0.18. Its just a case of time available for those that know what to do and priorities of their limited time... i think Kurt said elsewhere that he intended to fix it shortly.
User avatar
Roland
Posts: 262
Joined: Fri Aug 21, 2015 2:20 pm

Re: PPA problem updating to Release of 0.18

Postby Roland » Tue Apr 02, 2019 11:48 am

Hi Forum,

Perhaps we have the same problem.

I upgraded from 17 to 18 through the PPA. But FreeCAD is now dead on my system (Linux Mint 19.1 / Ubuntu 18.04). I suggest to read this review: https://forum.freecadweb.org/viewtopic. ... 10#p298604

Any advice welcome, because I need to get it running asap!

Best wishes,

Roland
User avatar
iogui
Posts: 94
Joined: Tue Mar 19, 2019 3:44 pm
Location: São Paulo
Contact:

Re: Release of 0.18

Postby iogui » Tue Apr 02, 2019 2:56 pm

kkremitzki wrote:
Tue Apr 02, 2019 2:23 am
iogui wrote:
Tue Apr 02, 2019 1:40 am
By my experience, dist-upgrade is a little bit destructive and I always avoid it. Anyway, a simple upgrade should suffice.
In this case, it's necessary because we have to force uninstallation of an old package before we can unpack a new package since they have conflicting file paths.
It is not necessary, as I have already said I was able to update freecad by using apt install frecad and it forced the uninstall of freecad-doc. I've made my post just to warn that something was wrong among freecad and freecad-doc package but my system is working fine just without freecad-doc.
jmaustpc wrote:
Tue Apr 02, 2019 3:53 am
iogui wrote:
Tue Apr 02, 2019 1:59 am
I think that the problem is in the freecad-doc package. It's dependencies are strange... see:
no, its just that the doc package is for the old FreeCAD 0.17, the package has not yet been updated for 0.18. Its just a case of time available for those that know what to do and priorities of their limited time... i think Kurt said elsewhere that he intended to fix it shortly.
Ok then. I will be using freecad without the doc in the meantime.
Roland wrote:
Tue Apr 02, 2019 11:48 am
Perhaps we have the same problem.

I upgraded from 17 to 18 through the PPA. But FreeCAD is now dead on my system (Linux Mint 19.1 / Ubuntu 18.04)
Not the same. My freecad works just fine without the docs. It is not dead for me. And my linux is a Ubuntu 16.04.
Be the change you want to see in the world. - Mahatma Gandhi
User avatar
kkremitzki
Posts: 1986
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: Release of 0.18

Postby kkremitzki » Tue Apr 02, 2019 3:22 pm

iogui wrote:
Tue Apr 02, 2019 2:56 pm
kkremitzki wrote:
Tue Apr 02, 2019 2:23 am
iogui wrote:
Tue Apr 02, 2019 1:40 am
By my experience, dist-upgrade is a little bit destructive and I always avoid it. Anyway, a simple upgrade should suffice.
In this case, it's necessary because we have to force uninstallation of an old package before we can unpack a new package since they have conflicting file paths.
It is not necessary, as I have already said I was able to update freecad by using apt install frecad and it forced the uninstall of freecad-doc. I've made my post just to warn that something was wrong among freecad and freecad-doc package but my system is working fine just without freecad-doc.
Let me rephrase: a simple upgrade is not always sufficient, one of either a dist-upgrade/full-upgrade or manual installation is necessary.
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.