
我剛剛嘗試在 Dell XPS 15 9550 上的 Ubuntu 14.04 中將核心從 4.2 更新到 4.6。
我透過下載linux-headers-4.6.0-040600_4.6.0-040600.201606100558_all.deb
、linux-headers-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb
和linux-image-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb
從http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/進入/tmp
並運行dpkg -i /tmp/*.deb
.當我嘗試使用 4.6 核心啟動時,它會將我帶入 initramfs BusyBox shell,並顯示錯誤訊息ALERT! /dev/disk/by-uuid/1e4790ae-0501-4be4-b965-e2b7c77392eb does not exist. Dropping to a shell
。
我發現這個類似的問題但無法使用那裡的資訊來解決這個問題。以下是一些我認為可能有用的信息(blkid
、/etc/fstab
、fdisk -l
和/boot/grub/grub.cfg
):(如果還有其他有用的信息,請告訴我!)
17:52:11 ~ λ sudo blkid
/dev/nvme0n1p1: LABEL="ESP" UUID="6441-2C20" TYPE="vfat"
/dev/nvme0n1p3: LABEL="OS" UUID="8CFA6776FA675C08" TYPE="ntfs"
/dev/nvme0n1p4: LABEL="WINRETOOLS" UUID="3072C71172C6DAAC" TYPE="ntfs"
/dev/nvme0n1p5: LABEL="Image" UUID="9676C7B376C79283" TYPE="ntfs"
/dev/nvme0n1p6: UUID="1e4790ae-0501-4be4-b965-e2b7c77392eb" TYPE="ext4"
/dev/nvme0n1p7: UUID="5a41f7e3-23ba-4c8d-95cd-7cbfc6579720" TYPE="swap"
17:55:03 ~ λ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p6 during installation
UUID=1e4790ae-0501-4be4-b965-e2b7c77392eb / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=6441-2C20 /boot/efi vfat defaults 0 1
# swap was on /dev/nvme0n1p7 during installation
UUID=5a41f7e3-23ba-4c8d-95cd-7cbfc6579720 none swap sw 0 0
17:55:08 ~ λ sudo fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/nvme0n1'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/nvme0n1: 256.1 GB, 256060514304 bytes
255 heads, 63 sectors/track, 31130 cylinders, total 500118192 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x09e97f16
Device Boot Start End Blocks Id System
/dev/nvme0n1p1 1 500118191 250059095+ ee GPT
17:55:18 ~ λ cat /boot/grub/grub.cfg
[... elided ...]
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-1e4790ae-0501-4be4-b965-e2b7c77392eb' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 1e4790ae-0501-4be4-b965-e2b7c77392eb
else
search --no-floppy --fs-uuid --set=root 1e4790ae-0501-4be4-b965-e2b7c77392eb
fi
linux /boot/vmlinuz-4.6.0-040600-generic root=/dev/nvme0n1p6 ro quiet splash nouveau.modeset=0 $vt_handoff
initrd /boot/initrd.img-4.6.0-040600-generic
}
[...elided ...]
答案1
也許 dpkg 這裡缺少一些步驟。
IIRC,在 Ubuntu 上可以將核心 ppa 新增到您的儲存庫(使用add-apt-repository
),然後用於apt-get
安裝新核心。