apt-get update problem

Started by Csordi, November 02, 2014, 04:34:59 PM

Previous topic - Next topic

Csordi

I can't update my A13 debian. Any ideas ? This is not A13 related problem. But i am a linux noob and I can not figure out what is the solution.


root@debian:~# uname -a
Linux debian 3.0.52+ #5 PREEMPT Thu Mar 14 14:28:53 EET 2013 armv7l GNU/Linux
root@debian:~# apt-get update
Ign http://ftp.uk.debian.org wheezy InRelease
Get:1 http://ftp.uk.debian.org wheezy Release.gpg [1,655 B]
Get:2 http://ftp.uk.debian.org wheezy Release [168 kB]
Err http://ftp.uk.debian.org wheezy Release

Fetched 1,656 B in 0s (4,078 B/s)
Reading package lists... Done
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ftp.uk.debian.org wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 6FB2A1C265FFB764

W: Failed to fetch http://ftp.uk.debian.org/debian/dists/wheezy/Release

W: Some index files failed to download. They have been ignored, or old ones used instead.
root@debian:~#

catlazer

#1
It seems you don't have the public keys for the APT repos installed.

Try:

apt-get install debian-archive-keyring

It will probably complain that you are about to install an unsigned package, but continue anyway.

After that run

apt-get clean && apt-get update


And hopefully you are back in the room!

Also you can import the public keys from non-standard APT repos using the apt-key utility.

See this post:

http://blog.edseek.com/archives/2007/03/17/apt-key-gpg-key-import-on-ubuntu-and-debian/

Csordi

#2
Thank you! Now i can run apt-get upgrade. Unfortunately it is stopped. Input/output error... Maybe much easier to format the SD card and install the latest A13 debian image to the blank SD card. I never imagined the debian upgrade is such difficult.

Install these packages without verification [y/N]? y
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 82729 files and directories currently installed.)
Preparing to replace debianutils 4.3 (using .../debianutils_4.3.2_armhf.deb) ...
Unpacking replacement debianutils ...
dpkg: error processing /var/cache/apt/archives/debianutils_4.3.2_armhf.deb (--unpack):
unable to stat `./usr/share/man/de/man8/remove-shell.8.gz' (which I was about to install): Input/output error
Processing triggers for man-db ...
/usr/bin/mandb: can't open /usr/share/man/de/man8/apt-get.8.gz: Permission denied
Errors were encountered while processing:
/var/cache/apt/archives/debianutils_4.3.2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@debian:
root@debian:/etc/apt# df
Filesystem     1K-blocks    Used Available Use% Mounted on
rootfs           3736280 2202256   1344228  63% /
/dev/root        3736280 2202256   1344228  63% /
devtmpfs          165100       0    165100   0% /dev
tmpfs              33040     208     32832   1% /run
tmpfs               5120       0      5120   0% /run/lock
tmpfs              66076       0     66076   0% /tmp
tmpfs              66076       0     66076   0% /run/shm


------

Update:

I tried the new linux image : Video/headless A13 Debian Image, R18 (which is not debian at all rather Ubuntu)
Install.... Setting the Wifi... and let's see the apt-get update and upgrade:

olinuxino@ubuntu:/$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  lava-tool
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up cpufreqd (2.4.2-1) ...
* Starting CPU Frequency daemon cpufreqd                                       *** buffer overflow detected ***: /usr/sbin/cpufreqd terminated
Aborted
invoke-rc.d: initscript cpufreqd, action "start" failed.
dpkg: error processing cpufreqd (--configure):
subprocess installed post-installation script returned error exit status 134
Errors were encountered while processing:
cpufreqd
E: Sub-process /usr/bin/dpkg returned an error code (1)
olinuxino@ubuntu:/$


No luck. Now buffer overflow error.


Update 2 :

If anyone is interested in:

apt-get remove cpufreqd is solved my problem (Video/headless A13 Debian Image, R18)
Now my system is up to date.

catlazer

My guess is that certain software packages require features built into the Linux kernel, which might not be present in an "off the shelf" kernel.
You would need to roll-your-own kernel to include the missing features (if indeed the A13 processor can support the feature in question).

E.g. I noticed the kernel I use (which was supplied in the Olimex image) doesn't support "stateful packet inspection" for IPtables which means the package Shorewall cannot run.

I might be wrong in your case, though ...