卸载 ax88179 包

卸载 ax88179 包

我已经从 PPA 安装了 ax88179 包(因为 ax88179 驱动程序不在 3.8 内核中)。但现在我想安装内核 3.11.6,并且此模块已包含在此处。因此,我想从包中卸载该模块,但此操作失败,并显示以下错误消息

The following packages will be REMOVED:
ax88179*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 313 kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 202833 files and directories currently installed.)
Removing ax88179 ...
Error! There are no instances of module: ax88179_178a
1.6.0 located in the DKMS tree.
rm: cannot remove ‘/usr/src/AX88179_178A_LINUX_DRIVER_v1.6.0_SOURCE’: 
No such file or directory dpkg: error processing ax88179 (--purge):
subprocess installed pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already

ln: failed to create symbolic link ‘/usr/src/AX88179_178A_LINUX_DRIVER_v1.7.0_SOURCE’: File exists
Error! DKMS tree already contains: ax88179_178a-1.7.0
You cannot add the same module/version combo more than once.
Module ax88179_178a/1.7.0 already built for kernel 3.8.0-32-generic/4
Module ax88179_178a/1.7.0 already installed on kernel 3.8.0-32-generic/x86_64
Errors were encountered while processing:
 ax88179
E: Sub-process /usr/bin/dpkg returned an error code (1)

它抱怨 1.6 和 1.7 版本。几天前我已更新到 1.7。--force 也无济于事。我只想摆脱它,因为当我运行 3.11.6 时,版本会互相干扰。

答案1

我已经部分解决了这个问题,至少安装的内核不再使用 DKMS 模块。我仍然无法删除该软件包,但这不再重要,至少我已经删除了 DKMS 模块。

我通过发出命令删除了该模块sudo dkms remove -m ax88179_178a -v 1.7.0 --all,并且该模块已从所有已安装的内核中删除。

答案2

尝试更新到最新版本然后将其删除。1.7 相当旧(最新版本是 1.12),我记得它有一些安装/升级问题。如果您不再使用存储库,您仍然可以直接从 PPA 页面下载最新版本: https://launchpad.net/~qji/+archive/ubuntu/ax88179/+packages

相关内容