Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 10-11-2008, 06:57 PM   #1
LQ Newbie
Registered: May 2005
Location: New Jersey
Distribution: Kubuntu
Posts: 3

Rep: Reputation: 0
Question Debian Menu File - Mysterious Syntax Error

I am building a package of the Arduino IDE for a live CD I'm building; I'm trying to make upgrading things easier when it happens instead of chasing file all over the place. When I wrote and tested the menu file (to make things show up in the menu), it barfed with the following syntax error:
/usr/share/menu/arduino: 1: Syntax error: word unexpected (expecting ")")
Execution of /usr/share/menu/arduino generated no output or returned an error.
I've examined line 1 multiple times, then moved to looking through the entire file, and didn't find anything. I've reproduced the entire file below.
	title="Arduino IDE"\
I looked at other menu files to see if I missed something (my first thought was maybe someone made a typo in the guide I was using, and you need quotes around the package name, but other menu files did not have quotes as well), but there was nothing immediately obvious.

I built things using Kubuntu 8.04 KDE4 Remix and tested in in Xubuntu 8.10 Beta in VirtualBox (so as not to ruin things by accident).
Old 08-28-2009, 09:06 AM   #2
Registered: Dec 2004
Location: Dublin Ireland via Cobh, Limerick.
Distribution: RedHat, Suse, Ubuntu.
Posts: 33

Rep: Reputation: 16
Originally Posted by computerdan000 View Post
/usr/share/menu/arduino: 1: Syntax error: word unexpected (expecting ")")
Very very VERY late reply but I've seen a few threads on ther internet without a proper solution for this particular error.

This error ("line 1: syntax error: word unexpected (expecting ")")") is misleading.
It leads one initially to suspect a scripting error.
It can because of trying to run an incompatible (maybe elf64, maybe for a different platform) binary on an elf32 platform (x86/i386).

It is quite like the misleading error you get in solaris 32bit or 64bit "Invalid argument" if trying to run an incompatible binary.
Old 01-09-2011, 08:39 AM   #3
LQ Newbie
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
Idem, very late reply but may be relevant for some users who still have the same problem. So do I but I solve it just before report a bug on Debian Report Bugs...
So my system have about 50 entries missing on his menu and sub-menus. The difference between them is the executive rights of the file in /usr/share/menu/.
An item is present if his corresponding file in /usr/share/menu/ is not executable and an item is not present in the menu if the corresponding file in /usr/share/menu/ is executable.
# update-menus
# chmod +x /usr/share/menu/xmoto 
# update-menus
/usr/share/menu/xmoto: 1: Syntax error: word unexpected (expecting ")")
L'exécution de /usr/share/menu/xmoto n'a créé aucune donnée en sortie ou a retourné une erreur.
# ll /usr/share/menu/xmoto 
-rwxr-xr-x 1 root root 95 22 nov.  21:46 /usr/share/menu/xmoto
# chmod -x /usr/share/menu/xmoto
# update-menus


deb, package

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup Script error "line 31: syntax error: unexpected end of file" eswanepoel General 7 12-07-2007 09:28 AM
Syntax error in sudoers file Julix Linux - General 9 09-07-2007 09:44 PM
Syntax Error Suders file Asteroid Linux - General 1 08-03-2007 02:17 AM
/usr/bin/lesspipe: line 223: syntax error: unexpected end of file fakie_flip Linux - Software 1 09-06-2006 02:22 AM
ndiswrapper throws syntax error when I try to run with my .inf file pfatts Linux - Wireless Networking 8 10-01-2004 04:04 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration