我想安装boot-repair_3.193.7.orig.tar.gz
来修复我的电脑,因为它无法启动(只收到“grub rescue”提示)。现在在实时 USB 上启动 Ubuntu 11.10。
想要遵循以下步骤(位于这个帖子)
tar -zxvf aircrack-ng-1.1.tar.gz.
cd aircrack-ng-1.1.tar.gz
make
make install
输入第一行后,终端中的输出如下:
ubuntu@ubuntu:~$ tar -zxvf boot-repair_3.193.7.orig.tar.gz
tar (child): boot-repair_3.193.7.orig.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
这与 tar.gz 的位置有关吗?我将其下载到下载目录,并将其放置在存档管理器中,显示它位于根目录下。
请帮助提供逐步解决方案。
cd boot-repair_3.193.7.orig
更新:根据 Seth 的建议,终端输出如下:
ubuntu@ubuntu:~$ tar -zxvf boot-repair_3.193.7.orig.tar.gz
.gitignore
usr/share/icons/hicolor/128x128/apps/boot-repair.png
usr/share/icons/hicolor/128x128/apps/os-uninstaller.png
usr/share/locale/af/LC_MESSAGES/boot-sav.mo
usr/share/locale/ar/LC_MESSAGES/boot-sav.mo
usr/share/locale/ast/LC_MESSAGES/boot-sav.mo
usr/share/locale/az/LC_MESSAGES/boot-sav.mo
usr/share/locale/be/LC_MESSAGES/boot-sav.mo
usr/share/locale/bg/LC_MESSAGES/boot-sav.mo
usr/share/locale/bn/LC_MESSAGES/boot-sav.mo
usr/share/locale/bs/LC_MESSAGES/boot-sav.mo
usr/share/locale/ca/LC_MESSAGES/boot-sav.mo
usr/share/locale/ckb/LC_MESSAGES/boot-sav.mo
usr/share/locale/cs/LC_MESSAGES/boot-sav.mo
usr/share/locale/da/LC_MESSAGES/boot-sav.mo
usr/share/locale/de/LC_MESSAGES/boot-sav.mo
usr/share/locale/el/LC_MESSAGES/boot-sav.mo
usr/share/locale/en_AU/LC_MESSAGES/boot-sav.mo
usr/share/locale/en_CA/LC_MESSAGES/boot-sav.mo
usr/share/locale/en_GB/LC_MESSAGES/boot-sav.mo
usr/share/locale/eo/LC_MESSAGES/boot-sav.mo
usr/share/locale/es/LC_MESSAGES/boot-sav.mo
usr/share/locale/et/LC_MESSAGES/boot-sav.mo
usr/share/locale/eu/LC_MESSAGES/boot-sav.mo
usr/share/locale/fa/LC_MESSAGES/boot-sav.mo
usr/share/locale/fi/LC_MESSAGES/boot-sav.mo
usr/share/locale/nn/LC_MESSAGES/boot-sav.mo
usr/share/locale/oc/LC_MESSAGES/boot-sav.mo
usr/share/locale/pl/LC_MESSAGES/boot-sav.mo
usr/share/locale/pt/LC_MESSAGES/boot-sav.mo
usr/share/locale/pt_BR/LC_MESSAGES/boot-sav.mo
usr/share/locale/ro/LC_MESSAGES/boot-sav.mo
usr/share/locale/ru/LC_MESSAGES/boot-sav.mo
usr/share/locale/sk/LC_MESSAGES/boot-sav.mo
usr/share/locale/sl/LC_MESSAGES/boot-sav.mo
usr/share/locale/sq/LC_MESSAGES/boot-sav.mo
usr/share/locale/sr/LC_MESSAGES/boot-sav.mo
usr/share/locale/sv/LC_MESSAGES/boot-sav.mo
usr/share/locale/sw/LC_MESSAGES/boot-sav.mo
usr/share/locale/ta/LC_MESSAGES/boot-sav.mo
usr/share/locale/te/LC_MESSAGES/boot-sav.mo
usr/share/locale/th/LC_MESSAGES/boot-sav.mo
usr/share/locale/tl/LC_MESSAGES/boot-sav.mo
usr/share/locale/tr/LC_MESSAGES/boot-sav.mo
usr/share/locale/ug/LC_MESSAGES/boot-sav.mo
usr/share/locale/uk/LC_MESSAGES/boot-sav.mo
usr/share/locale/ur/LC_MESSAGES/boot-sav.mo
usr/share/locale/uz/LC_MESSAGES/boot-sav.mo
usr/share/locale/vi/LC_MESSAGES/boot-sav.mo
usr/share/locale/yi/LC_MESSAGES/boot-sav.mo
usr/share/locale/zh_CN/LC_MESSAGES/boot-sav.mo
usr/share/locale/zh_HK/LC_MESSAGES/boot-sav.mo
usr/share/locale/zh_TW/LC_MESSAGES/boot-sav.mo
usr/share/locale/fil/LC_MESSAGES/boot-sav.mo
usr/share/locale/fr/LC_MESSAGES/boot-sav.mo
usr/share/locale/ga/LC_MESSAGES/boot-sav.mo
usr/share/locale/gl/LC_MESSAGES/boot-sav.mo
usr/share/locale/gu/LC_MESSAGES/boot-sav.mo
usr/share/locale/he/LC_MESSAGES/boot-sav.mo
usr/share/locale/hi/LC_MESSAGES/boot-sav.mo
usr/share/locale/hr/LC_MESSAGES/boot-sav.mo
usr/share/locale/ht/LC_MESSAGES/boot-sav.mo
usr/share/locale/hu/LC_MESSAGES/boot-sav.mo
usr/share/locale/hy/LC_MESSAGES/boot-sav.mo
usr/share/locale/id/LC_MESSAGES/boot-sav.mo
usr/share/locale/is/LC_MESSAGES/boot-sav.mo
usr/share/locale/it/LC_MESSAGES/boot-sav.mo
usr/share/locale/ja/LC_MESSAGES/boot-sav.mo
usr/share/locale/ka/LC_MESSAGES/boot-sav.mo
usr/share/locale/kn/LC_MESSAGES/boot-sav.mo
usr/share/locale/ko/LC_MESSAGES/boot-sav.mo
usr/share/locale/lt/LC_MESSAGES/boot-sav.mo
usr/share/locale/lv/LC_MESSAGES/boot-sav.mo
usr/share/locale/mg/LC_MESSAGES/boot-sav.mo
usr/share/locale/mk/LC_MESSAGES/boot-sav.mo
usr/share/locale/ms/LC_MESSAGES/boot-sav.mo
usr/share/locale/mt/LC_MESSAGES/boot-sav.mo
usr/share/locale/nb/LC_MESSAGES/boot-sav.mo
usr/share/locale/nl/LC_MESSAGES/boot-sav.mo
usr/share/apport/package-hooks/source_boot-repair.py
usr/share/apport/package-hooks/source_os-uninstaller.py
usr/share/doc/boot-repair/changelog.gz
usr/share/doc/boot-sav/changelog.gz
usr/share/doc/clean-ubiquity/changelog.gz
usr/share/doc/os-uninstaller/changelog.gz
usr/share/applications/boot-repair.desktop
usr/share/applications/os-uninstaller.desktop
usr/share/boot-sav/gui-init.sh
usr/share/boot-sav/gui-actions.sh
usr/share/boot-sav/gui-tab-grub.sh
usr/share/boot-sav/gui-dummy.sh
usr/share/boot-sav/gui-actions-purge.sh
usr/share/boot-sav/gui-translations.sh
usr/share/boot-sav/bis.sh
usr/share/boot-sav/gui-tab-other.sh
usr/share/boot-sav/boot-repair-gui.sh
usr/share/boot-sav/boot-sav.glade
usr/share/boot-sav/gui-scan.sh
usr/share/boot-sav/bs-init.sh
usr/share/boot-sav/gui-actions-grub.sh
usr/share/boot-sav/bs-common.sh
usr/share/boot-sav/gui-tab-loca.sh
usr/share/boot-sav/gui-tab-mbr.sh
usr/share/boot-sav/packconfig.png
usr/share/boot-sav/removegrub.png
usr/share/boot-sav/boot-repair.png
usr/share/boot-sav/boot-repair.sh
usr/share/boot-sav/boot-repair-actions.sh
usr/share/boot-sav/boot-repair-translations.sh
usr/share/boot-sav/os-uninstaller.png
usr/share/boot-sav/os-uninstaller.sh
usr/share/boot-sav/os-uninstaller-actions.sh
usr/share/boot-sav/os-uninstaller-gui.sh
usr/share/boot-sav/os-uninstaller-translations.sh
usr/share/boot-sav/gui-raid-lvm.sh
usr/share/boot-sav/gui-tab-main.sh
usr/share/boot-sav/gui-g2slaunch.sh
usr/bin/cleanubiquityafter
usr/bin/cleanubiquitybefore
usr/bin/os-uninstaller
usr/bin/boot-repair
etc/apport/crashdb.conf.d/os-uninstaller-crashdb.conf
etc/apport/crashdb.conf.d/boot-repair-crashdb.conf
docs/cleanubiquityafter.8
docs/cleanubiquitybefore.8
docs/os-uninstaller.8
docs/boot-repair.8
usr/share/icons/hicolor/128x128/apps/
usr/share/locale/af/LC_MESSAGES/
usr/share/locale/ar/LC_MESSAGES/
usr/share/locale/ast/LC_MESSAGES/
usr/share/locale/az/LC_MESSAGES/
usr/share/locale/be/LC_MESSAGES/
usr/share/locale/bg/LC_MESSAGES/
usr/share/locale/bn/LC_MESSAGES/
usr/share/locale/bs/LC_MESSAGES/
usr/share/locale/ca/LC_MESSAGES/
usr/share/locale/ckb/LC_MESSAGES/
usr/share/locale/cs/LC_MESSAGES/
usr/share/locale/da/LC_MESSAGES/
usr/share/locale/de/LC_MESSAGES/
usr/share/locale/el/LC_MESSAGES/
usr/share/locale/en_AU/LC_MESSAGES/
usr/share/locale/en_CA/LC_MESSAGES/
usr/share/locale/en_GB/LC_MESSAGES/
usr/share/locale/eo/LC_MESSAGES/
usr/share/locale/es/LC_MESSAGES/
usr/share/locale/et/LC_MESSAGES/
usr/share/locale/eu/LC_MESSAGES/
usr/share/locale/fa/LC_MESSAGES/
usr/share/locale/fi/LC_MESSAGES/
usr/share/locale/nn/LC_MESSAGES/
usr/share/locale/oc/LC_MESSAGES/
usr/share/locale/pl/LC_MESSAGES/
usr/share/locale/pt/LC_MESSAGES/
usr/share/locale/pt_BR/LC_MESSAGES/
usr/share/locale/ro/LC_MESSAGES/
usr/share/locale/ru/LC_MESSAGES/
usr/share/locale/sk/LC_MESSAGES/
usr/share/locale/sl/LC_MESSAGES/
usr/share/locale/sq/LC_MESSAGES/
usr/share/locale/sr/LC_MESSAGES/
usr/share/locale/sv/LC_MESSAGES/
usr/share/locale/sw/LC_MESSAGES/
usr/share/locale/ta/LC_MESSAGES/
usr/share/locale/te/LC_MESSAGES/
usr/share/locale/th/LC_MESSAGES/
usr/share/locale/tl/LC_MESSAGES/
usr/share/locale/tr/LC_MESSAGES/
usr/share/locale/ug/LC_MESSAGES/
usr/share/locale/uk/LC_MESSAGES/
usr/share/locale/ur/LC_MESSAGES/
usr/share/locale/uz/LC_MESSAGES/
usr/share/locale/vi/LC_MESSAGES/
usr/share/locale/yi/LC_MESSAGES/
usr/share/locale/zh_CN/LC_MESSAGES/
usr/share/locale/zh_HK/LC_MESSAGES/
usr/share/locale/zh_TW/LC_MESSAGES/
usr/share/locale/fil/LC_MESSAGES/
usr/share/locale/fr/LC_MESSAGES/
usr/share/locale/ga/LC_MESSAGES/
usr/share/locale/gl/LC_MESSAGES/
usr/share/locale/gu/LC_MESSAGES/
usr/share/locale/he/LC_MESSAGES/
usr/share/locale/hi/LC_MESSAGES/
usr/share/locale/hr/LC_MESSAGES/
usr/share/locale/ht/LC_MESSAGES/
usr/share/locale/hu/LC_MESSAGES/
usr/share/locale/hy/LC_MESSAGES/
usr/share/locale/id/LC_MESSAGES/
usr/share/locale/is/LC_MESSAGES/
usr/share/locale/it/LC_MESSAGES/
usr/share/locale/ja/LC_MESSAGES/
usr/share/locale/ka/LC_MESSAGES/
usr/share/locale/kn/LC_MESSAGES/
usr/share/locale/ko/LC_MESSAGES/
usr/share/locale/lt/LC_MESSAGES/
usr/share/locale/lv/LC_MESSAGES/
usr/share/locale/mg/LC_MESSAGES/
usr/share/locale/mk/LC_MESSAGES/
usr/share/locale/ms/LC_MESSAGES/
usr/share/locale/mt/LC_MESSAGES/
usr/share/locale/nb/LC_MESSAGES/
usr/share/locale/nl/LC_MESSAGES/
usr/share/icons/hicolor/128x128/
usr/share/locale/af/
usr/share/locale/ar/
usr/share/locale/ast/
usr/share/locale/az/
usr/share/locale/be/
usr/share/locale/bg/
usr/share/locale/bn/
usr/share/locale/bs/
usr/share/locale/ca/
usr/share/locale/ckb/
usr/share/locale/cs/
usr/share/locale/da/
usr/share/locale/de/
usr/share/locale/el/
usr/share/locale/en_AU/
usr/share/locale/en_CA/
usr/share/locale/en_GB/
usr/share/locale/eo/
usr/share/locale/es/
usr/share/locale/et/
usr/share/locale/eu/
usr/share/locale/fa/
usr/share/locale/fi/
usr/share/locale/nn/
usr/share/locale/oc/
usr/share/locale/pl/
usr/share/locale/pt/
usr/share/locale/pt_BR/
usr/share/locale/ro/
usr/share/locale/ru/
usr/share/locale/sk/
usr/share/locale/sl/
usr/share/locale/sq/
usr/share/locale/sr/
usr/share/locale/sv/
usr/share/locale/sw/
usr/share/locale/ta/
usr/share/locale/te/
usr/share/locale/th/
usr/share/locale/tl/
usr/share/locale/tr/
usr/share/locale/ug/
usr/share/locale/uk/
usr/share/locale/ur/
usr/share/locale/uz/
usr/share/locale/vi/
usr/share/locale/yi/
usr/share/locale/zh_CN/
usr/share/locale/zh_HK/
usr/share/locale/zh_TW/
usr/share/locale/fil/
usr/share/locale/fr/
usr/share/locale/ga/
usr/share/locale/gl/
usr/share/locale/gu/
usr/share/locale/he/
usr/share/locale/hi/
usr/share/locale/hr/
usr/share/locale/ht/
usr/share/locale/hu/
usr/share/locale/hy/
usr/share/locale/id/
usr/share/locale/is/
usr/share/locale/it/
usr/share/locale/ja/
usr/share/locale/ka/
usr/share/locale/kn/
usr/share/locale/ko/
usr/share/locale/lt/
usr/share/locale/lv/
usr/share/locale/mg/
usr/share/locale/mk/
usr/share/locale/ms/
usr/share/locale/mt/
usr/share/locale/nb/
usr/share/locale/nl/
usr/share/icons/hicolor/
usr/share/apport/package-hooks/
usr/share/doc/boot-repair/
usr/share/doc/boot-sav/
usr/share/doc/clean-ubiquity/
usr/share/doc/os-uninstaller/
usr/share/locale/
usr/share/applications/
usr/share/icons/
usr/share/apport/
usr/share/boot-sav/
usr/share/doc/
usr/share/
usr/bin/
usr/
etc/apport/crashdb.conf.d/
etc/apport/
etc/
docs/
ubuntu@ubuntu:~$ cd boot-repair_3.193.7.orig
bash: cd: boot-repair_3.193.7.orig: No such file or directory
ubuntu@ubuntu:~$
答案1
要安装启动修复,请按照说明进行操作这里。总而言之,请输入以下命令:
sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update && sudo apt-get install -y boot-repair && (boot-repair &)
启动修复程序应自动安装并运行。出现提示时,选择“推荐修复”。如果运行启动修复程序后系统仍无法启动,请返回 Ask Ubuntu 并开始一个新问题,其中包括启动修复程序将为您提供的启动脚本链接。
答案2
您在终端中位于 /home 目录下,而不是在 Downloads 目录中。由于文件位于 Downloads 目录中,因此请键入cd Downloads
以切换目录。
但是如果您想安装 Boot-Repair,从终端安装它是一个更好的选择。
在 Dash 中搜索终端,然后输入以下两个命令:
sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install boot-repair
答案3
运行该命令时,您需要位于与文件相同的目录中tar -zxvf boot-repair_3.193.7.orig.tar.gz
。
tab如果您与文件位于同一目录中,则可以通过按 来自动完成。即,开始输入tar xvfz boo
并点击tab。如果存在,它将自动完成为完整文件名(或提供可能的补全)并保存输入。
你确定需要使用make
它吗?我在提取的树中看不到任何源文件。
您不需要遵循与 aircrack 相同的说明。您应该能够在解压的 boot-repair 目录下找到 ./usr/bin/boot-repair。但是,它并未按预期完全安装。鉴于目前的情况,我强烈建议遵循 apt-get 答案之一。