Ubuntu

error: unknown command "gfxmode"

Reported by mangelasakis on 2012-05-13
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Undecided
Unassigned

Bug Description

error: unknown command "gfxmode"

http://askubuntu.com/questions/132344/ubuntu-12-04-desktop-error-unknown-command-gfxmode-pressing-any-key-continue

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: grub2 (not installed)
ProcVersionSignature: Ubuntu 3.2.0-24.38-generic 3.2.16
Uname: Linux 3.2.0-24-generic x86_64
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Sun May 13 20:32:21 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub2 (Ubuntu):
status: New → Confirmed
Phillip Susi (psusi) wrote :

Please attach your /boot/grub/grub.cfg file.

Changed in grub2 (Ubuntu):
status: Confirmed → Incomplete
meteor (604733992-qq) wrote :

I have the same error.
Can you see my /boot/grub/grub.cfg file?
http://paste.ubuntu.org.cn/134185
http://ubuntuone.com/75B8cbgy9RCI00w7w3B37G

Phillip Susi (psusi) wrote :

Please try sudo apt-get install --reinstall grub-common and sudo update-grub.

meteor (604733992-qq) wrote :

I tried, but no use.
Still have the error.

Phillip Susi (psusi) wrote :

Can you attach your /etc/grub.d/10_linux file?

meteor (604733992-qq) wrote :

I do not have the 10_linux file.
I only have 10_linux_proxy file.

meteor@Meteor:/etc/grub.d$ ls
00_header 10_linux_proxy bin README
05_debian_theme 30_os-prober proxifiedScripts

Phillip Susi (psusi) wrote :

That file is not part of Ubuntu. What does apt-cache policy grub-common show?

meteor (604733992-qq) wrote :

meteor@Meteor:~$ apt-cache policy grub-common
grub-common:
  已安装: 1.99-21ubuntu3.1
  候选软件包:1.99-21ubuntu3.1
  版本列表:
 *** 1.99-21ubuntu3.1 0
        500 http://mirrors.ustc.edu.cn/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.99-21ubuntu3 0
        500 http://mirrors.ustc.edu.cn/ubuntu/ precise/main amd64 Packages
meteor@Meteor:~$

Phillip Susi (psusi) wrote :

Can you run sudo dpkg -S /etc/grub.d/10_linux_proxy and sudo dpkg -L grub-common?

meteor (604733992-qq) wrote :

meteor@Meteor:/etc/grub.d$ sudo dpkg -S /etc/grub.d/10_linux_proxy
dpkg-query: no path found matching pattern /etc/grub.d/10_linux_proxy.
meteor@Meteor:/etc/grub.d$ sudo dpkg -L grub-common
/.
/usr
/usr/sbin
/usr/sbin/grub-probe
/usr/sbin/grub-mkdevicemap
/usr/sbin/grub-mkconfig
/usr/bin
/usr/bin/grub-mkrelpath
/usr/bin/grub-mkfont
/usr/bin/grub-fstest
/usr/bin/grub-script-check
/usr/bin/grub-mklayout
/usr/bin/grub-mkrescue
/usr/bin/grub-menulst2cfg
/usr/bin/grub-editenv
/usr/bin/grub-bin2h
/usr/bin/grub-mkpasswd-pbkdf2
/usr/bin/grub-kbdcomp
/usr/bin/grub-mount
/usr/bin/grub-mkimage
/usr/lib
/usr/lib/grub
/usr/share
/usr/share/bug
/usr/share/bug/grub-common
/usr/share/bug/grub-common/presubj
/usr/share/apport
/usr/share/apport/package-hooks
/usr/share/apport/package-hooks/source_grub2.py
/usr/share/doc
/usr/share/doc/grub-common
/usr/share/doc/grub-common/README
/usr/share/doc/grub-common/TODO
/usr/share/doc/grub-common/THANKS
/usr/share/doc/grub-common/changelog.Debian.gz
/usr/share/doc/grub-common/AUTHORS
/usr/share/doc/grub-common/copyright
/usr/share/doc/grub-common/examples
/usr/share/doc/grub-common/examples/grub.cfg
/usr/share/doc/grub-common/NEWS.Debian.gz
/usr/share/doc/grub-common/NEWS.gz
/usr/share/grub
/usr/share/grub/update-grub_lib
/usr/share/grub/widthspec.h
/usr/share/grub/ascii.h
/usr/share/grub/unicode.pf2
/usr/share/grub/grub-mkconfig_lib
/usr/share/grub/ascii.pf2
/usr/share/grub/euro.pf2
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/grub-mklayout.1.gz
/usr/share/man/man1/grub-mkfont.1.gz
/usr/share/man/man1/grub-mount.1.gz
/usr/share/man/man1/grub-mkpasswd-pbkdf2.1.gz
/usr/share/man/man1/grub-editenv.1.gz
/usr/share/man/man1/grub-mkrelpath.1.gz
/usr/share/man/man1/grub-mkimage.1.gz
/usr/share/man/man1/grub-mkrescue.1.gz
/usr/share/man/man1/grub-script-check.1.gz
/usr/share/man/man1/grub-bin2h.1.gz
/usr/share/man/man1/grub-menulst2cfg.1.gz
/usr/share/man/man1/grub-fstest.1.gz
/usr/share/man/man8
/usr/share/man/man8/grub-mkdevicemap.8.gz
/usr/share/man/man8/grub-mkconfig.8.gz
/usr/share/man/man8/grub-probe.8.gz
/etc
/etc/init.d
/etc/init.d/grub-common
/etc/bash_completion.d
/etc/bash_completion.d/grub
/etc/grub.d
/etc/grub.d/20_linux_xen
/etc/grub.d/README
/etc/grub.d/41_custom
/etc/grub.d/40_custom
/etc/grub.d/00_header
/etc/grub.d/05_debian_theme
/etc/grub.d/10_linux
/etc/grub.d/30_os-prober
/etc/pm
/etc/pm/sleep.d
/etc/pm/sleep.d/10_grub-common
/usr/lib/grub/update-grub_lib
/usr/lib/grub/grub-mkconfig_lib
meteor@Meteor:/etc/grub.d$

Phillip Susi (psusi) wrote :

10_linux_proxy seems to be a custom config file. If you don't know why it is there, you should remove it, and reinstall grub-common, which should replace 10_linux.

meteor (604733992-qq) wrote :

Do you mean that I do like this?
rm 10_linux_proxy
sudo apt-get install --reinstall grub-common
sudo update-grub.

Phillip Susi (psusi) wrote :

Yes.

meteor (604733992-qq) wrote :

I remove 10_linux_proxy this file.
But below command can not help to create this file.
sudo apt-get install --reinstall grub-common
sudo update-grub.

Then I can only use boot-repair software to reinstall GRUB.
Now it is OK.
No error message anymore.

Launchpad Janitor (janitor) wrote :

[Expired for grub2 (Ubuntu) because there has been no activity for 60 days.]

Changed in grub2 (Ubuntu):
status: Incomplete → Expired
meteor (604733992-qq) on 2012-08-21
Changed in grub2 (Ubuntu):
status: Expired → Confirmed
Phillip Susi (psusi) wrote :

I thought you said this was resolved? What seems to be the problem now? Did you remove the custom config file as I asked?

Changed in grub2 (Ubuntu):
status: Confirmed → Incomplete
Launchpad Janitor (janitor) wrote :

[Expired for grub2 (Ubuntu) because there has been no activity for 60 days.]

Changed in grub2 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers