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)

Ammar Hamdan 2013-01-13 12:35

Problem in Terminal
 
hiii...

I have a problem with terninal, I can't upgrade or install any app..

hope someone find a solution for this problem......


here's an output of terminal:


Code:

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # apt-get upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages have been kept back:
  tor
The following packages will be upgraded:
  espeak-data libespeak qcpufreq
3 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 157kB/1126kB of archives.
After this operation, 41.0kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://repository.maemo.org fremantle/free qcpufreq 0.4.4-1 [157kB]
Fetched 157kB in 2s (54.4kB/s) 
dpkg: `ldconfig' not found on PATH.
dpkg: `start-stop-daemon' not found on PATH.
dpkg: `install-info' not found on PATH.
dpkg: `update-rc.d' not found on PATH.
dpkg: 4 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
W: Ignoring Provides line with DepCompareOp for package binutils
W: You may want to run apt-get update to correct these problems
E: Sub-process /usr/bin/dpkg returned an error code (2)
~ #


Wikiwide 2013-01-13 14:09

Re: Problem in Terminal
 
Bumping...
What happens if you run 'apt-get update'?

Ammar Hamdan 2013-01-13 14:52

Re: Problem in Terminal
 
apt-get update:

Code:

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # apt-get update
Hit http://repository.maemo.org fremantle Release.gpg
Ign http://repository.maemo.org fremantle/free Translation-en_US
Ign http://repository.maemo.org fremantle/non-free Translation-en_US
Hit http://repository.maemo.org fremantle-1.3 Release.gpg
Get:1 https://downloads.maemo.nokia.com ./ Release.gpg [198B]
Ign http://repository.maemo.org fremantle-1.3/free Translation-en_US
Ign http://repository.maemo.org fremantle-1.3/non-free Translation-en_US
Hit http://repository.maemo.org fremantle Release.gpg
Ign https://downloads.maemo.nokia.com ./ Translation-en_US
Ign http://repository.maemo.org fremantle/free Translation-en_US
Ign http://repository.maemo.org fremantle/non-free Translation-en_US
Hit http://repository.maemo.org fremantle Release.gpg
Ign http://repository.maemo.org fremantle/free Translation-en_US
Ign http://repository.maemo.org fremantle/non-free Translation-en_US
Hit http://repository.maemo.org fremantle Release.gpg
Get:2 https://downloads.maemo.nokia.com ./ Release.gpg [198B]
Ign http://repository.maemo.org fremantle/free Translation-en_US
Ign http://repository.maemo.org fremantle/non-free Translation-en_US
Hit http://repository.maemo.org fremantle-1.3 Release.gpg
Ign https://downloads.maemo.nokia.com ./ Translation-en_US
Ign http://repository.maemo.org fremantle-1.3/free Translation-en_US
Ign http://repository.maemo.org fremantle-1.3/non-free Translation-en_US
Hit http://repository.maemo.org fremantle Release
Hit http://repository.maemo.org fremantle-1.3 Release
Get:3 https://downloads.maemo.nokia.com ./ Release.gpg [198B]
Hit http://repository.maemo.org fremantle Release         
Hit http://repository.maemo.org fremantle Release         
Ign https://downloads.maemo.nokia.com ./ Translation-en_US
Hit http://repository.maemo.org fremantle Release         
Hit https://downloads.maemo.nokia.com ./ Release         
Hit http://repository.maemo.org fremantle-1.3 Release     
Hit https://downloads.maemo.nokia.com ./ Release         
Hit https://downloads.maemo.nokia.com ./ Release         
Ign http://repository.maemo.org fremantle/free Packages/DiffIndex
Ign http://repository.maemo.org fremantle/non-free Packages/DiffIndex
Ign http://repository.maemo.org fremantle-1.3/free Packages/DiffIndex
Ign http://repository.maemo.org fremantle-1.3/non-free Packages/DiffIndex
Get:4 https://downloads.maemo.nokia.com ./ Release [507B] 
Err https://downloads.maemo.nokia.com ./ Release         
 
Ign http://repository.maemo.org fremantle/free Packages/DiffIndex
Ign http://repository.maemo.org fremantle/non-free Packages/DiffIndex
Ign http://repository.maemo.org fremantle/free Packages/DiffIndex
Get:5 https://downloads.maemo.nokia.com ./ Release [507B] 
Ign http://repository.maemo.org fremantle/non-free Packages/DiffIndex
Ign http://repository.maemo.org fremantle/free Packages/DiffIndex
Ign http://repository.maemo.org fremantle/non-free Packages/DiffIndex
Err https://downloads.maemo.nokia.com ./ Release         
 
