![为什么我会收到错误:“加载 /home/ubuntu/.profile 时发现错误:”?](https://linux22.com/image/877928/%E4%B8%BA%E4%BB%80%E4%B9%88%E6%88%91%E4%BC%9A%E6%94%B6%E5%88%B0%E9%94%99%E8%AF%AF%EF%BC%9A%E2%80%9C%E5%8A%A0%E8%BD%BD%20%2Fhome%2Fubuntu%2F.profile%20%E6%97%B6%E5%8F%91%E7%8E%B0%E9%94%99%E8%AF%AF%EF%BC%9A%E2%80%9D%EF%BC%9F.png)
我正在尝试在 Windows 8.1 旁边安装 Ubuntu。我已经使用该软件创建了一个 UEFI 可启动的 Ubuntu USB 驱动器Universal Installer
,但是当我重新启动笔记本电脑并单击“尝试 Ubuntu 而不安装”时,我收到以下错误:
Error found when loading /home/ubuntu/.profile:
/usr/sbin/lightdm-session: line 29: .:/home/ubuntu: cannot execute binary file
As a result the session will not be configured correctly
You should fix the problem as soon as feasible
我为什么会这样?说实话,我不知道第 29 行是从哪里来的,所以请在不喜欢和批评之前告诉我,这样我才能吸取教训 :)
我认为它来自grub.cfg
,但我不知道。无论如何,这里是grub.cfg
:
if loadfont /boot/grub/font.pf2 ; then
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod gfxterm
terminal_output gfxterm
fi
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
menuentry "Try Ubuntu without installing" {
set gfxpayload=keep
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash persistent --
initrd /casper/initrd.lz
}
menuentry "Install Ubuntu" {
set gfxpayload=keep
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed cdrom-detect/try-usb=true persistent noprompt floppy.allowed_drive_mask=0 ignore_uuid boot=casper only-ubiquity quiet splash persistent --
initrd /casper/initrd.lz
}
menuentry "OEM install (for manufacturers)" {
set gfxpayload=keep
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed cdrom-detect/try-usb=true persistent noprompt floppy.allowed_drive_mask=0 ignore_uuid boot=casper only-ubiquity quiet splash oem-config/enable=true ---
initrd /casper/initrd.lz
}
menuentry "Check disc for defects" {
set gfxpayload=keep //this is line 29 in the grub.cfg
linux /casper/vmlinuz.efi cdrom-detect/try-usb=true persistent noprompt floppy.allowed_drive_mask=0 ignore_uuid boot=casper integrity-check quiet splash ---
initrd /casper/initrd.lz
}
老实说,我不知道这是正确的文件,但我不知道哪一个是正确的。 这是 USB 文件夹
答案1
您无法修复该问题,但无需修复该问题。测试 Ubuntu,如果您希望安装它,请安装它,警告将消失。