1. 命令行执行sudo apt-get --fix-broken install
2. 回忆是否使用chattr锁住了某些软件的文件
1. 命令行执行sudo apt-get --fix-broken install
2. 回忆是否使用chattr锁住了某些软件的文件
可以在终端使用命令更新 到时候可以看见报错。。。
这个绝对是官方的BUG,我两台电脑都是你这样,更新不了,后来看了论坛的建议,用命令行更新了
sudo apt update && sudo apt upgrade
sudo apt update && sudo apt upgrade看报错
这个绝对是官方的BUG,我两台电脑都是你这样,更新不了,后来看了论坛的建议,用命令行更新了
sudo apt update && sudo apt upgrade
不是bug.....有的更新要用到终端的,或者是之前没有更新完全导致出错
kirin@kirin:~$ sudo apt update && sudo apt upgrade
请输入密码
验证成功
命中:1 https://community-packages.deepin.com/deepin apricot InRelease
忽略:2 https://mirrors.huaweicloud.com/deepin lion InRelease
命中:3 https://community-packages.deepin.com/printer eagle InRelease
忽略:4 http://mirrors.aliyun.com/deepin lion InRelease
忽略:5 https://mirrors.huaweicloud.com/deepin stable InRelease
命中:6 https://community-store-packages.deepin.com/appstore eagle InRelease
命中:7 https://sucdn.jerrywang.top InRelease
错误:8 https://mirrors.huaweicloud.com/deepin lion Release
404 Not Found [IP: 117.78.24.40 443]
错误:9 https://mirrors.huaweicloud.com/deepin stable Release
404 Not Found [IP: 117.78.24.40 443]
错误:10 http://mirrors.aliyun.com/deepin lion Release
404 Not Found [IP: 120.198.189.240 80]
忽略:11 https://mirrors.tuna.tsinghua.edu.cn/debian stretch InRelease
命中:12 https://mirrors.tuna.tsinghua.edu.cn/debian stretch-updates InRelease
命中:13 https://mirrors.tuna.tsinghua.edu.cn/debian stretch-backports InRelease
命中:14 https://mirrors.tuna.tsinghua.edu.cn/debian stretch Release
命中:16 http://packages.microsoft.com/repos/vscode stable InRelease
正在读取软件包列表... 完成
W: https://community-packages.deepin.com/deepin/dists/apricot/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/appstore.gpg are ignored as the file has an unsupported filetype.
E: 仓库 “https://mirrors.huaweicloud.com/deepin lion Release” 不再含有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “https://mirrors.huaweicloud.com/deepin stable Release” 不再含有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: https://community-packages.deepin.com/printer/dists/eagle/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/appstore.gpg are ignored as the file has an unsupported filetype.
E: 仓库 “http://mirrors.aliyun.com/deepin lion Release” 不再含有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: https://community-store-packages.deepin.com/appstore/dists/eagle/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/appstore.gpg are ignored as the file has an unsupported filetype.
W: https://sucdn.jerrywang.top/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/appstore.gpg are ignored as the file has an unsupported filetype.
W: https://mirrors.tuna.tsinghua.edu.cn/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/appstore.gpg are ignored as the file has an unsupported filetype.
W: https://mirrors.tuna.tsinghua.edu.cn/debian/dists/stretch-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/appstore.gpg are ignored as the file has an unsupported filetype.
W: https://mirrors.tuna.tsinghua.edu.cn/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg.d/appstore.gpg are ignored as the file has an unsupported filetype.
W: http://packages.microsoft.com/repos/vscode/dists/stable/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/appstore.gpg are ignored as the file has an unsupported filetype.
kirin@kirin:~$ sudo apt-get --fix-broken install
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 2 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
正在设置 linux-image-5.9.8-amd64-desktop (5.9.8-amd64-desktop-1) ...
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/bbswitch/0.8/source/dkms.conf does not exist.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
update-initramfs: Generating /boot/initrd.img-5.9.8-amd64-desktop
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125b-2.fw for module r8169
cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries
nor crypto modules. If that's on purpose, you may want to uninstall the
'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs
integration and avoid this warning.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes package to fix this.
W: Possible missing firmware /lib/firmware/i915/rkl_dmc_ver2_01.bin for module i915
I: The initramfs will attempt to resume from /dev/sda4
I: (UUID=169f94e6-ee94-4344-b838-d8adc91ba815)
I: Set the RESUME variable to override this.
fix systemd/logind config
Generating grub configuration file ...
Found theme: /boot/grub/themes/deepin/theme.txt
Found background image: /boot/grub/themes/deepin/background.jpg
Found linux image: /boot/vmlinuz-5.9.8-amd64-desktop
Found initrd image: /boot/initrd.img-5.9.8-amd64-desktop
Found linux image: /boot/vmlinuz-5.9.6-amd64-desktop
Found initrd image: /boot/initrd.img-5.9.6-amd64-desktop
Found linux image: /boot/vmlinuz-5.7.7-amd64-desktop
Found initrd image: /boot/initrd.img-5.7.7-amd64-desktop
Found initrd image: /boot/deepin-ab-recovery/initrd.img-5.9.8-amd64-desktop
Skipped Deepin 20 on /dev/sda6 by user request.
done
dpkg: 处理软件包 linux-image-5.9.8-amd64-desktop (--configure)时出错:
已安装 linux-image-5.9.8-amd64-desktop 软件包 post-installation 脚本 子进程返回错误状态 1
正在设置 linux-image-5.9.6-amd64-desktop (5.9.6-amd64-desktop-1) ...
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/bbswitch/0.8/source/dkms.conf does not exist.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
update-initramfs: Generating /boot/initrd.img-5.9.6-amd64-desktop
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125b-2.fw for module r8169
cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries
nor crypto modules. If that's on purpose, you may want to uninstall the
'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs
integration and avoid this warning.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes package to fix this.
W: Possible missing firmware /lib/firmware/i915/rkl_dmc_ver2_01.bin for module i915
I: The initramfs will attempt to resume from /dev/sda4
I: (UUID=169f94e6-ee94-4344-b838-d8adc91ba815)
I: Set the RESUME variable to override this.
fix systemd/logind config
Generating grub configuration file ...
Found theme: /boot/grub/themes/deepin/theme.txt
Found background image: /boot/grub/themes/deepin/background.jpg
Found linux image: /boot/vmlinuz-5.9.8-amd64-desktop
Found initrd image: /boot/initrd.img-5.9.8-amd64-desktop
Found linux image: /boot/vmlinuz-5.9.6-amd64-desktop
Found initrd image: /boot/initrd.img-5.9.6-amd64-desktop
Found linux image: /boot/vmlinuz-5.7.7-amd64-desktop
Found initrd image: /boot/initrd.img-5.7.7-amd64-desktop
Found initrd image: /boot/deepin-ab-recovery/initrd.img-5.9.8-amd64-desktop
Skipped Deepin 20 on /dev/sda6 by user request.
done
dpkg: 处理软件包 linux-image-5.9.6-amd64-desktop (--configure)时出错:
已安装 linux-image-5.9.6-amd64-desktop 软件包 post-installation 脚本 子进程返回错误状态 1
在处理时有错误发生:
linux-image-5.9.8-amd64-desktop
linux-image-5.9.6-amd64-desktop
E: Sub-process /usr/bin/dpkg returned an error code (1)
kirin@kirin:~$
sudo apt-get update
获取:1 https://home-store-img.uniontech.com/appstore deepin InRelease [6,128 B]
命中:2 https://community-packages.deepin.com/deepin apricot InRelease
命中:3 https://community-packages.deepin.com/driver driver InRelease
命中:4 https://community-packages.deepin.com/printer eagle InRelease
正在读取软件包列表... 完成
E: https://com-store-packages.uniontech.com/appstore/dists/deepin/InRelease 的 Release 文件已经过期(已经过期了 4小时 39分 38秒)。该仓库的更新将不会应用。
Popular Ranking
ChangePopular Events
More
升级后系统一直是这样不能更新,什么回事??