maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Problem in Terminal (https://talk.maemo.org/showthread.php?t=88648)

michaaa62 2013-01-14 19:01

Re: Problem in Terminal
 
@Ammar Hamdan
The warning is expected since the keys are expired, blame Nokia.
Try using force-yes option to get the package to your N900
Code:

apt-get install --reinstall --force-yes -dy libc6

unexpected 2013-01-14 20:57

Re: Problem in Terminal
 
Quote:

Originally Posted by michaaa62 (Post 1314810)

thank u very much for the help :)
heres the output of first command:
Code:

BusyBox v1.20.2 (Debian 1.20.2power5+thumb0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.20.2 (Debian 1.20.2power5+thumb0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# apt-get purge libwrt-api1 qtwrt wrt wrt-api wrt
-api-experimental
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Nokia-N900:~#

sorry m not a programmer so i cant understand the line below that :p
can u please simply give me codes & i'll put them on terminal :)
thanx again

dzano 2013-01-14 21:17

Re: Problem in Terminal
 
Close HAM!

anthonie 2013-01-14 21:34

Re: Problem in Terminal
 
unexpected:

as root, do

Code:

cp /var/lib/dpkg/lock /var/lib/dpkg/lock.backup
Code:

rm /var/lib/dpkg/lock
Then run the command you were trying, prior to this error, again.

michaaa62 2013-01-14 21:53

Re: Problem in Terminal
 
@unexpected
Would be easier to take your problem to the dedicated thread, not everyone likes to switch to this thread to look up the commands...

unexpected 2013-01-14 21:56

Re: Problem in Terminal
 
@dzano HAM was closed

@anthonie
heres the output:



BusyBox v1.20.2 (Debian 1.20.2power5+thumb0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.20.2 (Debian 1.20.2power5+thumb0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# cp /var/lib/dpkg/lock /var/lib/dpkg/lock.backup
Nokia-N900:~# rm /var/lib/dpkg/lock
Nokia-N900:~# apt-get purge libwrt-api1 qtwrt wrt wrt-api wr
t-api-experimental
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package wrt-api-experimental is not installed, so not removed
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
qtwrt-experimental: Depends: wrt-experimental (= 1.1tp-3) but it is not going to be installed
Depends: wrt-api-experimental (= 1.1tp-3) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Nokia-N900:~#

also tried apt-get -f install but same error

unexpected 2013-01-14 22:04

Re: Problem in Terminal
 
@michaaa62
posted there :)

reinob 2013-01-15 10:01

Re: Problem in Terminal
 
Quote:

Originally Posted by Ammar Hamdan (Post 1314781)
At first thx guys 4 ur replies :)



it shows this:

Code:

~ # echo $PATH
/usr/bin:/bin
~ #


This is clearly wrong (or at least will cause unexpected problems such as the one you have).

My (root) PATH has
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11

Please (again as root), type "cat /root/.profile"

Mine has (typing by hand):
Code:

if [ -f ~/.bashrc ]; then
 . ~/.bashrc
fi

PATH=(the line above)
export PATH

mesg n

You haven't played with speedpatch and/or batterypatch lately, have you?

reinob 2013-01-15 10:04

Re: Problem in Terminal
 
Quote:

Originally Posted by michaaa62 (Post 1314811)
@Ammar Hamdan
The warning is expected since the keys are expired, blame Nokia.
Try using force-yes option to get the package to your N900
Code:

apt-get install --reinstall --force-yes -dy libc6

If the PATH is wrongly set, which is clearly the case, then neither dpkg nor apt-get (which will call dpkg anyway) will work at all, so regardless of whatever fancy commands the OP is asked to execute, none will work until he fixes the PATH, which takes all of 1 minute.


All times are GMT. The time now is 21:48.

vBulletin® Version 3.8.8