Fedict / eid-mw

eID Middleware (main repository)
GNU Lesser General Public License v3.0
198 stars 79 forks source link

eid-viewer: error while loading shared libraries: libeidviewer.so.0 #185

Closed hensjl closed 1 year ago

hensjl commented 1 year ago
$ eid-viewer 
eid-viewer: error while loading shared libraries: libeidviewer.so.0: cannot open shared object file: No such file or directory

$ cat /etc/issue
Debian GNU/Linux bookworm/sid \n \l

42 ist a very same problem but is old and closed.

You should now have beid libraries in /usr/local/lib and one beid executable in /usr/local/bin

I have but libeid*, not beid*.

$ ls -al /usr/local/lib/libeid*
-rw-r--r-- 1 root root 15563840 2023-03-17 15:03 /usr/local/lib/libeidviewer.a
-rwxr-xr-x 1 root root     1062 2023-03-17 15:03 /usr/local/lib/libeidviewer.la
lrwxrwxrwx 1 root root       21 2023-03-17 15:03 /usr/local/lib/libeidviewer.so -> libeidviewer.so.0.1.0
lrwxrwxrwx 1 root root       21 2023-03-17 15:03 /usr/local/lib/libeidviewer.so.0 -> libeidviewer.so.0.1.0
-rwxr-xr-x 1 root root  5819864 2023-03-17 15:03 /usr/local/lib/libeidviewer.so.0.1.0

Please verify that /usr/local/lib is listed in /etc/ld.so.conf (or in a file under /etc/ld.so.conf.d). If not, then this is why your dynamic linker can't find the library; you'll need to add it.

$ cat /etc/ld.so.conf.d/libc.conf 
# libc default configuration
/usr/local/lib

There is no packages for now in https://files.eid.belgium.be/debian/dists/ for debian 12 bookworm or what ?

Thank you for some help.

hensjl commented 1 year ago

Even if there no package for debian 12 bookworm, today I have installed eid-archive_2022.6_all.deb

$ cat /etc/apt/sources.list.d/eid.list 
...
deb https://files.eid.belgium.be/debian buster main

changed buster to bookworm is useless

deb https://files.eid.belgium.be/debian bookworm main
$ sudo apt update
...
E: The repository 'https://files.eid.belgium.be/debian bookworm Release' does not have a Release file.
...

changed buster to bullseye, the last know debian version.

$ sudo apt update
...
Get:4 https://files.eid.belgium.be/debian bullseye InRelease [4.659 B]                            
Get:5 https://files.eid.belgium.be/debian bullseye/main amd64 Packages [3.853 B]
...
All packages are up to date.
$ sudo apt-cache policy eid-viewer eid-mw
eid-viewer:
  Installed: (none)
  Candidate: 5.1.10v5.1.10-0deb11-1
  Version table:
     5.1.10v5.1.10-0deb11-1 500
        500 https://files.eid.belgium.be/debian bullseye/main amd64 Packages
eid-mw:
  Installed: (none)
  Candidate: 5.1.10v5.1.10-0deb11-1
  Version table:
     5.1.10v5.1.10-0deb11-1 500
        500 https://files.eid.belgium.be/debian bullseye/main amd64 Packages
$ sudo apt install eid-mw
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  beid-mozilla-extension beid-mozilla-webext libacsccid1 libbeidpkcs11-0 libbeidpkcs11-bin libccid libnss3-tools pcscd
Suggested packages:
  pcmciautils
The following NEW packages will be installed:
  beid-mozilla-extension beid-mozilla-webext eid-mw libacsccid1 libbeidpkcs11-0 libbeidpkcs11-bin libccid libnss3-tools pcscd
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 1.774 kB of archives.
After this operation, 6.599 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://deb.debian.org/debian bookworm/main amd64 libccid amd64 1.5.2-1 [367 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64 libacsccid1 amd64 1.1.8-1 [89,3 kB]
Get:3 http://deb.debian.org/debian bookworm/main amd64 pcscd amd64 1.9.9-1 [100 kB]
Get:4 https://files.eid.belgium.be/debian bullseye/main amd64 libbeidpkcs11-bin amd64 5.1.10v5.1.10-0deb11-1 [12,7 kB]
Get:5 http://deb.debian.org/debian bookworm/main amd64 libnss3-tools amd64 2:3.87.1-1 [1.054 kB]
Get:6 https://files.eid.belgium.be/debian bullseye/main amd64 libbeidpkcs11-0 amd64 5.1.10v5.1.10-0deb11-1 [134 kB]
Get:7 https://files.eid.belgium.be/debian bullseye/main amd64 beid-mozilla-webext all 5.1.10v5.1.10-0deb11-1 [12,8 kB]
Get:8 https://files.eid.belgium.be/debian bullseye/main amd64 beid-mozilla-extension all 5.1.10v5.1.10-0deb11-1 [2.248 B]
Get:9 https://files.eid.belgium.be/debian bullseye/main amd64 eid-mw amd64 5.1.10v5.1.10-0deb11-1 [1.848 B]
Fetched 1.774 kB in 0s (4.377 kB/s)                            
Selecting previously unselected package libccid.
(Reading database ... 227819 files and directories currently installed.)
Preparing to unpack .../0-libccid_1.5.2-1_amd64.deb ...
Unpacking libccid (1.5.2-1) ...
Selecting previously unselected package libacsccid1.
Preparing to unpack .../1-libacsccid1_1.1.8-1_amd64.deb ...
Unpacking libacsccid1 (1.1.8-1) ...
Selecting previously unselected package pcscd.
Preparing to unpack .../2-pcscd_1.9.9-1_amd64.deb ...
Unpacking pcscd (1.9.9-1) ...
Selecting previously unselected package libnss3-tools.
Preparing to unpack .../3-libnss3-tools_2%3a3.87.1-1_amd64.deb ...
Unpacking libnss3-tools (2:3.87.1-1) ...
Selecting previously unselected package libbeidpkcs11-bin.
Preparing to unpack .../4-libbeidpkcs11-bin_5.1.10v5.1.10-0deb11-1_amd64.deb ...
Unpacking libbeidpkcs11-bin (5.1.10v5.1.10-0deb11-1) ...
Selecting previously unselected package libbeidpkcs11-0:amd64.
Preparing to unpack .../5-libbeidpkcs11-0_5.1.10v5.1.10-0deb11-1_amd64.deb ...
Unpacking libbeidpkcs11-0:amd64 (5.1.10v5.1.10-0deb11-1) ...
Selecting previously unselected package beid-mozilla-webext.
Preparing to unpack .../6-beid-mozilla-webext_5.1.10v5.1.10-0deb11-1_all.deb ...
Unpacking beid-mozilla-webext (5.1.10v5.1.10-0deb11-1) ...
Selecting previously unselected package beid-mozilla-extension.
Preparing to unpack .../7-beid-mozilla-extension_5.1.10v5.1.10-0deb11-1_all.deb ...
Unpacking beid-mozilla-extension (5.1.10v5.1.10-0deb11-1) ...
Selecting previously unselected package eid-mw.
Preparing to unpack .../8-eid-mw_5.1.10v5.1.10-0deb11-1_amd64.deb ...
Unpacking eid-mw (5.1.10v5.1.10-0deb11-1) ...
Setting up libccid (1.5.2-1) ...
Setting up pcscd (1.9.9-1) ...
Setting up libnss3-tools (2:3.87.1-1) ...
Setting up libacsccid1 (1.1.8-1) ...
Setting up libbeidpkcs11-bin (5.1.10v5.1.10-0deb11-1) ...
Setting up libbeidpkcs11-0:amd64 (5.1.10v5.1.10-0deb11-1) ...
Setting up beid-mozilla-webext (5.1.10v5.1.10-0deb11-1) ...
Setting up beid-mozilla-extension (5.1.10v5.1.10-0deb11-1) ...
Setting up eid-mw (5.1.10v5.1.10-0deb11-1) ...
Processing triggers for libc-bin (2.36-8) ...
Processing triggers for man-db (2.11.2-2) ...
$ sudo apt install eid-viewer
Reading package lists... Done
Building dependency tree... Done
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:
 eid-viewer : Depends: libeidviewer0 (>= 5.1.10v5.1.10-0deb11) but it is not going to be installed
              Depends: libssl1.1 (>= 1.1.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

No libssl1.1 exist for bookworm. https://packages.debian.org/search?keywords=libssl1.1

got bullseye version https://packages.debian.org/bullseye/amd64/libssl1.1/download

$ sudo dpkg -i Downloads/libssl1.1_1.1.1n-0+deb11u3_amd64.deb 
Selecting previously unselected package libssl1.1:amd64.
(Reading database ... 227941 files and directories currently installed.)
Preparing to unpack .../libssl1.1_1.1.1n-0+deb11u3_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1n-0+deb11u3) ...
Setting up libssl1.1:amd64 (1.1.1n-0+deb11u3) ...
Processing triggers for libc-bin (2.36-8) ...
$ sudo apt install eid-viewer
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libeidviewer0
The following NEW packages will be installed:
  eid-viewer libeidviewer0
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 330 kB of archives.
After this operation, 1.005 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 https://files.eid.belgium.be/debian bullseye/main amd64 libeidviewer0 amd64 5.1.10v5.1.10-0deb11-1 [72,1 kB]
Get:2 https://files.eid.belgium.be/debian bullseye/main amd64 eid-viewer amd64 5.1.10v5.1.10-0deb11-1 [258 kB]
Fetched 330 kB in 0s (956 kB/s)     
Selecting previously unselected package libeidviewer0:amd64.
(Reading database ... 227951 files and directories currently installed.)
Preparing to unpack .../libeidviewer0_5.1.10v5.1.10-0deb11-1_amd64.deb ...
Unpacking libeidviewer0:amd64 (5.1.10v5.1.10-0deb11-1) ...
Selecting previously unselected package eid-viewer.
Preparing to unpack .../eid-viewer_5.1.10v5.1.10-0deb11-1_amd64.deb ...
Unpacking eid-viewer (5.1.10v5.1.10-0deb11-1) ...
Setting up libeidviewer0:amd64 (5.1.10v5.1.10-0deb11-1) ...
Setting up eid-viewer (5.1.10v5.1.10-0deb11-1) ...
Processing triggers for libglib2.0-0:amd64 (2.74.6-1) ...
Processing triggers for libc-bin (2.36-8) ...
Processing triggers for mailcap (3.70+nmu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...

All seems ok...

Plugin my card reader with my card in it.

[ 9042.232003] usb 1-1: new high-speed USB device number 6 using xhci_hcd
[ 9042.420569] usb 1-1: New USB device found, idVendor=0bda, idProduct=0165, bcdDevice=61.23
[ 9042.420593] usb 1-1: New USB device strings: Mfr=1, Product=6, SerialNumber=3
[ 9042.420603] usb 1-1: Product: Smart Card Reader Interface
[ 9042.420611] usb 1-1: Manufacturer: Generic
[ 9042.420617] usb 1-1: SerialNumber: 20070818000000000
$ eid-viewer
** Message: 12:31:11.379: readers changed
** Message: 12:31:32.502: Certificate validation failed: no CA certificate found

do not work....

$ sudo apt-cache rdepends libssl1.1
libssl1.1
Reverse Depends:
  eid-viewer
  libeidviewer0
$ sudo apt-cache depends libssl1.1
libssl1.1
  Depends: libc6
 |Depends: debconf
  Depends: <debconf-2.0>
    cdebconf
    debconf
  Breaks: isync
  Breaks: lighttpd
  Breaks: <python-boto>
  Breaks: <python-httplib2>
  Breaks: <python-imaplib2>
  Breaks: python3-boto
  Breaks: python3-imaplib2
hensjl commented 1 year ago

Ok it's now working.

Removed buster version because libssl1.1 has some breaks.

$ sudo dpkg -r eid-viewer
$ sudo dpkg -r eid-mw
$ sudo dpkg -r libeidviewer0
$ sudo dpkg -r libssl1.1

tried reinstalling compiled source.

~/src/eid-mw-5.1.4-v5.1.4$ sudo make install
$ eid-viewer 
** Message: 11:25:31.004: Certificate validation failed: no CA certificate found

Do not work but do not complain about missing library anymore (maybe some residuals ?) Do complain only about missing certificate

The solution found there https://answers.launchpad.net/ubuntu/+question/701636

$ sudo systemctl start pcscd
$ eid-viewer 
** Message: 11:25:31.004: Certificate validation failed: no CA certificate found
** Message: 11:25:31.427: readers changed

(eid-viewer:4632): GLib-GObject-CRITICAL **: 11:25:34.283: g_object_setv: assertion 'G_IS_OBJECT (object)' failed

** (eid-viewer:4632): WARNING **: 11:25:37.565: Not checking OCSP URL against allowlist: check disabled in configuration

** (eid-viewer:4632): WARNING **: 11:25:37.567: Not checking OCSP URL against allowlist: check disabled in configuration

** (eid-viewer:4632): WARNING **: 11:25:37.745: Not checking OCSP URL against allowlist: check disabled in configuration

** (eid-viewer:4632): WARNING **: 11:25:37.745: Not checking OCSP URL against allowlist: check disabled in configuration

Some error and warning but the interface show the data from my identity card.

hensjl commented 1 year ago

ALL IS OK Belgium eid on debian 12 bookwom got my id card pin and tested it successfully with eid-viewer and csam. https://eid.belgium.be/

rem: itsme is not linux compatible

yoe commented 1 year ago

Glad to hear you got it sorted.

For clarity, we only officially support released distributions, never pre-releases or rolling releases (like Debian Testing), as explained on our website. As soon as Debian 12 "bullseye" is released, we will create binaries and repositories for that distribution, at which point you will be able to upgrade to those.

There is also an unofficial, not supported version of the eID software for Debian unstable:

deb https://files.eid.belgium.be/debian continuous/sid

which tracks our git master and is therefore bleeding edge, with all lack of guarantees that that implies, but which is directly installable on unstable (and, most of the time, testing).

hensjl commented 1 year ago

Many thanks for this repository.

The residual packages mentioned above and probably essential are:

The following packages were automatically installed and are no longer required:
  beid-mozilla-extension beid-mozilla-webext libbeidpkcs11-0 libbeidpkcs11-bin libnss3-tools