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...


All times are GMT. The time now is 14:54.

vBulletin® Version 3.8.8