Bug 45908 - chromedriver installation fails
chromedriver installation fails
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: General
unspecified
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Arvid Requate
Florian Best
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-12-20 09:41 CET by Felix Botner
Modified: 2018-03-14 14:38 CET (History)
3 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2017-12-20 09:41:54 CET
[master090] 2017-12-19T19:43:46.767114	Paketlisten werden gelesen...
[master090] 2017-12-19T19:43:46.767114	Abhängigkeitsbaum wird aufgebaut....
[master090] 2017-12-19T19:43:47.355790	Statusinformationen werden eingelesen....
[master090] 2017-12-19T19:43:47.652166	Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
[master090] 2017-12-19T19:43:47.652166	Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
[master090] 2017-12-19T19:43:47.652166	Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
[master090] 2017-12-19T19:43:47.652166	nicht erstellt wurden oder Incoming noch nicht verlassen haben.
[master090] 2017-12-19T19:43:47.652166	Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:
[master090] 2017-12-19T19:43:47.652961	Die folgenden Pakete haben unerfüllte Abhängigkeiten:
[master090] 2017-12-19T19:43:47.867201	 chromedriver : Hängt ab von: chromium-driver (= 62.0.3202.89-1~deb9u1) soll aber nicht installiert werden
[master090] 2017-12-19T19:43:47.867201	 chromium-browser : Hängt ab von: chromium (>= 10) soll aber nicht installiert werden
[master090] 2017-12-19T19:43:47.916898	E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.
Comment 1 Florian Best univentionstaff 2017-12-20 13:18:10 CET
I don't understand this problem...:

