DisplayLink Forum

DisplayLink Forum (https://displaylink.org/forum/index.php)
-   Linux and Open Source (https://displaylink.org/forum/forumdisplay.php?f=29)
-   -   Bug report DisplayLink 5.3 on Ubuntu 20.04 (https://displaylink.org/forum/showthread.php?t=67093)

Niels Trulson 05-05-2020 12:13 PM

Bug report DisplayLink 5.3 on Ubuntu 20.04
 
Hi,

I tried to install DisplayLink 5.3 on Ubuntu 20.04 and I encountered a bug that I manage to resolve and I wanted to report it so that you guys could fix it

I downloaded this version https://www.displaylink.com/downloads/file?id=1574

After executing displaylink-driver-5.3.0.28.run i got the following error:
Quote:

Unsatisfied dependencies. Missing component: libdrm
This is a fatal error, cannot install DisplayLink
after digging into the script I discovered the --keep option so that the created diplaylink-driver-5.3.0.28 directory wouldn't be erased

The problem was coming from the script located in the previously mentioned directory: displaylink-installer.sh

Even if the dependency libdrm-dev was installed, the script would tell me it wasn't here and therefore exiting the script with code 1
The problem came from this line:
Code:

apt list -qq --installed libdrm-dev 2>/dev/null | grep -q installed || missing_requirement "libdrm"
located in the function check_requirements() (line 564)
This line
Code:

apt list -qq --installed libdrm-dev 2>/dev/null | grep -q installed
should return 0 as the dependency was correctly installed on my compuer, but it returned 1. Why ? Because my ubuntu is set in french and therefore
Code:

grep installed
wouldn't work as "installed" is written in french (the word is "installé").

I simply commented the line exit 1 (line 505)
Code:

missing_requirement()
{
  echo "Unsatisfied dependencies. Missing component: $1." >&2
  echo "This is a fatal error, cannot install $PRODUCT." >&2
  #exit 1
}

in the missing_requirement() function so the script wouldn't stop. This is not a suitable correction. But in my case I could debug it like this as I was sure that the dependency libdrm-dev was installed

Best Regards,
Niels


All times are GMT. The time now is 03:00 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.