Ign http://repository.maemo.org fremantle-1.3/free Packages/DiffIndex
Ign http://repository.maemo.org fremantle-1.3/non-free Packages/DiffIndex
Ign https://downloads.maemo.nokia.com ./ Release         
Get:6 https://downloads.maemo.nokia.com ./ Release [507B] 
Ign https://downloads.maemo.nokia.com ./ Release         
Ign https://downloads.maemo.nokia.com ./ Release         
Hit http://repository.maemo.org fremantle/free Packages   
Hit http://repository.maemo.org fremantle/non-free Packages
Ign https://downloads.maemo.nokia.com ./ Packages/DiffIndex
Hit http://repository.maemo.org fremantle-1.3/free Packages
Hit http://repository.maemo.org fremantle-1.3/non-free Packages
Hit http://repository.maemo.org fremantle/free Packages   
Ign https://downloads.maemo.nokia.com ./ Packages/DiffIndex
Hit http://repository.maemo.org fremantle/non-free Packages
Hit http://repository.maemo.org fremantle/free Packages   
Hit http://repository.maemo.org fremantle/non-free Packages
Hit http://repository.maemo.org fremantle/free Packages   
Hit http://repository.maemo.org fremantle/non-free Packages
Ign https://downloads.maemo.nokia.com ./ Packages/DiffIndex
Hit http://repository.maemo.org fremantle-1.3/free Packages
Hit http://repository.maemo.org fremantle-1.3/non-free Packages
Hit https://downloads.maemo.nokia.com ./ Packages         
Hit https://downloads.maemo.nokia.com ./ Packages         
Hit https://downloads.maemo.nokia.com ./ Packages         
Fetched 2115B in 13s (152B/s)                             
Reading package lists... Done
W: Conflicting distribution: http://repository.maemo.org fremantle-1.3 Release (expected fremantle-1.3 but got )
W: GPG error: https://downloads.maemo.nokia.com ./ Release: The following signatures were invalid: KEYEXPIRED 1349249546 KEYEXPIRED 1349249546 KEYEXPIRED 1349249546
W: GPG error: https://downloads.maemo.nokia.com ./ Release: The following signatures were invalid: KEYEXPIRED 1349249546 KEYEXPIRED 1349249546 KEYEXPIRED 1349249546
W: GPG error: https://downloads.maemo.nokia.com ./ Release: The following signatures were invalid: KEYEXPIRED 1349249546 KEYEXPIRED 1349249546 KEYEXPIRED 1349249546
W: You may want to run apt-get update to correct these problems
~ #


anthonie 2013-01-13 17:36

Re: Problem in Terminal
 
I can't believe, people keep doing apt-get upgrade. Who tells them to do that? Might as well ask them to double click the exe file in order to install this or that,,,

--------

The only error message I know of the OP is the ldconfig one, that is, AFAIK ldconfig belongs to the libc6 package. The other packages I know, but how they got messed up, no clue.

Apparently packages have been removed before that are needed now. Unless you know what package had files like "install-info" and such, I don't know how to solve it.

Wikiwide 2013-01-14 00:34

Re: Problem in Terminal
 
Well, I do keep doing "apt-get update" and "apt-get upgrade" in order to update the packages. Sometimes, I use aptitude instead of directly calling apt-get.
And when I need to install something on Windows machine, the steps often are: download, check on virustotal, double-click the exe file.
Since libc6 package has some files lost, "apt-get install libc6" could be attempted. However, since dpkg seems to be unable to work due to these errors, the user might have to unpack libc6 manually, to get ldconfig in the filesystem.

shadowjk 2013-01-14 00:47

Re: Problem in Terminal
 
I think what anthonie was referring to, was that apt-get upgrade often does bad things, and or leaves things incomplete. Using apt-get directly in Maemo is only recommended if you know what you're doing, and "knowing what you're doing" isn't the same thing as "knowing what I'm doing if this was exactly like debian or ubuntu".

As for the original issue, things looks very strange indeed. Key programs have gone missing...

misiak 2013-01-14 00:55

Re: Problem in Terminal
 
OP seems to be from Syria... OP, could it be possible that your ISP is blocking access to Nokia's servers containing repositories?

anthonie 2013-01-14 01:23

Re: Problem in Terminal
 
Quote:

