maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   [SOLVED] apt-get error (https://talk.maemo.org/showthread.php?t=89433)

tanrax 2013-03-10 21:02

[SOLVED] apt-get error
 
When I upgrade fails:

Code:

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: Ignoring Provides line with DepCompareOp for package binutils
W: You may want to run apt-get update to correct these problems

And does not update. Also, do not let me install anything.

Code:

Failed to fetch http://repository.maemo.org/extras-testing/pool/fremantle/free/k/kernel-power/kernel-power_2.6.28-10power51r1_armel.deb  Hash Sum mismatch
Failed to fetch http://repository.maemo.org/extras-devel/pool/fremantle/free/k/kernel-power/kernel-power-modules_2.6.28-10power51r1_armel.deb  Hash Sum mismatch
Failed to fetch http://repository.maemo.org/extras-devel/pool/fremantle/free/k/kernel-power/kernel-power-flasher_2.6.28-10power51r1_armel.deb  Hash Sum mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

If someone would be so kind to help me, I would appreciate forever.
:)

sixwheeledbeast 2013-03-10 21:09

Re: apt-get error
 
http://talk.maemo.org/showthread.php?t=88659
http://talk.maemo.org/showthread.php?t=89273
http://talk.maemo.org/showthread.php?t=89394

tanrax 2013-03-10 21:13

Re: apt-get error
 
