LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-04-2006, 02:50 PM   #1
Slade901
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Rep: Reputation: 0
apt-get usage problem.


I'm using the KioskCD and installed it on the HDD and it is working fine using the built-in ethernet on the PC.

I'm trying to use the Linksys Wireless USB instead and I found a driver for my Linksys Wireless USB at "ralinktech.com/drivers/Linux/RT73_Linux_STA_Drv1.0.3.6.tar.gz"

This is the type of Wireless USB I have WUSB54G ver. 4 = WUSB54GV4 and the Vendor Id: 13b1 Product Id: 000d

I am using kernel version 2.4.22-xfs

To be able to install the driver, I need to use the "make" command. However, make command is not installed.

Note: I'm currently logged in as root. I tried to type the command "apt-get install make" at the root prompt.

I'm getting this message instead.

E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


If I type "apt-get update" I get this message.

E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the list directory


If I type "apt-get upgrade" I get this message.

E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


If I type "apt-get source" I get this message.

Reading Package Lists... Error!
E: Could not open lock file /var/lib/dpkg/status - open (2 No such file or directory)
E: The package lists or status file could not be parsed or opened.


Is there a way I get the apt-get working so I can install the "make" command.

Thanks

Last edited by Slade901; 08-04-2006 at 02:51 PM.
 
Old 08-04-2006, 03:39 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
Try looking to see if something else is using apt. ps aux |grep dpkg or ps aux |grep apt. If there's something already using the process, kill it.

You say you're logged in as root, just confirm that you have a # prompt instead of a ~$ prompt
 
Old 08-04-2006, 03:51 PM   #3
Slade901
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the reply.
Yes I do have the # prompt.

I typed "ps aux |grep dpkg" and "ps aux |grep apt" and seems nothing shows up and I get back to the prompt.

I'm beginning to think that the KioskCD was stripped down of the Package Management tools because I could not even use the aptitude nor the dpkg as well. Is there a link I can get to d/l the Package Management tool and install it?
 
Old 08-04-2006, 03:54 PM   #4
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,396
Blog Entries: 8

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I just looked around at KioskCD's web site. It seems that KioskCD is meant to be a VERY stripped down special purpose Linux distribution. Apt is probably broken.

What exactly are you trying to do with this system? It may be easier to do starting from a normal full featured distribution.
 
Old 08-04-2006, 04:00 PM   #5
Slade901
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by IsaacKuo
I just looked around at KioskCD's web site. It seems that KioskCD is meant to be a VERY stripped down special purpose Linux distribution. Apt is probably broken.

What exactly are you trying to do with this system? It may be easier to do starting from a normal full featured distribution.

I like the fact that the KioskCD only gives you the Firefox browser at boot up and nothing else. However, I don't want to use the Cd-rom and I was able to install it on the HDD and it's working fine but it uses just the built-in ethernet. I would like to use the Linksys Wireless USB instead and found a driver for my wireless USB and the instruction tells me to use the "make" command but it's not installed and I wanted to get it but the "apt-get" is not there as well. Is the Package Management tools available for d/l to install it?
 
Old 08-04-2006, 04:16 PM   #6
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,396
Blog Entries: 8

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Okay, looking around a bit, it seems KioskCD is based on DSL (Damn Small Linux). Here's a note I found about making apt-get work in a DSL hard drive install: http://www.damnsmalllinux.org/dsl-hd-install.html

Maybe the same thing will work with a KioskCD hard drive install.
 
Old 08-04-2006, 04:54 PM   #7
Slade901
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the reply.

Update:

I got the compressed dpkg file and moved it to /var/lib/ and uncompress it but still the I'm unable to use the apt-get.

I tried to type tye dpkg-restore but I get a reply
bash: dpkg-restore: command not found


I typed "apt-get install make" and I get
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened.
 
Old 08-04-2006, 05:03 PM   #8
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,396
Blog Entries: 8

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Wow, I guess that KioskCD stripped out even whatever minimal stuff DSL had left in place to barely allow the apt-get package management system to be resurrected.

Okay, I think it's best to give up on apt, and tackle the original problem a different way. If you install Debian 3.1 somewhere, then you'll be able to use "make" to compile that driver. Then you could copy over the executable module it generates to your KioskCD install.

The "somewhere" where you install Debian could be another partition, or another hard drive, or another computer.
 
Old 08-04-2006, 05:09 PM   #9
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,396
Blog Entries: 8

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hmm...I had another thought. MAYBE you can install DSL, get apt working as described above, and then get the wireless networking working. Then you install whatever KioskCD packages aren't already installed (like lwm).

At that point, you boot up with a LiveCD (like DSL) and then copy over the /etc/init.d scripts from the KioskCD install into the modified DSL install. Thus, instead of bringing up DSL's fluxbox interface, it brings up KioskCD's minimalist lwm/Firefox interface.

Maybe that could work...maybe?
 
Old 08-11-2006, 10:42 AM   #10
Slade901
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by IsaacKuo
Wow, I guess that KioskCD stripped out even whatever minimal stuff DSL had left in place to barely allow the apt-get package management system to be resurrected.

Okay, I think it's best to give up on apt, and tackle the original problem a different way. If you install Debian 3.1 somewhere, then you'll be able to use "make" to compile that driver. Then you could copy over the executable module it generates to your KioskCD install.

The "somewhere" where you install Debian could be another partition, or another hard drive, or another computer.
I'm trying to install Debian 3.1 180Megs version and trying to compile the driver this way. However, first I was not able to run the dos2unix and so I run the "apt-get install sysutils" and get the dos2unix command working but I get an error "dos2unix" No write permission on rt73sta.dat" when I execute "dos2unix rt73sta.dat". However, I'm hoping that I can go by that command and proceed with the next command "$cp rt73sta.dat /etc/Wireless/RT73STA/rt73sta.dat" and then "load" command but I can't find the load command. What package does the load command belongs to so I can get it?

Thanks,
 
Old 08-11-2006, 10:45 AM   #11
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,396
Blog Entries: 8

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I'm afraid that most of that went over my head. I think it's time for you to start a new thread, with a subject line refering to the wireless adapter you're trying to get working.
 
Old 08-16-2006, 05:34 PM   #12
Slade901
LQ Newbie
 
Registered: Aug 2006
Posts: 9

Original Poster
Rep: Reputation: 0
I have to type "chmod 777 rt73sta.dat" to make file writable and then I can issue "dos2unix rt73sta.dat"
Also, I have to type "./load" instead to make it work.
 
  


Reply


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
Memory Usage Spaw Usage Swappiness Issues joelunch Linux - Software 3 01-04-2006 06:16 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM
rh9 xd2 apt apt-get problem fix and solution transeunt Red Hat 0 12-16-2003 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:16 AM.

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