root@master120:~# dpkg -l libcups2 libgtk2.0-0
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                                           Version                              Architecture                         Description
+++-==============================================================-====================================-====================================-=================================================================================================================================
ii  libcups2:amd64                                                 1.7.5-11+deb8u1A~4.2.0.201703271703  amd64                                Common UNIX Printing System(tm) - Core library
ii  libgtk2.0-0:amd64                                              2.24.31-2                            amd64                                GTK+ graphical user interface library
root@master120:~# apt install chromium
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:
 chromium : Depends: libcups2 (>= 1.4.0) but it is not going to be installed
            Depends: libgtk2.0-0 (>= 2.24.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


The versions are >= and the dependencies are already installed!


# apt policy chromium
chromium:
  Installed: (none)
  Candidate: 62.0.3202.89-1~deb9u1
  Version table:
     62.0.3202.89-1~deb9u1 500
        500 http://omar.knut.univention.de/build2 ucs_4.3-0/amd64/ Packages
     61.0.3163.100-1~deb9u1 500
        500 http://omar.knut.univention.de/build2 ucs_4.3-0/amd64/ Packages
root@master120:~# 
root@master120:~# 
root@master120:~# apt policy chromedriver chromium-driver chromium libcups2 libgtk2.0-0
chromedriver:
  Installed: (none)
  Candidate: 62.0.3202.89-1~deb9u1
  Version table:
     62.0.3202.89-1~deb9u1 500
        500 http://omar.knut.univention.de/build2 ucs_4.3-0/amd64/ Packages
     61.0.3163.100-1~deb9u1 500
        500 http://omar.knut.univention.de/build2 ucs_4.3-0/amd64/ Packages
chromium-driver:
  Installed: (none)
  Candidate: 62.0.3202.89-1~deb9u1
  Version table:
     62.0.3202.89-1~deb9u1 500
        500 http://omar.knut.univention.de/build2 ucs_4.3-0/amd64/ Packages
     61.0.3163.100-1~deb9u1 500
        500 http://omar.knut.univention.de/build2 ucs_4.3-0/amd64/ Packages
chromium:
  Installed: (none)
  Candidate: 62.0.3202.89-1~deb9u1
  Version table:
     62.0.3202.89-1~deb9u1 500
        500 http://omar.knut.univention.de/build2 ucs_4.3-0/amd64/ Packages
     61.0.3163.100-1~deb9u1 500
        500 http://omar.knut.univention.de/build2 ucs_4.3-0/amd64/ Packages
libcups2:
  Installed: 1.7.5-11+deb8u1A~4.2.0.201703271703
  Candidate: 1.7.5-11+deb8u1A~4.2.0.201703271703
  Version table:
 *** 1.7.5-11+deb8u1A~4.2.0.201703271703 500
        500 http://apt.knut.univention.de/4.2/maintained 4.2-0/amd64/ Packages
        100 /var/lib/dpkg/status
     1.5.3-5.99.201510221331 500
        500 http://apt.knut.univention.de/4.1/maintained 4.1-0/amd64/ Packages
     1.5.3-5.96.201509111033 500
        500 http://apt.knut.univention.de/4.0/maintained 4.0-4/amd64/ Packages
     1.5.3-5.84.201411010252 500
        500 http://apt.knut.univention.de/4.0/maintained 4.0-0/amd64/ Packages
libgtk2.0-0:
  Installed: 2.24.31-2
  Candidate: 2.24.31-2
  Version table:
 *** 2.24.31-2 500
        500 http://omar.knut.univention.de/build2 ucs_4.3-0/amd64/ Packages
        500 http://apt.knut.univention.de/4.3/maintained 4.3-0/amd64/ Packages
        100 /var/lib/dpkg/status
     2.24.25-3+deb8u1 500
        500 http://apt.knut.univention.de/4.2/maintained 4.2-0/amd64/ Packages
     2.24.10-2.80.201403161621 500
        500 http://apt.knut.univention.de/4.0/maintained 4.0-0/amd64/ Packages
Comment 2 Erik Damrose univentionstaff 2017-12-20 13:33:46 CET
Adding the additional dependencies usually helps to uncover the real issue:

# apt-get -s install chromedriver chromium-driver chromium libcups2

-> Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 chromium : Kollidiert mit: libnettle4 aber 2.7.1-5+deb8u2 soll installiert werden
Comment 3 Florian Best univentionstaff 2017-12-20 14:14:03 CET
The package libnettle4 does not exists in stretch anymore. There is libnettle4. They are both installed. Removing it doees not work, it would remove all essential packages.

# apt rdepends libnettle4
libnettle4
Reverse Depends:
  Depends: nettle-dev (= 2.7.1-5+deb8u2)
  Depends: dnsmasq-base (>= 2.2)
  Depends: wget
  Depends: slapd-smbk5pwd
  Depends: librtmp1
  Depends: rtmpdump
  Depends: squid-cgi
  Depends: squidclient
  Depends: squid3
  Depends: qemu-utils (>= 2.6)
  Depends: qemu-system-x86 (>= 2.6)
  Depends: qemu-system-sparc (>= 2.6)
  Depends: qemu-system-ppc (>= 2.6)
  Depends: qemu-system-mips (>= 2.6)
  Depends: qemu-system-arm (>= 2.6)
  Depends: qemu-system-misc (>= 2.6)
  Depends: slapd-smbk5pwd
  Depends: libhogweed2 (= 2.7.1-5+deb8u2)
  Depends: nettle-dbg (= 2.7.1-5+deb8u2)
  Depends: nettle-bin (= 2.7.1-5+deb8u2)
  Depends: dnsmasq-base (>= 2.2)
  Depends: gnutls-bin
  Depends: libgnutls-deb0-28 (>= 2.7)
  Depends: libarchive13 (>= 2.3)
  Depends: bsdtar
  Depends: bsdcpio
  Depends: libcurl3-gnutls
  Depends: wget
  Depends: gstreamer1.0-plugins-bad
  Depends: rtmpdump
  Depends: librtmp1
  Depends: libarchive12 (>= 2.3)
  Depends: slapd-smbk5pwd
  Depends: bsdtar
  Depends: bsdcpio
  Depends: libarchive12 (>= 2.3)
  Depends: slapd-smbk5pwd
  Conflicts: chromium
  Conflicts: chromium
Comment 4 Florian Best univentionstaff 2017-12-20 14:22:35 CET
libhogweed2 and libgnutls-deb0-28 are the cause as they are installed from UCS 4.2 and not available in UCS 4.3:

# apt policy libhogweed2 libgnutls-deb0-28                                                                                                                                                                                                                       
libhogweed2:
  Installed: 2.7.1-5+deb8u2
  Candidate: 2.7.1-5+deb8u2
  Version table:
 *** 2.7.1-5+deb8u2 500
        500 http://apt.knut.univention.de/4.2/maintained 4.2-0/amd64/ Packages
        100 /var/lib/dpkg/status
libgnutls-deb0-28:
  Installed: 3.3.8-6+deb8u4
  Candidate: 3.3.8-6+deb8u4
  Version table:
 *** 3.3.8-6+deb8u4 500
        500 http://apt.knut.univention.de/4.2/maintained 4.2-0/amd64/ Packages
        100 /var/lib/dpkg/status
Comment 5 Florian Best univentionstaff 2017-12-20 14:40:47 CET
Is there a faster way to debug this?

Next candidate in the chain seems one of them:

# apt-cache show $(dpkg -l $(apt-cache rdepends libgnutls-deb0-28) 2>/dev/null | grep ^ii | sed 's/:amd64//; s/ \+/ /g; s/^ii //; s/ /=/' | cut -d ' ' -f1) | grep -e Depends -e Package | grep --color=always -B1 -e Depends.*libgnutls-deb0-28 -e Depends.*libh
ogweed2                                                                                                                                                                                                                                                                          
Package: libcups2
Depends: libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.14), libgnutls-deb0-28 (>= 3.3.0), libgssapi-krb5-2 (>= 1.10+dfsg~), zlib1g (>= 1:1.2.0)
--
Package: libgnutls-deb0-28
Depends: libc6 (>= 2.17), libgmp10 (>= 2:6), libhogweed2 (>= 2.7), libnettle4 (>= 2.7), libp11-kit0 (>= 0.20.7), libtasn1-6 (>= 4.1-0), zlib1g (>= 1:1.1.4)
Comment 6 Florian Best univentionstaff 2017-12-20 14:43:34 CET
The reason is that libcups2 is not build for UCS 4.3:

# apt-cache policy libcups2 
libcups2:
  Installed: 1.7.5-11+deb8u1A~4.2.0.201703271703
  Candidate: 1.7.5-11+deb8u1A~4.2.0.201703271703
  Version table:
 *** 1.7.5-11+deb8u1A~4.2.0.201703271703 500
        500 http://apt.knut.univention.de/4.2/maintained 4.2-0/amd64/ Packages
        100 /var/lib/dpkg/status
     1.5.3-5.99.201510221331 500
        500 http://apt.knut.univention.de/4.1/maintained 4.1-0/amd64/ Packages
     1.5.3-5.96.201509111033 500
        500 http://apt.knut.univention.de/4.0/maintained 4.0-4/amd64/ Packages
     1.5.3-5.84.201411010252 500
        500 http://apt.knut.univention.de/4.0/maintained 4.0-0/amd64/ Packages

It exists in stretch and doesn't have the dependency on libgnutls-deb0-28 anymore:
https://packages.debian.org/stretch/libcups2
Comment 7 Florian Best univentionstaff 2017-12-20 14:53:21 CET
It seems "cups" has not been build for amd64 but only for i386.
Comment 8 Florian Best univentionstaff 2017-12-20 14:58:29 CET
ladda: ~ 14:56:03(0 J0 !32758 #5)$ build-package-architecture-ng -r 4.3 -p cups

Latest version: /var/univention/buildsystem2/apt/ucs_4.3-0/source/cups_2.2.1-8A~4.3.0.201712201450.dsc 2.2.1-8A~4.3.0.201712201450
Architecture test passed; this package needs to be built on amd64
dpkg-source: Warnung: unsigniertes Quellpaket wird extrahiert (/var/univention/buildsystem2/apt/ucs_4.3-0/source/cups_2.2.1-8A~4.3.0.201712201450.dsc)
dpkg-source: Information: cups wird nach cups-2.2.1 extrahiert
dpkg-source: Fehler: unerkannte Datei für ein v2.0-Quellpaket: cups_2.2.1.orig.tar.gz.asc
/usr/bin/build-package-architecture-ng: Zeile 259: cd: cups-*/debian/..: Datei oder Verzeichnis nicht gefunden


@Philipp: The package cannot be built. There is also no failure email.
Comment 9 Florian Best univentionstaff 2017-12-20 15:00:17 CET
Maybe an error in the patch-migration for "cups"? Bug #45709 / Bug #45642.
Comment 10 Philipp Hahn univentionstaff 2017-12-20 16:52:30 CET
(In reply to Florian Best from comment #8)
> ladda: ~ 14:56:03(0 J0 !32758 #5)$ build-package-architecture-ng -r 4.3 -p
> cups
> 
> Latest version:
> /var/univention/buildsystem2/apt/ucs_4.3-0/source/cups_2.2.1-8A~4.3.0.
> 201712201450.dsc 2.2.1-8A~4.3.0.201712201450
> Architecture test passed; this package needs to be built on amd64
> dpkg-source: Warnung: unsigniertes Quellpaket wird extrahiert
> (/var/univention/buildsystem2/apt/ucs_4.3-0/source/cups_2.2.1-8A~4.3.0.
> 201712201450.dsc)
> dpkg-source: Information: cups wird nach cups-2.2.1 extrahiert
> dpkg-source: Fehler: unerkannte Datei für ein v2.0-Quellpaket:
> cups_2.2.1.orig.tar.gz.asc
> /usr/bin/build-package-architecture-ng: Zeile 259: cd: cups-*/debian/..:
> Datei oder Verzeichnis nicht gefunden
> 
> 
> @Philipp: The package cannot be built. There is also no failure email.

See Bug #45804, ask Arvid.
Comment 11 Florian Best univentionstaff 2017-12-20 16:55:11 CET

*** This bug has been marked as a duplicate of bug 45804 ***
Comment 12 Arvid Requate univentionstaff 2017-12-20 17:06:48 CET
dpkg-source: Fehler: unerkannte Datei für ein v2.0-Quellpaket: cups_2.2.1.orig.tar.gz.asc

english: error: unrecognized file for a v2.0 source package: cups_2.2.1.orig.tar.gz.asc


dpkg-dev is too old on the build systems. Already for the i386 build I had to manually remove the .asc signature from the .dsc files (for cups and exim4). But they where added again to the generated source package (how?). I've rebuilt the cups package now on ladda.
Comment 13 Florian Best univentionstaff 2017-12-20 18:23:35 CET
Looks better now. I can now install the packages with:
univention-install --yes chromium-browser chromedriver chromium

If still fails if I only type in:
univention-install --yes chromium-browser chromedriver

(This is what utils.sh in ucs-test does)

Fails:
 chromedriver : Hängt ab von: chromium-driver (= 62.0.3202.89-1~deb9u1) soll aber nicht installiert werden
 chromium-browser : Hängt ab von: chromium (>= 10) soll aber nicht installiert werden

I adjusted utils.sh, so that it at least works in our nighly jenkins tests.
I don't know if this is correct but it works.
Comment 14 Philipp Hahn univentionstaff 2017-12-21 08:23:13 CET
(In reply to Arvid Requate from comment #12)
> english: error: unrecognized file for a v2.0 source package:
> cups_2.2.1.orig.tar.gz.asc
> 
> dpkg-dev is too old on the build systems. Already for the i386 build I had
> to manually remove the .asc signature from the .dsc files (for cups and
> exim4). But they where added again to the generated source package (how?).

1. The source package is extracted on dimma (UCS-3.2 = Debian 6) using dpkg-1.15.8
2. Our patches get applied on dimma
3. Change into pbuilder of UCS-4.3 = Debian 9, using dpkg-1.18.24
   - dpkg-buildpackage generates new source and binary packages
   - the .asc file is still there!
   - the new dpkg finds the .asc again and includes it into the .dsc
4. ladda (UCS-3.2 = Debian 6) extracts that new .dsc
   - fails again with dpkg-1.15.8
Comment 15 Arvid Requate univentionstaff 2017-12-21 16:58:09 CET
Ok, I've removed the asc file too, so it shouldn't happen again.
Comment 16 Florian Best univentionstaff 2018-01-22 19:07:34 CET
OK: chromedriver installation succeeds
interim version, no changelog required.
Comment 17 Stefan Gohmann univentionstaff 2018-03-14 14:38:02 CET
UCS 4.3 has been released:
 https://docs.software-univention.de/release-notes-4.3-0-en.html
 https://docs.software-univention.de/release-notes-4.3-0-de.html

If this error occurs again, please use "Clone This Bug".