Well, I do keep doing "apt-get update" and "apt-get upgrade" in order to update the packages. Sometimes, I use aptitude instead of directly calling apt-get.
Thats cool for you, but I believe this advice should always be accompanied by a thick hefty disclaimer. It simply isn't the same as a Debian distro. If I got a euro for every thread here on TMO, where things have gone bad for the OP's N900, and somewhere in the thread apt-get upgrade is being mentioned, I could buy myself another N900 second-hand from ebay.

Every time an uneducated person performs apt-get upgrade on a N900, Minerva chuckles and sighs. :D

Quote:

However, since dpkg seems to be unable to work due to these errors, the user might have to unpack libc6 manually, to get ldconfig in the filesystem.
Possibly, at least worth a try. But that's only one problem we were able to identify. Of the others it is quite unclear what manual measures ought to be taken.

reinob 2013-01-14 07:57

Re: Problem in Terminal
 
Quote:

Originally Posted by Ammar Hamdan (Post 1314355)
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.

As root, type "echo $PATH", and post here the exact output.

michaaa62 2013-01-14 08:16

Re: Problem in Terminal
 
If this essential package is broken, something went terribly wrong. It might be necessary and faster to backup and reflash.

Nevertheless, you could try to extract the libc6 package with
Code:

sudo gainroot
apt-get install --reinstall -dy libc6
dpkg -x /var/cache/apt/archives/libc6*.deb

to fix this issue, but...

anthonie 2013-01-14 12:50

Re: Problem in Terminal
 
Another thing that might shed some light on the matter, is having a look at the most recent updates performed by dpkg:

Code:

ls -tl /var/lib/dpkg/info/ | less

sulu 2013-01-14 14:04

Re: Problem in Terminal
 
just a side note:
On any Debian based system (including Ubuntu, Maemo, yadda yadda...), always use dist-upgrade instead of upgrade!
In most cases both will do the same but there are some situations where upgrade might break things, especially if you run a release mix (e.g. extras + extras-testing; but frankly virtually any two Maemo repositories combined should be considered a release mix).
In a dependency hell environment like Maemo dist-upgrade might break things too, but if it does upgrade would have broken it anyway (if it wouldn't have, dependency hell had just become yet a bit hotter).

mr_pingu 2013-01-14 14:07

Re: Problem in Terminal
 
Never, but never use dist-upgrade in maemo 5!

sulu 2013-01-14 15:02

Re: Problem in Terminal
 
Quote:

Originally Posted by mr_pingu (Post 1314710)
Never, but never use dist-upgrade in maemo 5!

I've used dist-upgrade for two years without any mayor* problems. On the other hand I believe I know what I'm doing (I've been using Debian for years) and therefore understand what apt want's to tell me.

The main difference between upgrade and dist-upgrade is that upgrade only updates installed packages to their newest version while dist-upgrade checks whether updated packages have changes in their dependency lists and installs these new dependencies.

If your red warning is true it's even more true for update. dist-upgrade breaking something that upgrade would not have broken is always a clear sign of severe dependency problems in your system and/or repositories that need to be fixed instead of falling back to upgrade and crossing your fingers (which might work for now but will cause further problems in the future).

*) read: I've had broken dependencies but I knew that in advance and I at least had a general idea of how to fix them.

shadowjk 2013-01-14 15:41

Re: Problem in Terminal
 
Thing is, since apt-get isn't meant to be used directly in maemo, and since dependencies and upgrades aren't treated the same way in maemo as in debian, using apt-get upgrade and dist-upgrade tries to pretend maemo is debian, which it isn't, and might pull in incompatible packages which otherwise wouldn't get installed when using HAM.

Additionally, there are extra directives that apt-get doesn't understand, but HAM does. Especially when dealing with kernels :)

sulu 2013-01-14 16:14

Re: Problem in Terminal
 
In what way is Maemo's package management not Debian and in what way is HAM not just another apt front-end like Synaptic on desktops?
Which directives does HAM use that apt (or dpkg) doesn't understand?

As I said, I'm a Debian user and I've treated Maemo like Debian for the past two years when it comes to package management. I've used HAM once in a while but mainly I've been using apt and I had no unresolvable problems (most weren't even unexpected once I knew in which shape Maemo's repositories are).

Maybe I've been missing something for the past two years which may well be the case since I never brought myself in a position that I couldn't handle (resolve or revert).

Ammar Hamdan 2013-01-14 17:18

Re: Problem in Terminal
 
At first thx guys 4 ur replies :)

Quote:

Originally Posted by reinob (Post 1314622)
As root, type "echo $PATH", and post here the exact output.

it shows this:

Code:

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


Ammar Hamdan 2013-01-14 17:29

Re: Problem in Terminal
 
Quote:

