我不小心从/ Boot 删除了我的ubuntu内核,想要恢复它[关闭]

0kjbasz6  于 2023-08-03  发布在  其他
关注(0)|答案(1)|浏览(168)

**已关闭。**此问题为not about programming or software development。它目前不接受回答。

这个问题似乎不是关于a specific programming problem, a software algorithm, or software tools primarily used by programmers的。如果你认为这个问题与another Stack Exchange site的主题有关,你可以留下评论,解释在哪里可以回答这个问题。
2天前关闭。
Improve this question
我不小心从/ Boot 删除了我的ubuntu内核。我安装了一些其他的Linux内核。想恢复我的ubuntu内核。
我已经安装了通用内核。

  1. pegasus@pegasus:~$ sudo apt-get install --reinstall linux-image-generic
  2. [sudo] password for pegasus:
  3. Reading package lists... Done
  4. Building dependency tree... Done
  5. Reading state information... Done
  6. The following packages were automatically installed and are no longer required:
  7. gdal-plugins inxi libarmadillo11 libavcodec-dev libavformat-dev libavutil-dev libboost-filesystem1.71.0 libboost-iostreams1.71.0 libboost-program-options1.71.0 libcfitsio10 libdc1394-dev
  8. libexif-dev libexif-doc libfdk-aac2 libgdal32 libgoogle-perftools4 libgphoto2-dev libmbedtls14 libmbedx509-1 libopencv-highgui406 libopencv-imgcodecs406 libpcrecpp0v5 libqt6qml6
  9. libqt6qmlmodels6 libqt6quick6 libqt6svg6 libqt6waylandclient6 libqt6waylandcompositor6 libqt6waylandeglclienthwintegration6 libqt6waylandeglcompositorhwintegration6
  10. libqt6wlshellintegration6 libraw1394-dev libraw1394-tools libsrt1.5-openssl libssl1.1 libswresample-dev libtcmalloc-minimal4 libxapp-gtk3-module libxapp1 libyaml-cpp0.6 qt6-wayland
  11. xapp-sn-watcher xapps-common
  12. Use 'sudo apt autoremove' to remove them.
  13. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 110 not upgraded.
  14. Need to get 8,224 B of archives.
  15. After this operation, 0 B of additional disk space will be used.
  16. Get:1 http://bd.archive.ubuntu.com/ubuntu lunar-updates/main amd64 linux-image-generic amd64 6.2.0.26.26 [8,224 B]
  17. Fetched 8,224 B in 1s (15.1 kB/s)
  18. (Reading database ... 289865 files and directories currently installed.)
  19. Preparing to unpack .../linux-image-generic_6.2.0.26.26_amd64.deb ...
  20. Unpacking linux-image-generic (6.2.0.26.26) over (6.2.0.26.26) ...
  21. Setting up linux-image-generic (6.2.0.26.26) ...

字符串
但吃东西的时候却没有。如何恢复?

  1. pegasus@pegasus:~$ sudo update-grub
  2. Sourcing file `/etc/default/grub'
  3. Sourcing file `/etc/default/grub.d/init-select.cfg'
  4. Generating grub configuration file ...
  5. Found linux image: /boot/vmlinuz-6.5.0-rc3+
  6. Found initrd image: /boot/initrd.img-6.5.0-rc3+
  7. Found linux image: /boot/vmlinuz-6.4.7+
  8. Found initrd image: /boot/initrd.img-6.4.7+
  9. Found linux image: /boot/vmlinuz-6.4.0-rc5
  10. Found initrd image: /boot/initrd.img-6.4.0-rc5
  11. Found linux image: /boot/vmlinuz-6.4.0-rc4+
  12. Found initrd image: /boot/initrd.img-6.4.0-rc4+
  13. Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
  14. Warning: os-prober will be executed to detect other bootable partitions.
  15. Its output will be used to detect bootable binaries on them and create new boot entries.
  16. Found Windows Boot Manager on /dev/nvme1n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
  17. Adding boot menu entry for UEFI Firmware Settings ...
  18. done
  1. pegasus@pegasus:~$ dpkg --list | grep linux-image
  2. ii linux-image-5.19.0-1007-nvidia-lowlatency 5.19.0-1007.7 amd64 Signed kernel image nvidia-lowlatency
  3. rc linux-image-5.19.0-41-generic 5.19.0-41.42~22.04.1 amd64 Signed kernel image generic
  4. rc linux-image-5.19.0-42-generic 5.19.0-42.43~22.04.1 amd64 Signed kernel image generic
  5. rc linux-image-6.2.0-20-generic 6.2.0-20.20 amd64 Signed kernel image generic
  6. rc linux-image-6.2.0-23-generic 6.2.0-23.23 amd64 Signed kernel image generic
  7. rc linux-image-6.2.0-24-generic 6.2.0-24.24 amd64 Signed kernel image generic
  8. pi linux-image-6.2.0-26-generic 6.2.0-26.26 amd64 Signed kernel image generic
  9. ii linux-image-generic 6.2.0.26.26 amd64 Generic Linux kernel image
  10. pi linux-image-generic-hwe-22.04 6.2.0.26.26 amd64 Generic Linux kernel image

的数据

sxpgvts3

sxpgvts31#

我找到了解决办法。
下载:

  1. amd64/linux-headers-6.4.0-060400-generic_6.4.0-060400.202306271339_amd64.deb
  2. amd64/linux-headers-6.4.0-060400_6.4.0-060400.202306271339_all.deb
  3. amd64/linux-image-unsigned-6.4.0-060400-generic_6.4.0-060400.202306271339_amd64.deb
  4. amd64/linux-modules-6.4.0-060400-generic_6.4.0-060400.202306271339_amd64.deb

字符串
https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.4/
然后使用sudo dpkg -i <package_name>.deb手动安装所有deb包

相关问题