Apt returns with errors when i install packeges

Asked by Nathan Flowers

when I run apt and use ether full up grade or fetch updates, after i click apply changes i receive the fowling error:

X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 146
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode: 146
  Minor opcode: 3
  Resource id: 0x0

can any one tell me what this means? or how to start diagnosing the problem, were to start. Curently i'm running a 64 bit system on AMD Athlon 64, don't think this matters but i figure that it's worth the thought.
thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Justin Payne
Solved:
Last query:
Last reply:
Revision history for this message
Nathan Flowers (nathan-flowers) said :
#1

the Package still installs, i just would like to know what's going on..

Revision history for this message
Best Justin Payne (neolithium82) said :
#2

Thanks for the Question Nathan,
I suspect that it's caused by the wacom devices in your xorg.conf file, so assuming you don't have any tabletPC devices that you need to use, you can comment out the lines inside that file with the following steps, and it should take care of the problem:

Step 1- Back up your Xorg.conf (VERY IMPORTANT)

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

Step 2- Open up the file for editing:

gksu gedit /etc/X11/xorg.conf

Step 3 - Search for the lines that look as copied and pasted below. They're already commented out, so just add the # to match,and it should work ok

#Section "InputDevice"
# Driver "wacom"
# Identifier "stylus"
# Option "Device" "/dev/input/wacom"
# Option "Type" "stylus"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
#EndSection

#Section "InputDevice"
# Driver "wacom"
# Identifier "eraser"
# Option "Device" "/dev/input/wacom"
# Option "Type" "eraser"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
#EndSection

#Section "InputDevice"
# Driver "wacom"
# Identifier "cursor"
# Option "Device" "/dev/input/wacom"
# Option "Type" "cursor"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
#EndSection

Near the bottom of the file, there are 3 more things to comment out as well. Ensure you just comment out the stylus cursor and eraser items.

Section "ServerLayout"
 Identifier "Default Layout"
 Screen "Default Screen"
 InputDevice "Generic Keyboard"
 InputDevice "Configured Mouse"
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
EndSection

Save the edited file, and restart your XServer with CTRL+ALT+BACKSPACE. Should take care of that message.

Hope this helps,
Justin

PS- If you have any problems with xorg.conf not loading due to a typo or some other reason, you can fix it from the command line interface that you're booted out to, with this command:

sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf

Revision history for this message
Cesare Tirabassi (norsetto) said :
#3

I should add that if you don't mind about the errors showing up here and there, there is no need to edit xorg.conf; the errors in themselves are harmless.

Revision history for this message
Justin Payne (neolithium82) said :
#4

That's quite true as well. I just remember they drove me absolutely batty when I was using terminal for various tasks.

It pretty much comes up to a personal preference on wanting to see them or not.

Regards,
Justin

Revision history for this message
Nathan Flowers (nathan-flowers) said :
#5

Thank, I didn't even think of this, as the problem.
Nathan

>From: "Neolithium (Justin Payne)" <email address hidden>
>Reply-To: "Neolithium (Justin Payne)" <email address hidden>
>To: <email address hidden>
>Subject: Re: [Question #8274]: Apt returns with errors when i install
>packeges
>Date: Fri, 15 Jun 2007 19:14:30 -0000
>
>Your question #8274 on Ubuntu changed:
>https://answers.launchpad.net/ubuntu/+question/8274
>
> Status: Open => Answered
>
>Neolithium (Justin Payne) proposed the following answer:
>Thanks for the Question Nathan,
>I suspect that it's caused by the wacom devices in your xorg.conf file, so
>assuming you don't have any tabletPC devices that you need to use, you can
>comment out the lines inside that file with the following steps, and it
>should take care of the problem:
>
>Step 1- Back up your Xorg.conf (VERY IMPORTANT)
>
>sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
>
>Step 2- Open up the file for editing:
>
>gksu gedit /etc/X11/xorg.conf
>
>Step 3 - Search for the lines that look as copied and pasted below.
>They're already commented out, so just add the # to match,and it should
>work ok
>
>#Section "InputDevice"
># Driver "wacom"
># Identifier "stylus"
># Option "Device" "/dev/input/wacom"
># Option "Type" "stylus"
># Option "ForceDevice" "ISDV4" # Tablet PC ONLY
>#EndSection
>
>#Section "InputDevice"
># Driver "wacom"
># Identifier "eraser"
># Option "Device" "/dev/input/wacom"
># Option "Type" "eraser"
># Option "ForceDevice" "ISDV4" # Tablet PC ONLY
>#EndSection
>
>#Section "InputDevice"
># Driver "wacom"
># Identifier "cursor"
># Option "Device" "/dev/input/wacom"
># Option "Type" "cursor"
># Option "ForceDevice" "ISDV4" # Tablet PC ONLY
>#EndSection
>
>Near the bottom of the file, there are 3 more things to comment out as
>well. Ensure you just comment out the stylus cursor and eraser items.
>
>Section "ServerLayout"
> Identifier "Default Layout"
> Screen "Default Screen"
> InputDevice "Generic Keyboard"
> InputDevice "Configured Mouse"
># InputDevice "stylus" "SendCoreEvents"
># InputDevice "cursor" "SendCoreEvents"
># InputDevice "eraser" "SendCoreEvents"
>EndSection
>
>
>Save the edited file, and restart your XServer with CTRL+ALT+BACKSPACE.
>Should take care of that message.
>
>Hope this helps,
>Justin
>
>PS- If you have any problems with xorg.conf not loading due to a typo or
>some other reason, you can fix it from the command line interface that
>you're booted out to, with this command:
>
>sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf
>
>_______________________________________________________________________
>If this answers your question, please go to the following page to let us
>know that it is solved:
>https://answers.launchpad.net/ubuntu/+question/8274/+confirm?answer_id=1
>
>If you still need help, you can reply to this email or go to the
>following page to enter your feedback:
>https://answers.launchpad.net/ubuntu/+question/8274

_________________________________________________________________
Who's that on the Red Carpet? Play & win glamorous prizes.
http://club.live.com/red_carpet_reveal.aspx?icid=REDCARPET_hotmailtextlink3

Revision history for this message
Nathan Flowers (nathan-flowers) said :
#6

Thanks for the info, I noticed the device information in a prior edit of my xorg.conf file but never thought it would create problems later, i commented out the section like you suggested, and i no longer receive the errors. thanks.

Revision history for this message
Nathan Flowers (nathan-flowers) said :
#7

I just want to add one more thing, you should never just ignore an error, doing so will cause you to get in a bad habit, are cause bigger problems later.