ubuntu 如何修复损坏的linux未签名映像包?

plupiseo  于 2023-03-22  发布在  Linux
关注(0)|答案(1)|浏览(179)

我试图设置一个环境来构建内核,但似乎我的包管理器不工作。
我现在的Ubuntu版本:Ubuntu 22.04语言
uname -a -〉Linux _ 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
该命令

sudo apt-get build-dep linux linux-image-$(uname -r)

导致

Reading package lists... Done
Picking 'linux-signed' as source package instead of 'linux-image-5.15.0-67-generic'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 builddeps:linux-signed : Depends: linux-image-unsigned-5.15.0-67-generic (= 5.15.0-67.74) but it is not going to be installed
                          Depends: linux-generate (= 5.15.0-67.74) but it is not installable
E: Unable to correct problems, you have held broken packages.

为了获得更详细的信息,我在执行安装命令之前取消了所有deb-src行和sudo apt update的注解。
我的etc/apt/sourses_list

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ports.ubuntu.com/ubuntu-ports jammy main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports jammy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports jammy universe
deb-src http://ports.ubuntu.com/ubuntu-ports jammy universe
deb http://ports.ubuntu.com/ubuntu-ports jammy-updates universe
deb-src http://ports.ubuntu.com/ubuntu-ports jammy-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ports.ubuntu.com/ubuntu-ports jammy multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports jammy multiverse
deb http://ports.ubuntu.com/ubuntu-ports jammy-updates multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports jammy-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse

deb http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports jammy-security universe
deb-src http://ports.ubuntu.com/ubuntu-ports jammy-security universe
deb http://ports.ubuntu.com/ubuntu-ports jammy-security multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports jammy-security multiverse
oyt4ldly

oyt4ldly1#

我遇到了同样的问题。我通过运行以下命令来解决它:

sudo apt-get build-dep linux linux-image-unsigned-$(uname -r)

注意额外的“-unsigned”。这可能满足也可能不满足您的需要。

相关问题