failed updates

Asked by Luis M.Jacinto on 2016-02-20

Ubuntu 12.04

Lately getting failed updates at every update. Seems to me the failing comes from FreeCad.
I been saving the failed results, the last one follows.

Package operation failed (20 february 2016)

The installation or removal of a software package failed.

installArchives() failed: (Reading database ...
(Reading database ... 5%%
(Reading database ... 10%%
(Reading database ... 15%%
(Reading database ... 20%%
(Reading database ... 25%%
(Reading database ... 30%%
(Reading database ... 35%%
(Reading database ... 40%%
(Reading database ... 45%%
(Reading database ... 50%%
(Reading database ... 55%%
(Reading database ... 60%%
(Reading database ... 65%%
(Reading database ... 70%%
(Reading database ... 75%%
(Reading database ... 80%%
(Reading database ... 85%%
(Reading database ... 90%%
(Reading database ... 95%%
(Reading database ... 100%%
(Reading database ... 739165 files and directories currently installed.)
Preparing to replace libnss3-1d 3.19.2.1-0ubuntu0.12.04.2 (using .../libnss3-1d_2%%3a3.21-0ubuntu0.12.04.1_i386.deb) ...
Unpacking replacement libnss3-1d ...
Preparing to replace libnss3 3.19.2.1-0ubuntu0.12.04.2 (using .../libnss3_2%%3a3.21-0ubuntu0.12.04.1_i386.deb) ...
Unpacking replacement libnss3 ...
Setting up freecad (1:0.16+bzr4832+201602022220~ubuntu12.04.1) ...
SyntaxError: ('invalid syntax', ('/usr/lib/freecad/Mod/Arch/importIFC.py', 124, 59, ' global DEBUG, PREFIX_NUMBERS, SKIP, SEPARATE_OPENINGS,\n'))

dpkg: error processing freecad (--configure):
 subprocess installed post-installation script returned error exit status 101
No apport report written because MaxReports is reached already
Setting up libnss3 (2:3.21-0ubuntu0.12.04.1) ...
Setting up libnss3-1d (2:3.21-0ubuntu0.12.04.1) ...
Processing triggers for menu ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 freecad
Error in function:
Setting up freecad (1:0.16+bzr4832+201602022220~ubuntu12.04.1) ...
SyntaxError: ('invalid syntax', ('/usr/lib/freecad/Mod/Arch/importIFC.py', 124, 59, ' global DEBUG, PREFIX_NUMBERS, SKIP, SEPARATE_OPENINGS,\n'))

dpkg: error processing freecad (--configure):
 subprocess installed post-installation script returned error exit status 101
Processing triggers for menu ...

 Will you please help fix this
and Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
2016-03-01
Last query:
2016-03-01
Last reply:
2016-02-21
Manfred Hampl (m-hampl) said : #1

Please provide the output of the following diagnostic commands

uname -a
lsb_release -crid
apt-cache policy freecad

Luis M.Jacinto (ljacinto) said : #4

To Manfred Hampl

luis@luis-G41M-Combo:~$ uname -a
Linux luis-G41M-Combo 3.2.0-98-generic-pae #138-Ubuntu SMP Mon Jan 11 13:11:12 UTC 2016 i686 i686 i386 GNU/Linux
luis@luis-G41M-Combo:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
luis@luis-G41M-Combo:~$ apt-cache policy freecad
freecad:
  Installed: 1:0.16+bzr4832+201602022220~ubuntu12.04.1
  Candidate: 1:0.16+bzr4893+201602192317~ubuntu12.04.1
  Version table:
     1:0.16+bzr4893+201602192317~ubuntu12.04.1 0
        500 http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu/ precise/main i386 Packages
 *** 1:0.16+bzr4832+201602022220~ubuntu12.04.1 0
        100 /var/lib/dpkg/status
     0.12.5284-dfsg-5ubuntu1 0
        500 http://za.archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
luis@luis-G41M-Combo:~$

Best Manfred Hampl (m-hampl) said : #5

actionparsnip's link shows a discussion that one of the versions in the PPA was somewhat broken.

You should either:
Stick to the version provided by standards Ubuntu
or
contact the provider of a PPA if you have problems with a PPA-provided version.

Maybe running the commands

sudo apt-get update
sudo dpkg --purge freecad
sudo apt-get install freecad

helps in this case.

Luis M.Jacinto (ljacinto) said : #6

Thanks Manfred Hampl, that solved my question.