无法从 Synaptics 安装 Displaylink 驱动程序https://www.synaptics.com/products/displaylink-graphics/downloads/ubuntu
下面是一个警告信息dpkg: warning: files list file for package 'libc-bin' missing; assuming package has no files currently installed
随后出现 make 中的第一个错误:bad exit status: 2
sudo apt install displaylink-driver Reading package lists... Done
Building dependency tree... Done Reading state information... Done The
following additional packages will be installed: evdi libdrm-dev
libpciaccess-dev The following NEW packages will be installed:
displaylink-driver evdi libdrm-dev libpciaccess-dev 0 to upgrade, 4 to
newly install, 0 to remove and 1 not to upgrade. Need to get 0 B/5,452
kB of archives. After this operation, 1,397 kB of additional disk
space will be used. Do you want to continue? [Y/n] y Selecting
previously unselected package libpciaccess-dev:amd64. dpkg: warning:
files list file for package 'libc-bin' missing; assuming package has
no files currently installed (Reading database ... 222433 files and
directories currently installed.) Preparing to unpack
.../libpciaccess-dev_0.16-3_amd64.deb ... Unpacking
libpciaccess-dev:amd64 (0.16-3) ... Selecting previously unselected
package libdrm-dev:amd64. Preparing to unpack
.../libdrm-dev_2.4.113-2~ubuntu0.22.04.1_amd64.deb ... Unpacking
libdrm-dev:amd64 (2.4.113-2~ubuntu0.22.04.1) ... Selecting previously
unselected package evdi. Preparing to unpack
.../evdi_1.13.1-18_amd64.deb ... Unpacking evdi (1.13.1-18) ...
Selecting previously unselected package displaylink-driver. Preparing
to unpack .../displaylink-driver_5.7.0-129_amd64.deb ... Unpacking
displaylink-driver (5.7.0-129) ... Setting up libpciaccess-dev:amd64
(0.16-3) ... Setting up libdrm-dev:amd64 (2.4.113-2~ubuntu0.22.04.1)
... Setting up evdi (1.13.1-18) ... Creating symlink
/var/lib/dkms/evdi/1.13.1/source -> /usr/src/evdi-1.13.1
Kernel preparation unnecessary for this kernel. Skipping...
Building module: cleaning build area... make -j4
KERNELRELEASE=5.15.0-78-generic all
INCLUDEDIR=/lib/modules/5.15.0-78-generic/build/include
KVERSION=5.15.0-78-generic DKMS_BUILD=1...(bad exit status: 2) ERROR:
Cannot create report: [Errno 17] File exists:
'/var/crash/evdi.0.crash' Error! Bad return status for module build on
kernel: 5.15.0-78-generic (x86_64) Consult
/var/lib/dkms/evdi/1.13.1/build/make.log for more information. dpkg:
error processing package evdi (--configure): installed evdi package
post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of displaylink-driver:
displaylink-driver depends on evdi (>= 1.13.1); however: Package
evdi is not configured yet. displaylink-driver depends on evdi (<<
1.14.0); however: Package evdi is not configured yet.
dpkg: error processing package displaylink-driver (--configure):
dependency problems - leaving unconfigured No apport report written
because the error message indicates its a followup error from a
previous failure.
Processing triggers for man-db (2.10.2-1) ... Errors were
encountered while processing: evdi displaylink-driver E: Sub-process
/usr/bin/dpkg returned an error code (1)
此安装在另一台 ubuntu 机器上工作正常。怀疑这里的问题出在几个月前我使用sudo ./displaylink-driver-x.x.x.xx.run
安装方法时。那次安装没有成功,我放弃了。
答案1
我不太清楚我的笔记本电脑是如何陷入这种状态的,但evdi-dkms
在尝试了很多方法并不断看到与 EVDI 相关的错误后,安装终于允许 displaylink 安装正常工作。
sudo apt install evdi-dkms
sudo apt install displaylink-driver
此修复是displaylink 论坛上有描述。
答案2
我自己也很难安装。在尝试了所有方法后,我最终决定通过删除已安装的 Displaylink 驱动程序和 evdi 来撤销一切(你可以在这里找到帮助如何卸载 DisplayLink Ubuntu 软件)
然后我按照 Synaptics 关于如何安装独立安装程序的说明从头开始安装所有内容(您可以在此处找到安装程序Ubuntu 驱动程序下载)
只需按照此处的说明操作即可:如何在旧版 Ubuntu 上安装 DisplayLink 软件
安装后,我需要在 BIOS 中添加 MOK 密钥以实现安全启动(如果需要添加,安装本身会指导您),现在一切正常。
我希望这有帮助。