deepin-anything-dkms 错误

deepin-anything-dkms 错误

2 天前我尝试安装 DDE(深度桌面环境)。它没有完成,现在每次我尝试安装某些东西时都会出现此错误。

翻译:处理时发现错误:

发生了什么事?我该怎么办?编辑:它还向我提供了以下消息

完成。正在加载新的 deepin-anything-0.0 DKMS 文件... 为 5.8.0-50-generic 构建 为 5.8.0-50-generic 构建初始模块 错误:无法创建报告:[Errno 17] 文件存在:'/var/crash/deepin-anything-dkms.0.crash' 错误!内核上模块构建的返回状态错误:5.8.0-50-generic (x86_64) 有关更多信息,请参阅 /var/lib/dkms/deepin-anything/0.0/build/make.log。

编辑2:

On /var/lib/dkms/deepin-anything/0.0/build/make.log it shows the following code
DKMS make.log for deepin-anything-0.0 for kernel 5.8.0-50-generic (x86_64)
mar 11 may 2021 13:01:17 PDT
make: se entra en el directorio '/usr/src/linux-headers-5.8.0-50-generic'
  CC [M]  /var/lib/dkms/deepin-anything/0.0/build/vfs_utils.o
  CC [M]  /var/lib/dkms/deepin-anything/0.0/build/arg_extractor.o
  CC [M]  /var/lib/dkms/deepin-anything/0.0/build/vfs_change.o
  CC [M]  /var/lib/dkms/deepin-anything/0.0/build/vfs_kretprobes.o
/var/lib/dkms/deepin-anything/0.0/build/vfs_change.c: In function ‘copy_vfs_changes’:
/var/lib/dkms/deepin-anything/0.0/build/vfs_change.c:128:3: error: unknown type name ‘time_t’; did you mean ‘ktime_t’?
  128 |   time_t shifted_secs = vc->ts.tv_sec + hour_shift*3600;
      |   ^~~~~~
      |   ktime_t
/var/lib/dkms/deepin-anything/0.0/build/vfs_change.c: In function ‘init_vfs_changes’:
/var/lib/dkms/deepin-anything/0.0/build/vfs_change.c:348:74: error: passing argument 4 of ‘proc_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  348 |  struct proc_dir_entry* procfs_entry = proc_create(PROCFS_NAME, 0666, 0, &procfs_ops);
      |                                                                          ^~~~~~~~~~~
      |                                                                          |
      |                                                                          struct file_operations *
In file included from /var/lib/dkms/deepin-anything/0.0/build/vfs_change.c:5:
./include/linux/proc_fs.h:108:24: note: expected ‘const struct proc_ops *’ but argument is of type ‘struct file_operations *’
  108 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
      |                        ^~~~~~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:286: /var/lib/dkms/deepin-anything/0.0/build/vfs_change.o] Error 1
make[1]: *** Se espera a que terminen otras tareas....
make: *** [Makefile:1783: /var/lib/dkms/deepin-anything/0.0/build] Error 2
make: se sale del directorio '/usr/src/linux-headers-5.8.0-50-generic'

答案1

好吧,到这个时候,我想楼主可能已经找到解决方案了。无论如何,我也遇到过同样的问题。

@ChanganAuto 的回答间接给出了解决方案。如果你按照他提到的指南链接,在该页面中你会发现(可能是后来添加的)一个部分“修复 deepin-anything-dkms”。

总之,“开箱即用的”UbuntuDDE 在较新的内核(似乎是 20.04)下编译该模块时存在问题。但是,它首先指示的文件也无法解决问题。它预测可能会有更新的版本,因此您只需转到http://ppa.launchpad.net/ubuntudde-dev/stable/ubuntu/pool/main/d/deepin-anything/?C=N;O=A并下载那里的最新版本的 deepin-anything-dkms。

截至今日(2022-03-15),最新版本为http://ppa.launchpad.net/ubuntudde-dev/stable/ubuntu/pool/main/d/deepin-anything/deepin-anything-dkms_5.0.9-1ubuntu1_all.deb. 安装非常顺利。

仍然按照指南所述,下载后,打开终端会话,转到下载的目录并

sudo apt install ./deepin-anything-dkms_<the version you've dowloaded>.deb

此后,它可能会完成安装和设置以前无法安装的其他依赖项,如 deeping-anything-server、dde-file-manager 等。

答案2

知道你遵循了最新指南(在撰写本文时)并假设正确的电力供应协议指南中提到的已经添加,请运行:

sudo apt update
sudo apt install --reinstall ubuntudde-dde

可能需要进行一些清理。在前面的命令之前执行此操作,然后重试:

sudo apt clean
sudo apt autoclean

相关内容