Go Back   DisplayLink Forum > DisplayLink Graphics Technology > Linux and Open Source

Reply
 
Thread Tools Search this Thread Display Modes
Old 05-05-2020, 01: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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:54 PM.


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