View Single Post
Old 05-05-2020, 12:13 PM   #1
Niels Trulson
Junior Member
 
Join Date: May 2020
Posts: 1
Exclamation 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
Niels Trulson is offline   Reply With Quote