Author Topic: attempted wiimote install, Could not open lock file  (Read 1038 times)

Todd

  • Regular Poster
  • **
  • Posts: 35
    • View Profile
attempted wiimote install, Could not open lock file
« on: August 20, 2008, 04:37:59 am »
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

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: attempted wiimote install, Could not open lock file
« Reply #1 on: August 20, 2008, 06:49:53 am »
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

  • Regular Poster
  • **
  • Posts: 35
    • View Profile
Re: attempted wiimote install, Could not open lock file
« Reply #2 on: August 20, 2008, 01:24:48 pm »
Thanks colinjones, I can get sudo to take me a ways in the install, but I get a permission denied when I try:

Quote
linuxmce@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:
Quote
Authentication 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

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: attempted wiimote install, Could not open lock file
« Reply #3 on: August 20, 2008, 03:01:50 pm »
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

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 2256
  • Department of Redundancy Department.
    • View Profile
Re: attempted wiimote install, Could not open lock file
« Reply #4 on: August 20, 2008, 03:59:22 pm »
Try becoming root with
Code: [Select]
sudo su - first, then execute the commands without sudo in front of them.
"Change is inevitable. Progress is optional."
-- Anonymous


Todd

  • Regular Poster
  • **
  • Posts: 35
    • View Profile
Re: attempted wiimote install, Could not open lock file
« Reply #5 on: August 20, 2008, 05:11:37 pm »
Thanks Zaerc, that worked. ;D