我想将 18.10 升级到 19.04,但升级管理器挂起并且发行说明窗口为空白。当我单击升级时,升级管理器窗口挂起,没有显示任何类型的输出。
当我这样做时,在终端上do-release-upgrade
我被卡住了,Checking new release
但do-release-upgrade -c
会告诉我有更新的版本(19.04)可用。我已经尝试过使用 root 和没有 root 权限,但仍然无法正常工作。
我没有更多关于我在网络上搜索问题的信息没有结果,请帮助我。
每当我安装任何新内核(或内核升级)时,都会出现很多错误。
做完之后我得到的错误
sudo apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-headers-4.18.0-17-generic (4.18.0-17.18) ...
/etc/kernel/header_postinst.d/dkms:
Error! Could not locate dkms.conf file.
File: does not exist.
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4
dpkg: error processing package linux-headers-4.18.0-17-generic (--configure):
installed linux-headers-4.18.0-17-generic package post-installation script subprocess returned error exit status 1
Setting up linux-image-4.18.0-17-generic (4.18.0-17.18) ...
dpkg: dependency problems prevent configuration of linux-headers-generic:
linux-headers-generic depends on linux-headers-4.18.0-17-generic; however:
Package linux-headers-4.18.0-17-generic is not configured yet.
dpkg: error processing package linux-headers-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-headers-generic (= 4.18.0.17.18); however:
Package linux-headers-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-generic:
linux-signed-generic depends on linux-generic; however:
Package linux-generic is not configured yet.
dpkg: error processing package linux-signed-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
Processing triggers for linux-image-4.18.0-17-generic (4.18.0-17.18) ...
/etc/kernel/postinst.d/dkms:
Error! Could not locate dkms.conf file.
File: does not exist.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
dpkg: error processing package linux-image-4.18.0-17-generic (--configure):
installed linux-image-4.18.0-17-generic package post-installation script subprocess returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
linux-headers-4.18.0-17-generic
linux-headers-generic
linux-generic
linux-signed-generic
linux-image-4.18.0-17-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
我已经尝试了其他问题中发布的所有内容
apt-get -f install
apt-get autoremove
apt-get remove linux-image-4.18.0-17-generic
我还使用 dpkg 和 ukuu 删除包 linux-image-4.18.0-17-generic 但没有任何效果
这是我尝试过的各种命令的输出
sudo dpkg --configure -a
Setting up linux-image-4.18.0-17-generic (4.18.0-17.18) ...
dpkg: dependency problems prevent configuration of linux-headers-generic:
linux-headers-generic depends on linux-headers-4.18.0-17-generic; however:
Package linux-headers-4.18.0-17-generic is not configured yet.
dpkg: error processing package linux-headers-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-headers-generic (= 4.18.0.17.18); however:
Package linux-headers-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-generic:
linux-signed-generic depends on linux-generic; however:
Package linux-generic is not configured yet.
dpkg: error processing package linux-signed-generic (--configure):
dependency problems - leaving unconfigured
Processing triggers for linux-image-4.18.0-17-generic (4.18.0-17.18) ...
/etc/kernel/postinst.d/dkms:
Error! Could not locate dkms.conf file.
File: does not exist.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
dpkg: error processing package linux-image-4.18.0-17-generic (--configure):
installed linux-image-4.18.0-17-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-headers-generic
linux-generic
linux-signed-generic
linux-image-4.18.0-17-generic
sudo dpkg --purge linux-headers-4.18.0-17-generic
dpkg: dependency problems prevent removal of linux-headers-4.18.0-17-generic:
linux-headers-generic depends on linux-headers-4.18.0-17-generic.
dpkg: error processing package linux-headers-4.18.0-17-generic (--purge):
dependency problems - not removing
Errors were encountered while processing:
linux-headers-4.18.0-17-generic
我无法删除 4.18.0-17 并且我在互联网上尝试了几乎所有内容,并且 askubuntu 上的所有答案都说同样的事情,这对我不起作用。我的系统上还安装了一堆 dkms 模块,但我很确定这是由于 wine 而发生的,因为这是除了 chrome 和 dkms 模块之外我安装的唯一额外的东西,并且在此错误发生之前我通常使用 ubuntu。
我有 android 启动映像,每次刷新内核时都需要对其进行修补。修补包括使用十六进制编辑器(我使用 ghex)向引导映像添加 4096 字节,这是一个非常繁琐的过程,因为您必须手动将 4096 个数字手动添加到文件中。所以,我想制作一个脚本来自动化这个过程。
它不像简单地编辑文件,它需要十六进制编辑器。
具体来说,我想附加 0x30、0x83、0x19、0x89、0x64,然后是 0x00
之前没有问题,但是今天我启动了我的电脑,我删除了不稳定的 OIBAF 显卡驱动并尝试添加稳定的 OIBAF 显卡 PPA。我离开了大约 15 分钟,当我回来时,终端卡在初始命令上,没有任何输出。它看起来像这样:
我以为这是一个互联网问题,但事实并非如此。然后我取消了添加 PPA 并尝试再次安装它,但遇到了同样的问题(该apt-add-repository
命令确实有效,但需要很长时间才能显示任何输出。之前一切都很好——不到一分钟就完成了——但是现在需要超过 15 分钟)。
我也尝试添加不同的 PPA,但遇到了同样的问题。
我的内核版本是 4.20.0
我还构建了一个安装和删除的内核,但没有与 ppa 相关的问题。
CTRL编辑:当我用+取消命令时会有更多延迟C