Ubuntu 中的 Dell D6000 扩展坞问题

Ubuntu 中的 Dell D6000 扩展坞问题

我谦虚地寻求有关 DEll D6000 扩展坞的帮助。

我无法安装 displaylink-drivers,因为它与 evdi install 冲突。我无法卸载 evdi,因为它似乎没有安装。

Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:    22.04
Codename:   jammy

我从AI处得到以下信息:

看起来是在安装 displaylink-driver 软件包时出错了,因为它与 evdi 软件包冲突。要解决此问题,您可以尝试以下步骤: 删除有问题的软件包:sudo dpkg -r evdi sudo dpkg -r displaylink-driver 更新软件包管理器:sudo apt update 重新安装 displaylink-driver 软件包:sudo apt install displaylink-driver 按照这些步骤,您应该能够顺利安装 displaylink-driver 软件包,而不会出现任何冲突。

======

我已经尝试了上述方法,但没有效果。:

peter@pzx:~$ sudo dpkg -r evdi
dpkg: warning: ignoring request to remove evdi which isn't installed
peter@pzx:~$ 

======

以下是尝试安装 displaylink-driver 的输出:

peter@pzx:~$ 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
The following NEW packages will be installed:
displaylink-driver evdi
0 upgraded, 2 newly installed, 0 to remove and 45 not upgraded.
Need to get 0 B/6,318 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 215936 files and directories currently installed.)
Preparing to unpack .../evdi_1.14.1-7_amd64.deb ...
Error: Another EVDI distribution detected
dpkg: error processing archive /var/cache/apt/archives/evdi_1.14.1-7_amd64.deb (--unpack):
new evdi package pre-installation script subprocess returned error exit status
1
Preparing to unpack .../displaylink-driver_5.8.0-33_amd64.deb ...
dpkg: error processing archive /var/cache/apt/archives/displaylink-driver_5.8.0-
33_amd64.deb (--unpack):
new displaylink-driver package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/evdi_1.14.1-7_amd64.deb
/var/cache/apt/archives/displaylink-driver_5.8.0-33_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
peter@pzx:~$

答案1

我们需要做的是修复“错误:检测到另一个 EVDI 分布”:

  1. 使用以下命令确定是否有任何先前的安装:dpkg -S /opt/displaylink。如果出现“未找到匹配模式的路径”,则跳至步骤 3
  2. sudo apt purge package_name如果发现
  3. sudo rm -rf /opt/displaylink/
  4. 重试安装

造成这种情况的原因很简单。查看“安装前脚本”(preinst),evdi_1.14.1-7_amd64.deb您会发现以下内容:

#!/bin/bash

if [[ -e /opt/displaylink/evdi.tar.gz ]]
then
  echo >&2 "Error: Another EVDI distribution detected"
  exit 1
fi

答案2

该问题已解决如下:

sudo apt remove displaylink-driver 
sudo apt update 
sudo apt install dkms libdrm-dev 
sudo apt autoremove 
sudo ./displaylink-driver-5.8.0-63.33.run 
reboot 
sudo ./displaylink-driver-5.8.0-63.33.run

相关内容