maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   i type "apt-get" in but says 'could not open lock file' (https://talk.maemo.org/showthread.php?t=44812)

-eWf 2010-02-17 07:17

i type "apt-get" in but says 'could not open lock file'
 
I'm trying to update my n900 to the latest firmware, which I recieved this morning. I've been reading in the threads etc so I've tried doing this

in x terminal:
apt-get clean
apt-get update
apt-get upgrade

But when I type it into x terminal this error comes up for all three:

"
E: Counld not open lock file /var/lib/apt/lists/lock - open (13 Permission denied)
E: Unable to lock the list directory
~ $"


Thanks.

zehjotkah 2010-02-17 07:19

Re: i type "apt-get" in but says 'could not open lock file'
 
Quote:

Originally Posted by -eWf (Post 531590)
I'm trying to update my n900 to the latest fireware, which I recieved this morning. I've been reading in the threads etc so I've tried doing this

in x terminal:
apt-get clean
apt-get update
apt-get upgrade

But when I type it into x terminal this error comes up for all three:

"E: Counld not open lock file /var/lib/apt/lists/lock - open (13 Permission denied)
E: Unable to lock the list directory
~ $"


Thanks.


You need to have "rootsh" installed, from application manager.
Then type first in:

root

and then the other commands..

-eWf 2010-02-17 07:29

Re: i type "apt-get" in but says 'could not open lock file'
 
WOW FAST REPLY! Thanks man, works like a treat :) I updated :)

Love your accent btw.

ossipena 2010-02-17 07:30

Re: i type "apt-get" in but says 'could not open lock file'
 
http://wiki.maemo.org/General_precautions
http://wiki.maemo.org/root

mfr 2010-11-12 06:06

Re: i type "apt-get" in but says 'could not open lock file'
 
I have installed Rootsh but still i get the same error?

zehjotkah 2010-11-12 07:18

Re: i type "apt-get" in but says 'could not open lock file'
 
Quote:

Originally Posted by mfr (Post 871149)
I have installed Rootsh but still i get the same error?

do you have the applicaton manager still opened?
Then close it first...

cbrill 2010-11-12 07:34

Re: i type "apt-get" in but says 'could not open lock file'
 
Quote:

Originally Posted by mfr (Post 871149)
I have installed Rootsh but still i get the same error?

@mfr: as mentioned before, you need administrative rights to run apt-get foo.
So: Go to application manager - check if you really have successfully installed rootsh.
Open xterm/busybox an type in: sudo gainroot [enter]
Wait for the prompt, then type in: whoami [enter]
Xterm's answer should be: root
(If not, your system is broken & you'll really need help).
If so, you can go on typing in: apt-get [option] [package].

Please notice:
1) Application manager must be closed to run apt-get, otherwise you'll get that error message again.
2) You *must* enter: exit [enter]
after apt-get finished it's job -- otherwise you'll most likely break your system within the next five minutes.

Just allow me one question: Who the heck told you to mess around with apt when you are so unfamiliar with linux /maemo?
(It's really easy to brick your device typing in commands without knowing their meaning!)

Regards, CB

geneven 2010-11-12 07:58

Re: i type "apt-get" in but says 'could not open lock file'
 
Yeah, only people already familiar with linux should mess around with linux! That's how it got so popular!

cbrill 2010-11-12 15:39

Re: i type "apt-get" in but says 'could not open lock file'
 
Well, you are right.

The word 'free' in free software refers to the freedom even to brick your 600 € device.

Anyway, I thought it was only fair to point to that risk in advance - rather than laugh in schadenfreude afterwards.

fahadj2003 2010-11-12 16:19

Re: i type "apt-get" in but says 'could not open lock file'
 
open app manager
close app manager
wait for 5 min
then try again

**edit
wait
maybe i'm referring to a different error
:-/

vitaminj 2010-11-12 19:05

Re: i type "apt-get" in but says 'could not open lock file'
 
Yeah, close Hildon App Manager.
But the question has to be asked - why can't you update using the app manager? You're lining yourself up for possible problems using apt-get for such a big update.

CepiPerez 2010-11-12 19:09

Re: i type "apt-get" in but says 'could not open lock file'
 
It happens when app manager updates catalogues in background
It's easy to solve:
sudo gainroot
killall apt-worker

geneven 2010-11-12 19:19

Re: i type "apt-get" in but says 'could not open lock file'
 
These conversations go on so long after the OP has solved the problem, or left...zehjotkah had it right. No response since.

kureyon 2010-11-13 05:26

Re: i type "apt-get" in but says 'could not open lock file'
 
But mfr revived this old thread, which is good as it shows that he/she has been searching instead of starting a new thread :)

mobesherzahid 2012-08-28 11:57

Re: i type "apt-get" in but says 'could not open lock file'
 
Quote:

Originally Posted by zehjotkah (Post 871183)
do you have the applicaton manager still opened?
Then close it first...

hello to all my friends

the problem m facing with my n900 from last couples of days when i attach my n900 to one of my friends pc its running on win 7 kindly help me on belows.

Question #1
when i connect my n900 through USB cable as mass storage mode it show me 2 icons (one icon displays n900 pic,other icon displays simple drive pic) when i open the n900 drive its empty no data folder such as image,audio,videos shown...at the same time when i copy any data from PC and i put in my memory and unplug my n900 its shows me in file manager outside the data folder, and my all data folder are showing same contents,

-Question #2
before showing this prblem i install GPS maps and now i uninstall all these application.

-Question #3-
i dnt wnt to use PC suite i love to use Mass storage mode

reinob 2012-08-28 15:03

Re: i type "apt-get" in but says 'could not open lock file'
 
@mobesherzahid,

(1) Use the search function,
(2) Don't hijack an unrelated, dead, thread.

mobesherzahid 2012-08-29 08:54

Re: i type "apt-get" in but says 'could not open lock file'
 
Quote:

Originally Posted by reinob (Post 1256771)
@mobesherzahid,

(1) Use the search function,
(2) Don't hijack an unrelated, dead, thread.

bro can u explain me.....

michaaa62 2012-08-29 10:56

Re: i type "apt-get" in but says 'could not open lock file'
 
1.Try to use words and sentences, many here are not native in English, still trying hard to support you.
2.Try to get as much focus as you can to your issue you have with your phone by starting a fresh thread. Else your issue will draw only the attention of people interested in the thread title.
3.Try to get familiar with the Search, better even Advanced Search, -feature of this forum. With this rather aging devices, chances are that your problem or the solution might be discussed earlier.

sajidsdk 2015-02-20 15:41

Re: i type "whoami
 
hey bro please help me ..
when i typed whoami in terminal it xtrem said user
how to change it into root ,
i have to delete some data from phone for that i need to open app manager and its not opening because i am l am not root app manager says operation failed.

Markkyboy 2015-02-21 19:48

Re: i type "whoami
 
Quote:

Originally Posted by sajidsdk (Post 1461489)
hey bro please help me ..
when i typed whoami in terminal it xtrem said user
how to change it into root ,
i have to delete some data from phone for that i need to open app manager and its not opening because i am l am not root app manager says operation failed.

The answers you require are all in this thread, refer to post #7 from cbrill - he tells you exactly how to change it so you get 'root'.

Regards,


All times are GMT. The time now is 18:39.

vBulletin® Version 3.8.8