News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

attempted wiimote install, Could not open lock file

Started by Todd, August 20, 2008, 04:37:59 AM

Previous topic - Next topic

Todd

I am attempting to install the wiimote.  I have used Putty on my windows machine that is connected directly to my hybrid/core to use ssh.  When I try to do the first step I get the following:

login as: linuxmce
linuxmce@192.168.80.1's password:
Linux dcerouter 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Last login: Tue Aug 19 06:05:00 2008 from 192.168.0.199
linuxmce@dcerouter:~$ apt-get install libcwiid0
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
linuxmce@dcerouter:~$

I thought linuxmce was root but the error message indicates maybe not?
What do I need to do to correct the above?

colinjones

No, you have to enable root level access by using an su command of some kind. There are many variations depending on what you want to do, however for a single command like this, you would use sudo, so:

sudo apt-get install libcwiid0

then type in the linxumce password

Todd

Thanks colinjones, I can get sudo to take me a ways in the install, but I get a permission denied when I try:

Quotelinuxmce@dcerouter:~$ sudo echo "uinput" >>/etc/modules
-bash: /etc/modules: Permission denied
linuxmce@dcerouter:~$

I tried to use su, but I couldn't get the password to work.  I tried my linuxmce password, blank, "linuxmce", and my first user password, but it always came back:
QuoteAuthentication failure
Sorry.
linuxmce@dcerouter:~$

I don't remember putting in any other passwords.

What should the password be to get su access?
I assume I need it to get the above echo command to work, if not what do I need to do to get the echo command to work?

Sorry for all these linux newbie questions..

colinjones

Sorry, can't really help you - you need someone who knows the Wii. What you have posted seems to suggest that it is trying to append some text, but it looks like it is trying to append it to a directory rather than a file, so no idea what's going on there!

Zaerc

Try becoming root with sudo su - first, then execute the commands without sudo in front of them.
"Change is inevitable. Progress is optional."
-- Anonymous

[url=http://petition.stopsoftwarepatents.eu/181001941347/][/url]

Todd