Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support Debian GNU/Linux #16

Open
MagicFab opened this issue Dec 11, 2017 · 22 comments
Open

Please support Debian GNU/Linux #16

MagicFab opened this issue Dec 11, 2017 · 22 comments

Comments

@MagicFab
Copy link

MagicFab commented Dec 11, 2017

I previously requested support for Debian Jessie installation (see #3 ).

I'd like to reiterate my request this time to cover Debian and following its releases. Supporting Debian would mean support for all its derivatives would be available, including Devuan, Trisquel and Ubuntu just to name a few.

Ubuntu's default desktop environment in Ubuntu 18.04 LTS will be GNOME again, the same as Debian's (now released, since 2018-04), so this would be a good time to target that. It means desktop support and documentation will be easier to implement and maintain as they should be very close going forward.

Special attention has to be paid to the browser choice (see #14), but Debian and other distributions should carry Firefox ESR for some more time (at least June 2018 or by next ESR release). The official release date for ESR-59 should be in march 2018, meaning it would be available from official packages in Debian around June 2018, typically earlier in Ubuntu. Manual installation is possible and rather easy, it's possible to keep an existing Firefox version with a more recent manually-installed one.

Since Firefox 57 came out (2017-11) many extensions stopped working as XUL is not supported anymore for their development. I believe this also means Open-EID stopped working for anyone that upgraded (see #14 (comment) ), I am not certain. This means Firefox 57 and up should be targeted for proper support.

The Debian Backports repository for the current Debian stable version (Debian 9) could be an option to check which packages more recent version can be used to remain as close as possible to a supported Debian install by using package repositories instead of manual installation or compilation which can break Debian.

@metsma
Copy link
Contributor

metsma commented Dec 11, 2017

Firefox 57 does not provide alternative to load PKCS11 modules with WebExtensions
It will come with FF 58 https://bugzilla.mozilla.org/show_bug.cgi?id=1357391
and is implemented here open-eid/firefox-pkcs11-loader#6.
Signing is not affected by this change.

@explit7
Copy link

explit7 commented Apr 21, 2018

I have Debian 10 (Sid atm.) It would be very good, if it could be supported

@MagicFab
Copy link
Author

Firefox is now at version 59, but is only available when installed manually in Debian.

@explit7 Debian 10 is the current "testing" release, it will include Firefox 59 but not before ~May 2019. It could be a good plan to target that for proper support of Open-EID installation, maunal installation of FF59 in Debian 9 could be an alternative.

@MagicFab
Copy link
Author

MagicFab commented Jan 8, 2019

The last release as of last month has been reported broken (see #36) with several important bugs, it targets Ubuntu 16.04 (LTS), 18.04 (LTS) (64bit), 18.10, Chrome or Firefox (no mention of versions)

ID-software version: 18.12, DigiDoc4 client version: 4.2.0.43, released 03.12.2018

Debian Stable now has support for Firefox-ESR (60.4 as of today), no need for backports or external sources.

According to information at https://www.ria.ee/en/state-information-system/eid/digidoc-software.html :

Installation of DigiDoc software

The following will be installed into your computer during the installation of the DigiDoc software:

ID-card application DigiDoc4 Client, timestamping application TeRa.

In 2018, DigiDoc4, the new ID-card software that combines the former three applications in one utility, was taken into use. This means that only one application will be installed into your computer during the installation of the software. As of June 2018, DigiDoc3 will automatically update into DigiDoc4.

@zsoltsandor
Copy link

I revisit this issue, because I am considering joining the e-Estonians.
I am using Kali, which is obviously not the most common Debian derivative, but supporting Testing, or at least Sid would also mean support for Parrot OS and PureOS Byzantium.
Using the candidate/sid repo for the Belgian eID provides the same version as what is currently available for Ubuntu 20.04, and installs without an issue: deb https://files.eid.belgium.be/debian/ candidate/sid main
Estonian eID repos for Ubuntu versions don't seem to work properly. The middleware package gets broken, and open-eid metapackage breaks too.

@kali-gandaki
Copy link

Hi, I came up this issue as repo for ubuntu hirsute/focal won't install in debian 11. So I spent this morning packaging for my own use. I hosted it in OBS. If you need it add the following location in sources.list.
deb [signed-by=/usr/share/keyrings/my_obs.gpg] https://download.opensuse.org/repositories/home:/sapanaryal:/openeid/Debian_11/ ./
Don't forget to download release.key file from above mentioned link, convert it to gpg file and add it in /usr/share/keyrings.

Install it by apt-get update && apt-get install open-eid

@maltfield
Copy link

maltfield commented Apr 12, 2022

+1 Please add Debian 11 support.

If you support Debian, then you'll not only support Ubuntu (a downstream derivitative of Debian), but you'll also support countless other downstream derivatives of Debian.

Why not implement it at the source to support more people with the same effort? Please support Debian 11.

@teadur
Copy link

teadur commented Apr 12, 2022

+1 for Debian 11 support

@hanna142x
Copy link

Debian 11 bullseye ships with libxalan-c112, but focal open-eid install wants libxalan-c111 (focal is closest to bullseye).
Fix is to download libxalan-c111 from buster (Debian 10) repo (https://packages.debian.org/buster/amd64/libxalan-c111/download) and install it manually using sudo dpkg -i <package name>

Then edit install-open-eid.sh
after buster section add:

        bullseye)
          add_repository focal
          ;;

After that install-open-eid.sh installs everything needed without a problem. ... and the most important, both Digidoc4 Client and authentication in web using the ID-card works.

@teadur
Copy link

teadur commented Aug 11, 2022

Debian 11 bullseye ships with libxalan-c112, but focal open-eid install wants libxalan-c111 (focal is closest to bullseye). Fix is to download libxalan-c111 from buster (Debian 10) repo (https://packages.debian.org/buster/amd64/libxalan-c111/download) and install it manually using sudo dpkg -i <package name>

Then edit install-open-eid.sh after buster section add:

        bullseye)
          add_repository focal
          ;;

After that install-open-eid.sh installs everything needed without a problem. ... and the most important, both Digidoc4 Client and authentication in web using the ID-card works.

@metsma would pull request doing that be accepted to installer ?

@AlexDaniel
Copy link

AlexDaniel commented Aug 11, 2022

@teadur Ubuntu packages can no longer be installed in debian because debian's dpkg does not support zstd. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892664.

@maltfield
Copy link

Actually, I think we should update this request from "Support Debian" to "Change support from Ubuntu to Debian". Support for open-eid in Ubuntu is already broken. Supporting Debian would require less work and provide support for more users. See also:

Quoting from above ticket

Ubuntu 22.04 is moving away deb packaged Firefox (to snap) and this has other set problems (Sandbox does not allow to communicate with native messaging host and there is currently no workaround, except to install official Firefox/Chrome binary)

Oh man, you're right. When I saw that firefox switched from deb to snap I decided to stop recommending Ubuntu and recommend Mint instead.

snap is a cancer closed-wall garden created by Canonical, and a lot of people are leaving Ubuntu because of this. I highly, highly recommend supporting Debian instead of Ubuntu; you'll support more users, especially as everyone leaves Ubuntu for more libre distros.

Is "supporting Ubuntu only" RIK's requirement? Can it be changed through an enumeration of:

  1. technical documentation of all of the issues with Ubuntu and snaps (Mint has some strong opinions about snaps)
  2. documentation of the market share of Ubuntu declining vs Debian and Debian-derived systems (including Mint) surpassing it
  3. enumeration of all the issues and development hours required to support Ubuntu vs Debian (eg this ticket, your concerns with "native messaging host" support breaking, and others like it)
  4. etc?

I think a very strong argument can be made that switching support of open-eid from Ubuntu to Debian would

  1. Support more users and
  2. Decrease time/costs of supporting those users

@mrts
Copy link

mrts commented Aug 31, 2022

Web eID unofficially supports Debian now (by including Firefox extension XPI), see web-eid/web-eid-app#215.

@kristelmerilain
Copy link
Contributor

We added c111 package into our repo so now you should be able to install ID-software on Debian 11 with install script.

If you use Firefox on Debian then you have to install Web eID extension from Firefox Add-on Store: https://addons.mozilla.org/en-US/firefox/addon/web-eid-webextension/ This will be fixed in the next ID-software release.

@Jalakas
Copy link
Contributor

Jalakas commented Jan 7, 2023

Ubuntu 21.10 switched on compressing Debian packages with Zstd. [1]
Debian is still not supporting Zstd compression. [2]
So packages built from 21.10 on are not usable in Debian.

One solution would be [3] adding this build rule into "debian/rules":
override_dh_builddeb: dh_builddeb -- -Zgzip

  1. https://www.phoronix.com/news/Ubuntu-21.10-Zstd-Debs
  2. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892664
  3. https://stackoverflow.com/questions/71196872/how-do-i-build-a-deb-without-zstd-compression-in-ubuntu-21-10

@pauljamesharper
Copy link

pauljamesharper commented Jul 14, 2023

I can report I am on Debian 12 Bookworm which is the latest stable version and I can connect to the Estonia E-Residency site with the ID, I used the install script and in added Ubuntu Kinetic to the sources.list.d:

deb [signed-by=/usr/share/keyrings/ria-repository.gpg] https://installer.id.ee/media/ubuntu/ kinetic main

OS: Debian GNU/Linux 12 (bookworm) x86_64 
ThinkPad X1 Carbon Gen 1 
Kernel: 6.1.0-10-amd64

@Arszilla
Copy link

Arszilla commented Aug 11, 2023

In my testing, using focal (i.e. the same as bullseye) works for Kali Linux. Thus the script can be modified to the following:

case $distro in
   debian|kali)
      make_warn "Debian is not officially supported"
      echo "### Installing possibly missing https support for APT (apt install apt-transport-https)"
      # Debian lacks https support for apt, by default
      sudo apt install apt-transport-https
      case "$codename" in
         bullseye|kali-rolling)
          make_warn "Debian $codename is not officially supported"
          make_warn "Installing from ubuntu-focal repository"
          add_repository focal
          ;;
         bookworm)
          make_warn "Debian $codename is not officially supported"
          make_warn "Installing from ubuntu-kinetic repository"
          add_repository kinetic
          ;;
        *)
          make_fail "Debian $codename is not officially supported"
          ;;
      esac
      ;;

