![抱歉,发生错误,无法在指定位置安装引导加载程序](https://linux22.com/image/895364/%E6%8A%B1%E6%AD%89%EF%BC%8C%E5%8F%91%E7%94%9F%E9%94%99%E8%AF%AF%EF%BC%8C%E6%97%A0%E6%B3%95%E5%9C%A8%E6%8C%87%E5%AE%9A%E4%BD%8D%E7%BD%AE%E5%AE%89%E8%A3%85%E5%BC%95%E5%AF%BC%E5%8A%A0%E8%BD%BD%E7%A8%8B%E5%BA%8F.png)
安装失败,显示:
系统:
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ sudo mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=1001820k,nr_inodes=250455,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=203660k,mode=755)
/dev/sr0 on /cdrom type iso9660 (ro,noatime)
/dev/loop0 on /rofs type squashfs (ro,noatime)
aufs on / type aufs (rw,noatime,si=5d2eac7dbb955a36)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=14150)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=203660k,mode=700,uid=999,gid=999)
gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/loop0: 1.5 GiB, 1553670144 bytes, 3034512 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 /dev/sda: 74.5 GiB, 80026361856 bytes, 156301488 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
Disklabel type: dos
Disk identifier: 0xde273f4f
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 156301311 156299264 74.5G 8e Linux LVM
Disk /dev/mapper/ubuntu--vg-root: 72.5 GiB, 77863059456 bytes, 152076288 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 /dev/mapper/ubuntu--vg-swap_1: 2 GiB, 2134900736 bytes, 4169728 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 /dev/mapper/cryptswap1: 2 GiB, 2134376448 bytes, 4168704 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
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.04
DISTRIB_CODENAME=zesty
DISTRIB_DESCRIPTION="Ubuntu 17.04"
ubuntu@ubuntu:~$
我已尝试different devices
安装引导加载程序,但即使单击“确定”后也无法继续。
如何/在哪里安装引导加载程序?
我也尝试过continue without a bootloader
选项但即使单击“确定”,也无法跳过该对话框。
答案1
取消选择 LVM 有点起到了作用:
选择后立即重新启动sda
。最终的工作方式如下:
thufir@doge:~$
thufir@doge:~$ sudo fdisk -l
Disk /dev/sda: 74.5 GiB, 80026361856 bytes, 156301488 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
Disklabel type: dos
Disk identifier: 0x3b9b7b5e
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 156301311 156299264 74.5G 83 Linux
thufir@doge:~$
thufir@doge:~$ 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/sda1 during installation
UUID=5882620a-f19a-4553-8c8d-73d59499d2a1 / ext4 errors=remount-ro 0 1
#/swapfile none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
thufir@doge:~$
为什么 LVM 不起作用?
答案2
我终于成功地在我的 PC 上启动了 Ubuntu 18.04.3;首先,它的一些功能:它是联想 ThinkCentre M810z,有一个 256 GB 的 SSD 驱动器,上面已经安装了 Windows 10 Pro;它还有一个 500 GB 的 HDD。在商店,他们建议我应该在 HDD 上安装 Ubuntu,而不是在 SDD 上安装 Windows 10 Pro,原因不详。其次,我使用可启动 U 盘下载了 Ubuntu 18.04.3(如https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu#1)。然后,我重启了装有 U 盘的电脑,Ubuntu 安装程序按预期启动了进程;但在完成之前,出现了错误消息:“无法安装引导加载程序...”。为了解决这个问题,我将 Ubuntu 18.04.1 下载到可启动的 U 盘(来自我在办公室使用的另一台电脑),然后用该 U 盘启动电脑;再次,安装程序像往常一样启动;但是,当被问到时,我勾选了安装 ubuntu 18.04.1 的选项旁边ubuntu 18.04.3(在之前的尝试中,我勾选了删除 18.04.3 并单独安装 18.04.1 的选项,但失败了,并出现了与问题相同的错误消息)。这一次,安装顺利进行,没有错误消息;只有“安装完成。重新启动计算机”消息。我移除了 U 盘并重新启动了计算机,但反复按下 F1 以访问启动选项。在那里,我转到启动 > 启动优先级顺序,并使用 (+,-) 键将 500 GB HDD 选项推到优先级列表的第一位,保存更改并重新启动 PC。好消息:grub 菜单终于出现了,Ubuntu 18.04.3 按预期启动;坏消息:grub 没有显示启动 Windows 10 的选项……我知道我必须重新安排启动优先级顺序才能实现这一点(将 256 GB SDD 驱动器推到启动优先级顺序的第一位)。尽管如此,这种情况并不困扰我,因为我将使用 Ubuntu 来完成我计划在 PC 上做的事情。希望这能有所帮助。谢谢。