Originally Posted by michaaa62 (Post 1314625)
to extract the libc6 package with
Code:

sudo gainroot
apt-get install --reinstall -dy libc6
dpkg -x /var/cache/apt/archives/libc6*.deb

to fix this issue, but...

here's an output of apt-get install --reinstall -dy libc6:

Code:

WARNING: The following packages cannot be authenticated!
  libc6
E: There are problems and -y was used without --force-yes
/home/user #


unexpected 2013-01-14 18:48

Re: Problem in Terminal
 
hi all,
sorry to interrupt,but i also have a problem in X-terminal.Please help.its not going to able me install/uninstall anything...
Thank u very much in advance.
heres the output of some commands:
after apt-get upgrade
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 upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
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 installed
                      Depends: wrt-api-experimental (= 1.1tp-3) but it is not installed
E: Unmet dependencies. Try using -f.
Nokia-N900:~#

and after apt-get update
Code:

Ign https://downloads.maemo.nokia.com ./ Packages       
Hit https://downloads.maemo.nokia.com ./ Packages       
Hit https://downloads.maemo.nokia.com ./ Packages       
Hit https://downloads.maemo.nokia.com ./ Packages       
Err http://repository.maemo.org fremantle Release.gpg   
  Could not connect to repository.maemo.org:80 (188.117.59.203), connection timed out
Err http://repository.maemo.org fremantle/free Translation-en_GB
  Unable to connect to repository.maemo.org http:
Err http://repository.maemo.org fremantle/non-free Translation-en_GB
  Unable to connect to repository.maemo.org http:
Get:7 http://maemo.merlin1991.at fremantle Release.gpg [490B]
Ign http://maemo.merlin1991.at fremantle/free Translation-en_GB
Ign http://maemo.merlin1991.at fremantle/non-free Translation-en_GB
Err http://repository.maemo.org fremantle-1.3 Release.gpg
  Unable to connect to repository.maemo.org http:
Err http://repository.maemo.org fremantle-1.3/free Translation-en_GB
  Unable to connect to repository.maemo.org http:
Err http://repository.maemo.org fremantle-1.3/non-free Translation-en_GB
  Unable to connect to repository.maemo.org http:
Err http://repository.maemo.org fremantle Release.gpg
  Unable to connect to repository.maemo.org http:
Err http://repository.maemo.org fremantle/free Translation-en_GB
  Unable to connect to repository.maemo.org http:
Err http://repository.maemo.org fremantle/non-free Translation-en_GB
  Unable to connect to repository.maemo.org http:
Err http://repository.maemo.org fremantle Release.gpg
  Unable to connect to repository.maemo.org http:
Err http://repository.maemo.org fremantle/free Translation-en_GB
  Unable to connect to repository.maemo.org http:
Err http://repository.maemo.org fremantle/non-free Translation-en_GB
  Unable to connect to repository.maemo.org http:
Get:8 http://marmistrz.net63.net fremantle Release.gpg [490B]
Ign http://marmistrz.net63.net fremantle/stable Translation-en_GB
Ign http://marmistrz.net63.net fremantle/testing Translation-en_GB
Ign http://marmistrz.net63.net fremantle/unstable Translation-en_GB
Hit http://maemo.merlin1991.at fremantle Release         
Ign http://repository.maemo.org fremantle-1.3 Release     
Ign http://repository.maemo.org fremantle Release         
Ign http://repository.maemo.org fremantle Release         
Hit http://marmistrz.net63.net fremantle Release         
Ign http://repository.maemo.org fremantle-1.3/free Packages/DiffIndex
Ign http://repository.maemo.org fremantle-1.3/non-free Packages/DiffIndex
Ign http://repository.maemo.org fremantle/free Packages/DiffIndex
Ign http://repository.maemo.org fremantle/non-free Packages/DiffIndex
Ign http://repository.maemo.org fremantle/free Packages/DiffIndex
Ign http://repository.maemo.org fremantle/non-free Packages/DiffIndex
Ign http://maemo.merlin1991.at fremantle/free Packages/DiffIndex
Ign http://maemo.merlin1991.at fremantle/non-free Packages/DiffIndex
Ign http://repository.maemo.org fremantle-1.3/free Packages
Ign http://repository.maemo.org fremantle-1.3/non-free Packages
Ign http://repository.maemo.org fremantle/free Packages   
Ign http://repository.maemo.org fremantle/non-free Packages
Ign http://repository.maemo.org fremantle/free Packages   
Ign http://repository.maemo.org fremantle/non-free Packages
Ign http://marmistrz.net63.net fremantle/stable Packages/DiffIndex
Ign http://marmistrz.net63.net fremantle/testing Packages/DiffIndex
Ign http://marmistrz.net63.net fremantle/unstable Packages/DiffIndex
Ign http://maemo.merlin1991.at fremantle/free Packages   
Ign http://maemo.merlin1991.at fremantle/non-free Packages
Ign http://repository.maemo.org fremantle-1.3/free Packages
Ign http://repository.maemo.org fremantle-1.3/non-free Packages
Ign http://repository.maemo.org fremantle/free Packages   
Ign http://repository.maemo.org fremantle/non-free Packages
Ign http://repository.maemo.org fremantle/free Packages   
Ign http://repository.maemo.org fremantle/non-free Packages
Hit http://marmistrz.net63.net fremantle/stable Packages 
Hit http://marmistrz.net63.net fremantle/testing Packages 
Hit http://marmistrz.net63.net fremantle/unstable Packages
Hit http://maemo.merlin1991.at fremantle/free Packages   
Hit http://maemo.merlin1991.at fremantle/non-free Packages
Err http://repository.maemo.org fremantle-1.3/free Packages
  Unable to connect to repository.maemo.org http:
