当我尝试deepin
在 Ubuntu 20.04 上安装时出现以下错误:
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.10.4-051004-generic
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125b-2.fw for module r8169
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_dmc_ver2_08.bin for module i915
W: plymouth module (/usr/lib/x86_64-linux-gnu/plymouth//ubuntudde-text.so) missing, skipping that theme.
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/vgubuntu-swap_1)
I: Set the RESUME variable to override this.
Processing triggers for resolvconf (1.82) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu2) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Errors were encountered while processing:
deepin-anything-dkms
dde-file-manager
ubuntudde-dde
deepin-anything-server
ubuntudde-desktop
ubuntudde-dde-extras
E: Sub-process /usr/bin/dpkg returned an error code (1)
我该如何解决?
我尝试了这个:
apt-cache policy deepin-anything-dkms dde-file-manager ubuntudde-dde deepin-anything-server ubuntudde-desktop ubuntudde-dde-extras
它给了我:
deepin-anything-dkms:
Installed: 5.0.1-4
Candidate: 5.0.1-4
Version table:
*** 5.0.1-4 500
500 ://ppa.launchpad.net/ubuntudde-dev/stable/ubuntu focal/main amd64 Packages
500 ://ppa.launchpad.net/ubuntudde-dev/stable/ubuntu focal/main i386 Packages
100 /var/lib/dpkg/status
dde-file-manager:
Installed: 5.0.0-2
Candidate: 5.0.0-2
Version table:
*** 5.0.0-2 500
500 ://ppa.launchpad.net/ubuntudde-dev/stable/ubuntu focal/main amd64 Packages
100 /var/lib/dpkg/status
ubuntudde-dde:
Installed: 1.1
Candidate: 1.1
Version table:
*** 1.1 500
500 ://ppa.launchpad.net/ubuntudde-dev/stable/ubuntu focal/main amd64 Packages
500 ://ppa.launchpad.net/ubuntudde-dev/stable/ubuntu focal/main i386 Packages
100 /var/lib/dpkg/status
deepin-anything-server:
Installed: 5.0.1-4
Candidate: 5.0.1-4
Version table:
*** 5.0.1-4 500
500 ://ppa.launchpad.net/ubuntudde-dev/stable/ubuntu focal/main amd64 Packages
100 /var/lib/dpkg/status
ubuntudde-desktop:
Installed: 1.0-10
Candidate: 1.0-10
Version table:
*** 1.0-10 500
500 ://ppa.launchpad.net/ubuntudde-dev/stable/ubuntu focal/main amd64 Packages
100 /var/lib/dpkg/status
ubuntudde-dde-extras:
Installed: 1.0.1
Candidate: 1.0.1
Version table:
*** 1.0.1 500
500 ://ppa.launchpad.net/ubuntudde-dev/stable/ubuntu focal/main amd64 Packages
500 ://ppa.launchpad.net/ubuntudde-dev/stable/ubuntu focal/main i386 Packages
100 /var/lib/dpkg/status
我试过 :sudo apt-get install –f
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package –f
请有人帮助我解决这个问题...
答案1
我认为我已经解决了这个问题。我发现了网站(中文,但你可以用谷歌翻译),似乎有一个解决方案。这与 deepin-anything-dkms 包的问题有关。
在此链接中,它要求您下载内核版本 5.8,但我不需要这样做来解决问题。重点关注最后的说明:
询问后,应该是deeping-anything( https://github.com/linuxdeepin/deepin-anything) 内核模块有问题,新版本内核改变了结构,导致编译不成功,直接修改其源代码
sudo gedit /var/lib/dkms/deepin-anything/0.0/source/vfs_change.c
修改128行的time_t为ktime_t
将第336至343行修改如下:
static struct proc_ops procfs_ops = { .proc_open = open_vfs_changes, .proc_read = read_vfs_changes, .proc_ioctl = ioctl_vfs_changes, .proc_lseek = no_llseek, //.llseek = generic_file_llseek, .proc_release = release_vfs_changes, };
通过编译就可以成功安装5.8内核。
自己留着吧,或者别人可能需要。执行完这些简单的步骤后,我执行了以下命令:
sudo apt install sudo apt install deepin-anything-dkms
这个问题似乎已经解决了。
答案2
This worked for me.
My kernel version was 5.13
I updated it to latest.
Bang .... After reboot everything went fine.
我按照这个答案来更新内核 - https://askubuntu.com/a/1388117/1556074