I can not find the solution to my problem :(

tanrax 2013-03-10 22:15

Re: apt-get error
 
solution temploral
Add in /etc/hosts
Code:

213.128.137.22 repository.maemo.org

lucky88shp 2013-03-10 23:59

Re: apt-get error
 
Quote:

Originally Posted by tanrax (Post 1328233)
solution temploral
Add in /etc/hosts
Code:

213.128.137.22 repository.maemo.org

Solution doesn't work for me! Funny thing is all the repos work fine via fapman, but not via terminal..

michaaa62 2013-03-11 07:39

Re: [SOLVED] apt-get error
 
You might want to post the full error output to look at. 'Does not work' is not really helpful as an error description.

avidscavenger 2013-05-03 00:56

Re: [SOLVED] apt-get error
 
Sorry to bump this thread but it seems the closest to the problem I am having. For some time I have been getting "BADSIG E40DC434616730BD maemo.org Extras repositories (Fremantle Extras) <repositories@maemo.org>"

Googling for this error it seems that noone else has seen it for years, and certainly not since CSSU.

I've tried the usual replacing the key in the keyring but makes no difference. I'm starting to suspect I have the wrong repos in my source list.

Can someone with a working CSSU/testing installation please paste the contents of their /etc/apt/sources.d/hildon-application-manager.list

Thanks!

michaaa62 2013-05-03 05:56

Re: [SOLVED] apt-get error
 
Here you are
Code:

deb http://repository.maemo.org/community/ fremantle free non-free
deb http://repository.maemo.org/community-testing/ fremantle free non-free
deb https://downloads.maemo.nokia.com/fremantle/ssu/apps/ ./
deb https://downloads.maemo.nokia.com/fremantle/ssu/mr0 ./
deb https://downloads.maemo.nokia.com/fremantle1.2/ovi/ ./
deb http://repository.maemo.org/extras/ fremantle-1.3 free non-free
deb http://repository.maemo.org/extras-devel/ fremantle free non-free

Hope it helps!

BUT Keep in mind that you could overwrite the list any time, if you start that infamous HildonApplicationManager!
It does matter to import those repos via HAM to have those in sync!

avidscavenger 2013-05-03 06:08

Re: [SOLVED] apt-get error
 
Unfortunately that doesn't really help. I still get the GPG errors, plus now a 503 Service Unavailable. Maybe it would help if I used HAM.

michaaa62 2013-05-03 12:14

Re: [SOLVED] apt-get error
 
Please try
Code:

sudo gainroot
apt-get clean
cd /var/lib/apt
mv lists lists.old
mkdir -p lists/partial
apt-get update


viqtah 2013-08-08 17:37

Re: apt-get error
 
Quote:

Originally Posted by tanrax (Post 1328233)
solution temploral
Add in /etc/hosts
Code:

213.128.137.22 repository.maemo.org

how did you solve the expired key problem, its killing me too

michaaa62 2013-08-08 20:37

Re: [SOLVED] apt-get error
 
There is no cure for that!
Nokia did not re-new the key that has expired for their repository.

viqtah 2013-08-09 16:50

Re: [SOLVED] apt-get error
 
Quote:

Originally Posted by michaaa62 (Post 1365896)
There is no cure for that!
Nokia did not re-new the key that has expired for their repository.

so does it mean that am stuck with my n900 as it is???? was trying to install android and this is a major set back to me. any way around it?

michaaa62 2013-08-09 19:35

Re: [SOLVED] apt-get error
 
There are no real negative implication for your intention to install nitdroid.

It is quite difficult to know from your one-liners, what state your phone is in right now, what the status of the package management is, what your linux knowledge is to install nitdroid. So please take your time to explain the backgrounds of the problems you are facing.
The more info, the better the chance to get help quickly.

viqtah 2013-08-10 08:51

Re: [SOLVED] apt-get error
 
Quote:

Originally Posted by michaaa62 (Post 1366119)
There are no real negative implication for your intention to install nitdroid.

It is quite difficult to know from your one-liners, what state your phone is in right now, what the status of the package management is, what your linux knowledge is to install nitdroid. So please take your time to explain the backgrounds of the problems you are facing.
The more info, the better the chance to get help quickly.

I bought my n900 3 years ago and I've never had any updates, until recently when I found out that you can install android. after downloading the android files and copying them to my phone,i went ahead to install it using Xterm. I followed each procedure but when it came to apt-get update, that was the end cof it couldn't move any further. all I got was key expired an no more progress.

michaaa62 2013-08-10 12:57

Re: [SOLVED] apt-get error
 
May be i got you wrong... Please nevertheless let me explain the full procedure to update the software on the phone in the 'Debian Way', aka. X-Terminal.

The "apt-get update" command does just update the list of available packages from the repositories that are listed in the file /etc/apt/sources.list or the lists in the directory /etc/apt/sources.list.d/ . the command checks the list using the keys from the repositories. The nokia key did expire last year, because those keys are only valid for some time. Nokia chose to abandon the ship,thus the key was never renewed. The message is just a warning, not an error message. It has no blocking mechanics attached to itself.

The actual command to fetch the new packages to replace old or faulty packages is 'apt-get upgrade'. This will download and install the latest version of the programs you have installed.

The full procedure would be
Code:

sudo gainroot
apt-get update
apt-get upgrade

The first command to gain the rights to install, the second to update the list, the third to actually install the latest and 'greatest' version of packages.

All this has no implications to all the semi-broken methods to get Nitdroid installed on the N900. This is some mess of its own, but my knowledge about methods to install may not be correct any more as time goes on. You might need to check the nitdroid forums for their latest information.

viqtah 2013-08-10 13:48

Re: [SOLVED] apt-get error
 
Quote:

Originally Posted by michaaa62 (Post 1366221)
May be i got you wrong... Please nevertheless let me explain the full procedure to update the software on the phone in the 'Debian Way', aka. X-Terminal.

The "apt-get update" command does just update the list of available packages from the repositories that are listed in the file /etc/apt/sources.list or the lists in the directory /etc/apt/sources.list.d/ . the command checks the list using the keys from the repositories. The nokia key did expire last year, because those keys are only valid for some time. Nokia chose to abandon the ship,thus the key was never renewed. The message is just a warning, not an error message. It has no blocking mechanics attached to itself.

The actual command to fetch the new packages to replace old or faulty packages is 'apt-get upgrade'. This will download and install the latest version of the programs you have installed.

The full procedure would be
Code:

sudo gainroot
apt-get update
apt-get upgrade

The first command to gain the rights to install, the second to update the list, the third to actually install the latest and 'greatest' version of packages.

All this has no implications to all the semi-broken methods to get Nitdroid installed on the N900. This is some mess of its own, but my knowledge about methods to install may not be correct any more as time goes on. You might need to check the nitdroid forums for their latest information.

apt-get update gives me this reply
W: GPG error: https://downloads.maemo.nokia.com ./ Release: The following signature were invalid: KEYEXPIRED 1349249546 KEYEXPIRED 1349249546 KEYEXPIRED 1349249546
W: You may want to run apt-get update to correct these problems

apt-get upgrade gives me this reply
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
qtedger: Depends: kernel-feature-errata-430973-workaround
but its not installable
E: Unmet dependencies. Try using -f.

michaaa62 2013-08-10 13:58

Re: [SOLVED] apt-get error
 
Do you have multiboot or u-boot installed to select between different kernels??? Please check
Code:

apt-cache policy multiboot* u-boot*
Read through the output for installed packages.

If not: You need to have kernel-power installed to satisfy the dependencies of qtedger.
Try if this installs the kernel without any errors
Code:

sudo gainroot
apt-get install -f
apt-get install kernel-power kernel-power-modules kernel-power-flasher

If , ...and only if, no errors occur, please reboot to load the new kernel

viqtah 2013-08-10 14:39

Re: [SOLVED] apt-get error
 
Quote:

Originally Posted by michaaa62 (Post 1366227)
Do you have multiboot or u-boot installed to select between different kernels??? Please check
Code:

apt-cache policy multiboot* u-boot*
Read through the output for installed packages.

If not: You need to have kernel-power installed to satisfy the dependencies of qtedger.
Try if this installs the kernel without any errors
Code:

sudo gainroot
apt-get install -f
apt-get install kernel-power kernel-power-modules kernel-power-flasher

If , ...and only if, no errors occur, please reboot to load the new kernel

The following packages have unmet dependencies:
kernel-power-flasher: Predepends: kernel-power (= 1:2.6.28-10power50) but 1:2.6.28-10power51rl is to be installed
E: Broken packages

michaaa62 2013-08-10 15:44

Re: [SOLVED] apt-get error
 
Please try to Copy'n'Paste the complete output to avoid (unintended, but still) misleading, error messages.

Your repos seems to be incomplete or the update did not succeed.
Please post the content of the file /etc/apt/sources.list.d/hildon-application-manager.list and the output of
Code:

sudo gainroot
apt-get update


viqtah 2013-08-10 16:39

Re: [SOLVED] apt-get error
 
I think I should find another way of installing android. if any ideas or suggestions or ways are available please share them with me

michaaa62 2013-08-10 18:43

Re: [SOLVED] apt-get error
 
Again, those one line post are not helpful. How do you want to install nitdroid, if your package management is in a twisted non-functional state.

Please provide the output of the commands to look at it. Helpful people will chip in to get things sorted somehow.

Here is how Copy'n'Paste works best for you:
If you run a command in X-Terminal application, an arrow symbol is displayed in the lower left corner, click it to activate the output of the command and the command itself, select 'Copy' from the status bar to paste the activated parts to the internal 'clipboard', select the browser to go to this very topic and select from the browser status bar menu 'Paste' to get the clipboard's content to your next post in the thread

viqtah 2013-08-10 20:26

Re: [SOLVED] apt-get error
 
Nokia-N900-51-1:/and# dpkg -i /home/user/MyDocs/nitdroid-kernel-2.6.28-07_rc4_armel.deb
(Reading database ... 37748 files and directories currently installed.)
Preparing to replace nitdroid-kernel-2.6.28-07 rc4 (using .../nitdroid-kernel-2.6.28-07_rc4_armel.deb) ...
Deleting leftover 2.6.28.NIT.07 modules in Android...
Deleting leftover 2.6.28.NIT.07 modules in Maemo...
Unpacking replacement nitdroid-kernel-2.6.28-07 ...
Setting up nitdroid-kernel-2.6.28-07 (rc4) ...
Copying 2.6.28.NIT.07 essential modules to Maemo...
Running depmod...
Creating item file for multiboot
Nokia-N900-51-1:/and# leafpad /etc/multiboot.d/11-NITDroid-mmcblk0p2-2.6.28.NIT

it redirects me to leafpad from there and nothing happens

michaaa62 2013-08-11 06:33

Re: [SOLVED] apt-get error
 
Are leafpad and multiboot installed???
Are you sure that you type the name of the file correctly? Try to use the <TAB>-completion of the X-Terminal application: You <TAB> button on the lower bar of X-Terminal. Type the first letter(s) of a command and let the X-Terminal help you, like this:
Code:

lea<TAB>/e<TAB>mult<TAB>11<TAB>
If leafpad is missing and you cannot install it, there are some text-editor for the X-Terminal installed: mcedit, or vi or nano. But their usage is quite different from the GUI-editor leafpad.

Edit: You might post a link to the tutorial you are following to install nitdroid.

viqtah 2013-08-11 07:15

Re: [SOLVED] apt-get error
 
I think multiboot is missing, I've tried installing it but it says not available

michaaa62 2013-08-11 07:47

Re: [SOLVED] apt-get error
 
Soback to repairing your repository list, which seems to be corrupted.
One of the reasons might be the usage of the built-in Hildon-Application-Manager, aka. HAM, mixed with the pure apt-get from X-Terminal. The HAM application never played nice with manual installs.

Please edit your repositories only in the HAM section to manage repositories. Check those repositories for being typed correctly and being enabled (NOTE: The nokia repository's names are translated into your localized settings):

Catalog name: Nokia Applications
Web address: https://downloads.maemo.nokia.com/fremantle/ssu/apps/
Distribution: ./
Components:

Catalog name: Nokia System Software Updates
Web address: http://downloads.maemo.nokia.com/fremantle/ssu/mr0
Distribution: ./
Components:

Catalog name: maemo.org
Web address: http://repository.maemo.org/extras/
Distribution: fremantle-1.3
Components: free non-free

For qtedger to work you need the CSSU installed,

Catalog name: Community SSU
Web address: http://repository.maemo.org/community/
Distribution: fremantle
Components: free non-free

but you could uninstall that to skip setting up CSSU for your Nitdroid intentions. There might be also an OVI repository. Do you also have extras-devel repo enabled???

Catalog name: maemo.org extras-devel
Web address: http://repository.maemo.org/extras-devel/
Distribution: fremantle
Components: free non-free

HAM will update the repositories, you have to be patient...
Reboot to kill all the HAM actions after the update of the repositories, AFTER!!!

Now try to correct the package management system
Code:

sudo gainroot
dpkg --configure -a
apt-get install -f
apt-get upgrade

Please post the output of all the commands here if errors occur, that are not finally after running all the commands, are resolved.

viqtah 2013-08-11 11:04

Re: [SOLVED] apt-get error
 
Unpacking replacement kernel-power-modules ...
dpkg: error processing /var/cache/apt/archives/kernel-power-modules_1%3a2.6.28-10power52_armel.deb (--unpack):
failed in buffer_write(fd) (9, ret=-1): backend dpkg-deb during `./lib/modules/2.6.28.10-power52/ipt_LOG.ko': No space left on device
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/kernel-power-modules_1%3a2.6.28-10power52_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
/home/user #

michaaa62 2013-08-11 16:57

Re: [SOLVED] apt-get error
 
Quote:

dpkg: error processing /var/cache/apt/archives/kernel-power-modules_1%3a2.6.28-10power52_armel.deb (--unpack):
failed in buffer_write(fd) (9, ret=-1): backend dpkg-deb during `./lib/modules/2.6.28.10-power52/ipt_LOG.ko': No space left on device
No space left on device!!!
First try to get back some space
Code:

sudo gainroot
apt-get clean

This purges the install packages downloaded previously.

To get information about the space on the device:
Please post the output of
Code:

mount
df
free
du -kx / | sort -n | tail -n20
du -kx /home | sort -n | tail -n20

The first command shows the mounted partitions, the second lists the free space on the mounted partitions, the third shows the RAM and swap space, the forth and fifth list the 20 largest directories of the rootfs and optfs.
Warning: There is a 'pipe' symbol in the last two commands, it can be accessed via the blue function key and the <Sym>-key.

pichlo 2013-08-11 18:36

Re: [SOLVED] apt-get error
 
Quote:

Originally Posted by michaaa62 (Post 1366343)
Do you also have extras-devel repo enabled???

I hope not. As.has been mentioned repeatedly, extras-devel is not for the average user.

Quote:

Originally Posted by michaaa62 (Post 1366436)
No space left on device!!!
First try to get back some space
Code:

sudo gainroot
apt-get clean

This purges the install packages downloaded previously.

I bet most of the space is taken up by Android, not the pachage cache. I would look under /and. Michaaa62's du will highlight that if I'm right.

viqtah 2013-08-11 18:37

Re: [SOLVED] apt-get error
 
its funny, when I now go to images and tracks, it says no images and tracks but I can see them in file manager. sms's also say sant send nor receive due to low memory but I have more that 20Gb free memory.

I just ran the commands and hope for the best

viqtah 2013-08-11 18:42

Re: [SOLVED] apt-get error
 
Quote:

Originally Posted by pichlo (Post 1366463)
I hope not. As.has been mentioned repeatedly, extras-devel is not for the average user.



I bet most of the space is taken up by Android, not the pachage cache. I would look under /and. Michaaa62's du will highlight that if I'm right.

pichlo, I have not installed android yet, but it exists in my phone now and cant be uninstalled via HAM. its really messing me up now

pichlo 2013-08-11 20:30

Re: [SOLVED] apt-get error
 
I don't know much about Nitroid (nor have I much interest in finding out), but from the little I know, I understand it is a 3 step process. You need to install multiboot, then you need to install a Nitroid kernel and lastly you need to download a Nitroid image and mount it in a specific folder under root. If I remember correctly, that folder was /and. Feel free to correct me if I am talking BS.

We have had a few people running out of root space because they, instead of mounting Nitroid under /and, tried to copy it there and, not surprisingly, it did not fit.

Now, about your space issue. There are two storage media on our N900. You can think of them as two hard disks. One is small, only 256MB. It is split into smaller parts, containing the bootloader, kernel and, most pertinently to your case, the 227MB root space. This is the first entry you see when you run df. It is vital system space, containing system files and some not-so-well behaved (see below) user applications. Because it contains the root of your file system, it is usually called "rootfs".

The second storage medium (or "hard disk" if you want) is 32GB, split into 3 parts. The first part is the 27GB space formatted as FAT and exported in mass storage mode. It is mounted under /home/user/MyDocs, usually referred to as "MyDocs" and used for documents, images, music etc. It is this part that has 20GB free in your case.

The next part of your 32GB medium is a 2GB space reserved for your applications. The 227MB rootfs mentioned above is just not enough so well written applications should install here. This space is mounted under /home and also (simplified as I am already too verbose) under /opt. Because of that, this partition is often referred to as "optfs".

All user files - contacts, SMS and calls history, saved games, in a word everything that does not go to MyDocs is kept here, more specifically somewhere under /home/user. It is also here that apt and dpkg use for a cache. Your dpkg output suggests that you have run out of this "optfs" space. If that happens, you can no longer create new files - including tracker databases, meaning Media Player list will appear empty even though you have tons of music files and 20GB free in MyDocs.

Keep in mind that I am only guessing since the information you provide is very patchy, to the point of nearly non-existent. Please provide the output of michaaa62's commands in post #28 to give us a better picture.

michaaa62 2013-08-12 06:06

Re: [SOLVED] apt-get error
 
Just to add to @pichlo's brilliant explanation:
The most common scenario for Nitdroid install is the internal card, which boils down to optfs. So having a fully fledged Maemo system already and installing Nitdroid is, space-wise impossible. This issue may be solved later.

viqtah 2013-08-12 16:47

Re: [SOLVED] apt-get error
 
how can I uninstall android? it exists in my phone, does not function, eats up my space and cant be uninstalled....

viqtah 2013-08-12 17:31

Re: [SOLVED] apt-get error
 
nitroid kernel shows in ham but its not functioning, how can I uninstall it coz it using up my space for nothing and it cant be uninstalled?

pichlo 2013-08-12 18:13

Re: [SOLVED] apt-get error
 
Please post the reslt of michaaa62's commands. Then we can decide what to do next.

michaaa62 2013-08-12 19:44

Re: [SOLVED] apt-get error
 
Try to get rid of the nitdroid kernel, but this will not do magically free huge amounts of space
Code:

sudo gainroot
dpkg -r nitdroid-kernel-2.6.28-07

So please post the output soon.

Also: I asked previously for the link to the tutorial you are following to help you correcting things, may that be a working Nitdroid install or a clean uninstall without losing your locale setting, which might get corrupted sometimes.

So please stop posting in 'shady' threads in this forum to search for help you get here.

viqtah 2013-08-13 16:54

Re: [SOLVED] apt-get error
 
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.

~ $ sudo gainroot
Root shell enabled


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.

/home/user # dpkg -r nitdroid-kernel-2.6.28-07
dpkg - warning: ignoring request to remove nitdroid-kernel-2.6.28-07 which isn't installed.
/home/user #


thats the outcome yet in HAM it does exist and it says it cant be uninstalled

michaaa62 2013-08-13 17:23

Re: [SOLVED] apt-get error
 
Look for the correct name of the nitdroid-kernel you have installed, i could got it wrong from the earlier post...
Code:

sudo gainroot
dpkg -l | grep nitdroid

this should give the name of the package to remove via 'dpkg -P' or 'dpkg -r'

viqtah 2013-08-13 17:39

Re: [SOLVED] apt-get error
 
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.

~ $ sudo gainroot
Root shell enabled


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.

/home/user # dpkg -l | grep nitdroid
ii nitdroid-installer 0.2.8-8 NITDroid new autoinstaller fetches and installs the
ii nitdroid-kernel-2.6.28-06 final1 Linux kernel for NITDroid
/home/user #


All times are GMT. The time now is 09:06.

vBulletin® Version 3.8.8