Err http://repository.maemo.org fremantle-1.3/non-free Packages
  Unable to connect to repository.maemo.org http:
Err http://repository.maemo.org fremantle/free Packages   
  Unable to connect to repository.maemo.org http:
Err http://repository.maemo.org fremantle/non-free Packages
  Unable to connect to repository.maemo.org http:
Err http://repository.maemo.org fremantle/free Packages   
  Unable to connect to repository.maemo.org http:
Err http://repository.maemo.org fremantle/non-free Packages
  Unable to connect to repository.maemo.org http:
Fetched 3095B in 2min11s (23B/s)                         
Reading package lists... Done
W: GPG error: https://downloads.maemo.nokia.com ./ Release: The following signatures were invalid: KEYEXPIRED 1349249546 KEYEXPIRED 1349249546 KEYEXPIRED 1349249546
W: GPG error: https://downloads.maemo.nokia.com ./ Release: The following signatures were invalid: KEYEXPIRED 1349249546 KEYEXPIRED 1349249546 KEYEXPIRED 1349249546
W: GPG error: https://downloads.maemo.nokia.com ./ Release: The following signatures were invalid: KEYEXPIRED 1349249546 KEYEXPIRED 1349249546 KEYEXPIRED 1349249546
W: Failed to fetch http://repository.maemo.org/community-testing/dists/fremantle/Release.gpg  Could not connect to repository.maemo.org:80 (188.117.59.203), connection timed out

W: Failed to fetch http://repository.maemo.org/community-testing/dists/fremantle/free/i18n/Translation-en_GB.bz2  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/community-testing/dists/fremantle/non-free/i18n/Translation-en_GB.bz2  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/extras/dists/fremantle-1.3/Release.gpg  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/extras/dists/fremantle-1.3/free/i18n/Translation-en_GB.bz2  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/extras/dists/fremantle-1.3/non-free/i18n/Translation-en_GB.bz2  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/extras-devel/dists/fremantle/Release.gpg  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/extras-devel/dists/fremantle/free/i18n/Translation-en_GB.bz2  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/extras-devel/dists/fremantle/non-free/i18n/Translation-en_GB.bz2  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/extras-testing/dists/fremantle/Release.gpg  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/extras-testing/dists/fremantle/free/i18n/Translation-en_GB.bz2  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/extras-testing/dists/fremantle/non-free/i18n/Translation-en_GB.bz2  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/extras/dists/fremantle-1.3/free/binary-armel/Packages  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/extras/dists/fremantle-1.3/non-free/binary-armel/Packages  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/extras-devel/dists/fremantle/free/binary-armel/Packages  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/extras-devel/dists/fremantle/non-free/binary-armel/Packages  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/extras-testing/dists/fremantle/free/binary-armel/Packages  Unable to connect to repository.maemo.org http:

W: Failed to fetch http://repository.maemo.org/extras-testing/dists/fremantle/non-free/binary-armel/Packages  Unable to connect to repository.maemo.org http:

W: Some index files failed to download, they have been ignored, or old ones used instead.
W: You may want to run apt-get update to correct these problems
Nokia-N900:~#


michaaa62 2013-01-14 18:58

Re: Problem in Terminal
 
@unexpected : Here you are http://talk.maemo.org/showpost.php?p...55&postcount=4

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 23:54.

vBulletin® Version 3.8.8