我不知道最近安装的22.04是如何陷入这种混乱的,但假设我在上周添加了一个存储库来获取一些东西,因为我显然是要引导到一个5.19.0-38内核,但是它的内核头却不存在。(我之所以知道,是因为VirtualBox停止了工作,并且明显地抱怨vboxdrv模块不存在。)/sbin/vboconfig的输出是:
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-generic linux-headers-5.19.0-38-generic
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-generic linux-headers-5.19.0-38-generic但是apt-get install linux-headers-generic linux-headers-5.19.0-38-generic (作为根和apt update之后)说:
root@Clevo2:/home/chris# apt-get install linux-headers-generic linux-headers-5.19.0-38-generic
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package linux-headers-5.19.0-38-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'linux-headers-5.19.0-38-generic' has no installation candidate我怀疑我的grub设置可能是问题所在。update-grub给了我以下内容:
root@Clevo2:/home/chris# update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.19.0-38-generic
Found initrd image: /boot/initrd.img-5.19.0-38-generic
Found linux image: /boot/vmlinuz-5.19.0-32-generic
Found initrd image: /boot/initrd.img-5.19.0-32-generic
Found linux image: /boot/vmlinuz-5.15.0-58-generic
Found initrd image: /boot/initrd.img-5.15.0-58-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done虽然我宁愿先看看我在这里得到了什么建议,但自从运行这台机器之后,我还没有重新启动过它。有人能看到前进的路吗?我非常需要virtualbox (遗憾的是,为了能够再次使用M$oft Wurd:道歉!)
蒂娅
克里斯
root@Clevo2:/home/chris# apt-cache policy linux-headers-5.19.0-38-generic
linux-headers-5.19.0-38-generic:
Installed: (none)
Candidate: (none)
Version table:/etc/apt/sources.list添加16.iv.2023:# deb cdrom:[Ubuntu 22.04.2 LTS _Jammy Jellyfish_ - Release amd64 (20230223)]/ jammy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirror.infomaniak.ch/ubuntu/ jammy main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirror.infomaniak.ch/ubuntu/ jammy-updates main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ 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://mirror.infomaniak.ch/ubuntu/ jammy universe
# deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy universe
deb http://mirror.infomaniak.ch/ubuntu/ jammy-updates universe
# deb-src http://fr.archive.ubuntu.com/ubuntu/ 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://mirror.infomaniak.ch/ubuntu/ jammy multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://mirror.infomaniak.ch/ubuntu/ jammy-updates multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ 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://mirror.infomaniak.ch/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://mirror.infomaniak.ch/ubuntu/ jammy-security main restricted
# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://mirror.infomaniak.ch/ubuntu/ jammy-security universe
# deb-src http://security.ubuntu.com/ubuntu jammy-security universe
deb http://mirror.infomaniak.ch/ubuntu/ jammy-security multiverse
# deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
root@Clevo2:/home/chris# 我想这意味着需要更新。
发布于 2023-04-23 11:58:45
我怀疑这可能不是一个在所有机器上都能工作的答案,但它在我的工作开始的地方起了作用。它来自Laptopswithlinux的彼得·庞特,他提供了这台机器:
打开终端并运行: sudo apt更新& sudo apt升级&& sudo apt自动删除-y,然后重新启动笔记本电脑。通过软件和更新安装此驱动程序: NVIDIA驱动程序从nvidia 525重新启动膝上型计算机打开终端,然后运行: sudo apt安装linux 22.04c linux-tools-oem-22.04c -y,重新启动笔记本电脑并再次检查。
这是linux-oem-22.04c和linux-tools-oem-22.04c的最后一次安装,虽然我尝试过nvidia驱动程序,但我以前从未做过。我希望这对其他人有帮助,感谢所有回应的人。
https://askubuntu.com/questions/1463723
复制相似问题