Bug#774163: Unable to upgrade or install ttf-root-installer (dpkg: error processing package) because of invalid certificate on root.cern.ch

2014-12-29 Thread Carlos Alberto Lopez Perez
Seems on the past there were also problems with this file served via
ftp. https://bugs.launchpad.net/ubuntu/+source/root-system/+bug/349860



signature.asc
Description: OpenPGP digital signature


Bug#774163: Unable to upgrade or install ttf-root-installer (dpkg: error processing package) because of invalid certificate on root.cern.ch

2014-12-29 Thread Carlos Alberto Lopez Perez
Package: ttf-root-installer
Version: 5.34.19+dfsg-1.1
Severity: grave


Hi, when upgrading my system ttf-root-installer
broke the upgrade because its configure script failed.

I tried to purge it completely and install it again,
unfortunately it broke again:

$ sudo apt-get install ttf-root-installer
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following NEW packages will be installed:
  ttf-root-installer
0 upgraded, 1 newly installed, 0 to remove and 633 not upgraded.
Need to get 28.1 kB of archives.
After this operation, 91.1 kB of additional disk space will be used.
Get:1 http://mirror.ovh.net/debian/ sid/contrib ttf-root-installer all 
5.34.19+dfsg-1.1 [28.1 kB]
Fetched 28.1 kB in 0s (135 kB/s)  
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Preconfiguring packages ...
Selecting previously unselected package ttf-root-installer.
(Reading database ... 572464 files and directories currently installed.)
Preparing to unpack .../ttf-root-installer_5.34.19+dfsg-1.1_all.deb ...
Unpacking ttf-root-installer (5.34.19+dfsg-1.1) ...
Setting up ttf-root-installer (5.34.19+dfsg-1.1) ...
dpkg: error processing package ttf-root-installer (--configure):
 subprocess installed post-installation script returned error exit status 5
Errors were encountered while processing:
 ttf-root-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)



Upon furter investigation :


$ sudo DEBCONF_DEBUG=developer dpkg -D777 --configure ttf-root-installer
D01: ensure_diversions: new, (re)loading
D01: process queue pkg ttf-root-installer:all queue.len 0 progress 1, try 1
D40: checking dependencies of ttf-root-installer:all (- )
D000400:   checking group ...
D000400: checking possibility  -> debconf
D000400:   checking non-provided pkg debconf:all
D000400:   is installed, ok and found
D000400: found 3
D000400:   found 3 matched 0 possfixbytrig -
D000400:   checking group ...
D000400: checking possibility  -> wget
D000400:   checking non-provided pkg wget:amd64
D000400:   is installed, ok and found
D000400: found 3
D000400:   found 3 matched 0 possfixbytrig -
D000400:   checking group ...
D000400: checking possibility  -> xfonts-utils
D000400:   checking non-provided pkg xfonts-utils:amd64
D000400:   is installed, ok and found
D000400: found 3
D000400:   found 3 matched 0 possfixbytrig -
D40: ok 2 msgs >><<
D40: checking Breaks
D000400:  checking virtbroken root-ttf
Setting up ttf-root-installer (5.34.19+dfsg-1.1) ...
D02: fork/exec /var/lib/dpkg/info/ttf-root-installer.postinst ( configure  )
debconf (developer): frontend started
debconf (developer): frontend running, package name is ttf-root-installer
debconf (developer): starting /var/lib/dpkg/info/ttf-root-installer.config 
configure 
debconf (developer): <-- TITLE ROOT TTF Installer
debconf (developer): --> 0
debconf (developer): <-- INPUT high ttf-root-installer/blurb
debconf (developer): --> 30 question skipped
debconf (developer): <-- INPUT high ttf-root-installer/dldir
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO 
debconf (developer): --> 0 ok
debconf (developer): <-- GET ttf-root-installer/dldir
debconf (developer): --> 0 
debconf (developer): <-- INPUT high ttf-root-installer/savedir
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO 
debconf (developer): --> 0 ok
debconf (developer): <-- GET ttf-root-installer/savedir
debconf (developer): --> 0 
debconf (developer): starting /var/lib/dpkg/info/ttf-root-installer.postinst 
configure 
+ archive=ttf_fonts.tar.gz
+ db_get ttf-root-installer/dldir
+ _db_cmd GET ttf-root-installer/dldir
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET ttf-root-installer/dldir
+ IFS=  

+ IFS=
 read -r _db_internal_line
debconf (developer): <-- GET ttf-root-installer/dldir
debconf (developer): --> 0 
+ RET=
+ return 0
+ LOCALCOPY=
+ db_get ttf-root-installer/savedir
+ _db_cmd GET ttf-root-installer/savedir
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET ttf-root-installer/savedir
+ debconf (developer): <-- GET ttf-root-installer/savedir
IFS=

+ IFS=
 read -r _db_internal_line
debconf (developer): --> 0 
+ RET=
+ return 0
+ SAVEDIR=
+ test ! -f /var/cache/ttf-root-installer
+ echo
+ tr [:upper:] [:lower:]
+ test x != xnone
+ pwd
+ savdir=/
+ mktemp -d
+ tmpdir=/tmp/tmp.LG7ux68bWG
+ cd /tmp/tmp.LG7ux68bWG
+ test -z
+ wget --continue --tries=1 --dns-timeout=20 --connect-timeout=20 
--read-timeout=300 -q --directory-prefix . -c 
http://root.cern.ch/download/ttf/ttf_fonts.tar.gz
dpkg: error processing package ttf-root-installer (--configure):
 subprocess installed post-installation script returned error exit status 5
D01: ensure_diversions: same, skipping
Errors were encountered while processing:
 ttf-root-installer


Trying to reproduce it manually:

$ wget --continue --tries=1 --dns-timeout=20 --connect-timeout