LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-27-2011, 03:23 PM   #1
whittycat
Member
 
Registered: Nov 2004
Location: Wellington Somerset UK
Distribution: Debian lenny, also DSL-N
Posts: 32

Rep: Reputation: 15
apt-get generates odd errors


I am running Debian Lenny and if I try to install something with apt-get it
behaves normally until near the end when I get this sort of thing:

Code:
Processing triggers for menu ...
/usr/share/menu/w3m: line 1: syntax error near unexpected token `w3m'
/usr/share/menu/w3m: line 1: `?package(w3m):needs="text" section="Apps/Net"\'
Execution of /usr/share/menu/w3m generated no output or returned an error.
/usr/share/menu/tcsh: line 1: syntax error near unexpected token `tcsh'
/usr/share/menu/tcsh: line 1: `?package(tcsh):needs="text" section="Apps/Shells"\'
and more of the same. The file w3m contains this:
Code:
?package(w3m):needs="text" section="Apps/Net"\
  title="w3m" command="/usr/bin/w3m /usr/share/doc/w3m/MANUAL.html" \
  hints="Web browsers"
So what please is the syntax error and how do I correct it? What is the function of /usr/share/menu?
 
Old 05-27-2011, 03:33 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What does your sources.list look like?

I believe /usr/share/menu is the Debian menu system. It populates the "Debian" menu in whatever desktop you're using.
 
1 members found this post helpful.
Old 05-27-2011, 05:57 PM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,887
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
w3m file here:
Code:
 cat /usr/share/menu/w3m
?package(w3m):needs="text" \
  section="Applications/Network/Web Browsing" \
  title="w3m" \
  command="/usr/bin/w3m /usr/share/doc/w3m/MANUAL.html" \
  hints="Web browsers"
My suggestion would be to purge w3m, apt-get purge w3m. Post any errors that might generate.

Debian Menu System - http://www.debian.org/doc/packaging-manuals/menu.html/
 
1 members found this post helpful.
Old 05-28-2011, 06:40 AM   #4
whittycat
Member
 
Registered: Nov 2004
Location: Wellington Somerset UK
Distribution: Debian lenny, also DSL-N
Posts: 32

Original Poster
Rep: Reputation: 15
Ah, so I've got a bit of reading to do. Give me a couple of days and I'll report
back.
 
Old 05-28-2011, 08:47 AM   #5
whittycat
Member
 
Registered: Nov 2004
Location: Wellington Somerset UK
Distribution: Debian lenny, also DSL-N
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks for the comment pljvaldez. Here is my sources.list (but I think it is ok):

Code:
deb http://ftp.uk.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.uk.debian.org/debian/ lenny main contrib non-free

deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib
I had a quick read of the document on menus and I still can't see that there
is a syntax error, except perhaps that the section for w3m is given as Apps/Net
but I don't seem to have a section Apps (I do have Applications) and Apps is
not in the Debian policy document either. This is probably not the problem though
because the menu file for xsane has section="Applications/Graphics".

Whatever the problem was I took your advice and purged all four of the
applications (it purged gnome as well but I use KDE). I purged and re-installed
tcsh and now there are no menu errors. So thank you very very much.
 
Old 05-29-2011, 08:23 AM   #6
jeremy-passarelli
LQ Newbie
 
Registered: May 2011
Location: USA
Distribution: Chakra
Posts: 17

Rep: Reputation: 10
Why are you even running Lenny?
 
Old 05-29-2011, 05:08 PM   #7
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
You may want to add these

Code:
deb http://backports.debian.org/debian-backports lenny-backports main
deb-src http://backports.debian.org/debian-backports lenny-backports main
Just a suggestion and no help in your current problem.

The syntax looks good to me too although I thought the "ftp" entries looked like;
Code:
deb ftp://mirror.cpsc.ucalgary.ca/debian/ testing main contrib non-free
I don't have an install of Lenny. That being the case I can't check on "apps" there but there is certainly a /usr/share/apps in Squeeze and Wheezy.
Quote:
tom@debian:~$ ls /usr/share/apps
konsole
It does not have much in it. It would not hurt to create such a directory in your install. You can always remove it later.

@jeremy-passarelli
Lenny is the "old stable". It will be maintained until Wheezy (current testing) becomes the "stable". At that time you will see Squeeze (current stable) become the old stable and folks will need to move on from Lenny at that time.

While I do not have Lenny installed here there are folks that do not have a fetish for the cutting edge. There are, forgive the reference to MS, still more folks using MS XP than MS Vista AND MS 7. Lenny is surely as up to date as XP and it is supported which is more than can be said for XP.
 
Old 05-29-2011, 05:31 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by widget View Post
Lenny is the "old stable". It will be maintained until Wheezy (current testing) becomes the "stable".
Nope, oldstable is only supported for one year after the new stable is released. From the Debian Wiki's DebianOldStable page:
Quote:
How long will security updates be provided?

The security team tries to support a stable distribution for about one year after the next stable distribution has been released, except when another stable distribution is released within this year.
 
Old 05-29-2011, 07:23 PM   #9
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by TobiSGD View Post
Nope, oldstable is only supported for one year after the new stable is released. From the Debian Wiki's DebianOldStable page:
Well, he says in a huff, I stand corrected again.

Good thing folks watch out for grumpy geezers and their bad memories.
 
  


Reply



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
"make" always generates errors, regardless of program install attempted: Ubuntu 8.04 computer_freak_8 Linux - Software 9 07-17-2008 03:56 PM
Odd WPA_Supplicant Errors stlpcsolutions Linux - Wireless Networking 1 07-23-2006 06:35 AM
Odd Apt-get Install BittaBrotha Debian 5 11-02-2005 03:10 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
odd apt-get error in debian Lleb_KCir Linux - Software 2 10-08-2004 10:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:30 PM.

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