However, as per open-eid/DigiDoc4-Client#1215, there's a Segmentation Fault occurring in DigiDoc4 client. Not sure what's the cause of this, as the packages used by open-eid are coming from Debian upstream, not from Kali themselves.

However, a few packages are missing, but can be downloaded and installed via Debian's online repository:

@Arszilla
Copy link

Update to my previous reply: The aforementioned Debian packages are not needed anymore. With #120, Kali Linux should work. However, I must address that the use of Ubuntu repositories in Debian and its derivates (such as Kali Linux or Parrot OS) is a big problem, as the use of Ubuntu repositories could break apt in the future.

I highly advise the creation of a Debian-specific repository to allow Debian users to use DigiDoc4/open-eid without worrying if this will break their apt in the future.

@eluuk
Copy link

eluuk commented May 7, 2024

I've used my ID card on Debian for years but signing in browsers (i.e. open-eid and web-eid) has stopped working since the new ID software was released in April 2024 (DigiDoc4, i.e. qdigidoc4 works). The browsers are chromium and firefox-esr and it would suffice if it worked in one of them. I upgraded from buster to bullseye, run the install script, installed browser extensions and it's still not working

I'm investigating this issue further, would appreciate any advice and have some specific questions:

  1. Is the PKCS11 extension still required for FF?
  2. ATM I have both libxalan-c112 and libxalan-c111 installed. Should I remove one of them (and which one)?

@metsma
Copy link
Contributor

metsma commented May 8, 2024

Chromium browser is not supported at this version, you can try use Chrome or modify system by hand (web-eid/web-eid-app#324).
Firefox-esr should be working.

  1. PKCS11 extension is optional because
    a) most authentication is done these days with web-eid and does not require Client Certificate Authentication with TLS
    b) OpenSC has also XDG registration tool that setups the PKCS11 module
  2. I think the other version is needed for libxml-security-c because packages are build on ubuntu and keep compatiblity.
    You can probably remove one if package manager allows it, it should be hard dependency and prevent removing if it is in use.

@eluuk
Copy link

eluuk commented May 23, 2024

More precisely, the errors are as follows:

On seb.ee:

Chromium: error on PIN2:

allkirjastamine ebaõnnestus. palun sulgege kõik veebilehitseja aknad ja sisenege uuesti internetipanka. vea kordumisel kontrollige, kas veebilehitseja allkirjastamise mooduli kasutamine on lubatud. juhised leiate veebilehelt id.ee > abikeskus

FF ESR: error on primary authentication (kasutajatunnus before PIN1):

ID-kaardiga sisenemine ebaõnnestus. Palun veenduge, et ID-kaart on korrektselt lugejas. Sulgege kõik brauseri aknad ja proovige seejärel uuesti.

On eesti.ee:

Chromium: error on PIN1:

Kasutaja tuvastamine ebaõnnestus. Palun uuendage ID-tarkvara id.ee veebilehelt ja järgige seal kirjeldatud veebibrauseri seadistamise juhiseid. Uuendamata ID-tarkvaraga ei ole võimalik ID-kaardiga sisse logida Riigi autentimisteenuse kaudu.

FF ESR: PIN1 works (no PIN2 authentication there)

@mrts
Copy link

mrts commented Jul 15, 2024

Chromium support will come in web-eid/web-eid-app#324.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests