W. H. Heydt
Posts: 12656
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Error doing apt-get update

Tue Oct 02, 2012 11:50 pm

When I run "apt-get update", I get:

Code: Select all

W: GPG error: http://ftp.us.debian.org wheezy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA
Is there a fix for this, or do I need to re-image the SD card?

User avatar
malakai
Posts: 1382
Joined: Sat Sep 15, 2012 10:35 am
Contact: Website

Re: Error doing apt-get update

Wed Oct 03, 2012 2:01 am

W. H. Heydt wrote:When I run "apt-get update", I get:

Code: Select all

W: GPG error: http://ftp.us.debian.org wheezy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA
Is there a fix for this, or do I need to re-image the SD card?
This is untested but what I have found out is this should fix it.

gpg --keyserver keys.gnupg.net --recv-key AED4B06F473041FA
gpg -a --export AED4B06F473041FA | sudo apt-key add -


I found the server by:

sudo nano /home/pi/.gnupg/gpg.conf

It's pretty much the only thing not commented out of the file

keys.gnupg.net
http://www.raspians.com - always looking for content feel free to ask to have it posted. Or sign up and message me to become a contributor to the site. Raspians is not affiliated with the Raspberry Pi Foundation. (RPi's + You = Raspians)

W. H. Heydt
Posts: 12656
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Error doing apt-get update (fixed)

Wed Oct 03, 2012 2:45 am

Thanks...that did the trick.

W. H. Heydt
Posts: 12656
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Error doing apt-get update

Wed Oct 03, 2012 8:01 pm

Okay...that problem was solved and worked (once). Now I'm getting other errors...

Code: Select all

login as: pi
pi@192.168.1.122's password:
Linux rpi2dev 3.2.27+ #160 PREEMPT Mon Sep 17 23:18:42 BST 2012 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Type 'startx' to launch a graphical session

Last login: Wed Oct  3 12:26:18 2012 from 192.168.1.153
pi@rpi2dev ~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  alsa-base openssh-client openssh-server scratch
The following packages will be upgraded:
  apt apt-utils aptitude aptitude-common bsdutils gcc-4.4-base
  gnome-themes-standard gnupg gpgv hdparm insserv iputils-ping isc-dhcp-client
  isc-dhcp-common libalgorithm-diff-xs-perl libapt-inst1.5 libapt-pkg-dev
  libapt-pkg4.12 libasyncns0 libavcodec53 libavformat53 libavutil51 libblkid1
  libcap2 libesd0 libflac8 libgcrypt11 libjavascriptcoregtk-1.0-0
  libjavascriptcoregtk-3.0-0 liblocale-gettext-perl libmount1 libmpc2
  libnfnetlink0 libparted0debian1 libpostproc52 libreadline6 libssl-dev
  libssl1.0.0 libswscale2 libtext-charwidth-perl libuuid1 libvpx1
  libwebkitgtk-1.0-0 libwebkitgtk-1.0-common libwebkitgtk-3.0-0
  libwebkitgtk-3.0-common libxcomposite1 libxdamage1 libxfixes3 libxrandr2
  linux-libc-dev mplayer nano openssh-blacklist openssh-blacklist-extra
  openssl parted pkg-config python-pygame rsyslog shared-mime-info tasksel
  tasksel-data util-linux vim-common vim-tiny xkb-data xml-core xserver-common
  xserver-xorg-core
70 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
4 not fully installed or removed.
Need to get 47.7 MB of archives.
After this operation, 6,113 kB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://ftp.us.debian.org/debian/ wheezy/main libapt-pkg-dev armhf 0.9.7.5 [185 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ wheezy/main util-linux armhf 2.20.1-5.2 [659 kB]
Get:3 http://ftp.us.debian.org/debian/ wheezy/main libapt-inst1.5 armhf 0.9.7.5 [160 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ wheezy/main bsdutils armhf 1:2.20.1-5.2 [84.7 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libuuid1 armhf 2.20.1-5.2 [57.7 kB]
Get:6 http://ftp.us.debian.org/debian/ wheezy/main libapt-pkg4.12 armhf 0.9.7.5 [826 kB]
Get:7 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libblkid1 armhf 2.20.1-5.2 [119 kB]
Get:8 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libmount1 armhf 2.20.1-5.2 [112 kB]
Get:9 http://mirrordirector.raspbian.org/raspbian/ wheezy/main tasksel-data all 3.13 [20.4 kB]
Get:10 http://mirrordirector.raspbian.org/raspbian/ wheezy/main tasksel all 3.13 [94.3 kB]
Get:11 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libcap2 armhf 1:2.22-1.2 [12.5 kB]
Get:12 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libparted0debian1 armhf 2.3-11 [305 kB]
Get:13 http://mirrordirector.raspbian.org/raspbian/ wheezy/main openssh-blacklist all 0.4.1+nmu1 [1,835 kB]
Get:14 http://ftp.us.debian.org/debian/ wheezy/main apt armhf 0.9.7.5 [1,201 kB]
Get:15 http://mirrordirector.raspbian.org/raspbian/ wheezy/main openssh-blacklist-extra all 0.4.1+nmu1 [1,835 kB]
Get:16 http://ftp.us.debian.org/debian/ wheezy/main libreadline6 armhf 6.2-8+b1 [138 kB]
Get:17 http://ftp.us.debian.org/debian/ wheezy/main gpgv armhf 1.4.12-4+b1 [194 kB]
Get:18 http://ftp.us.debian.org/debian/ wheezy/main gnupg armhf 1.4.12-4+b1 [1,864 kB]
Get:19 http://mirrordirector.raspbian.org/raspbian/ wheezy/main aptitude armhf 0.6.8.1-2 [1,188 kB]
Get:20 http://mirrordirector.raspbian.org/raspbian/ wheezy/main aptitude-common all 0.6.8.1-2 [1,466 kB]
Get:21 http://mirrordirector.raspbian.org/raspbian/ wheezy/main isc-dhcp-client armhf 4.2.2.dfsg.1-5+deb70u1 [742 kB]
Get:22 http://mirrordirector.raspbian.org/raspbian/ wheezy/main isc-dhcp-common armhf 4.2.2.dfsg.1-5+deb70u1 [803 kB]
Get:23 http://ftp.us.debian.org/debian/ wheezy/main libssl-dev armhf 1.0.1c-4 [1,454 kB]
Get:24 http://mirrordirector.raspbian.org/raspbian/ wheezy/main vim-tiny armhf 2:7.3.547-5 [280 kB]
Get:25 http://mirrordirector.raspbian.org/raspbian/ wheezy/main vim-common armhf 2:7.3.547-5 [162 kB]
Get:26 http://mirrordirector.raspbian.org/raspbian/ wheezy/main gnome-themes-standard armhf 3.4.2-2 [2,951 kB]
Get:27 http://mirrordirector.raspbian.org/raspbian/ wheezy/main parted armhf 2.3-11 [157 kB]
Get:28 http://mirrordirector.raspbian.org/raspbian/ wheezy/main python-pygame armhf 1.9.1release+dfsg-7 [2,841 kB]
Get:29 http://ftp.us.debian.org/debian/ wheezy/main libssl1.0.0 armhf 1.0.1c-4 [1,018 kB]
Get:30 http://ftp.us.debian.org/debian/ wheezy/main liblocale-gettext-perl armhf 1.05-7+b3 [19.7 kB]
Get:31 http://ftp.us.debian.org/debian/ wheezy/main libgcrypt11 armhf 1.5.0-3+b1 [291 kB]
Get:32 http://ftp.us.debian.org/debian/ wheezy/main libasyncns0 armhf 0.8-4+b1 [12.1 kB]
Get:33 http://ftp.us.debian.org/debian/ wheezy/main libswscale2 armhf 6:0.8.3-7 [103 kB]
Get:34 http://ftp.us.debian.org/debian/ wheezy/main libpostproc52 armhf 6:0.8.3-7 [73.3 kB]
Get:35 http://ftp.us.debian.org/debian/ wheezy/main libavformat53 armhf 6:0.8.3-7 [493 kB]
Get:36 http://ftp.us.debian.org/debian/ wheezy/main libavcodec53 armhf 6:0.8.3-7 [2,573 kB]
Get:37 http://mirrordirector.raspbian.org/raspbian/ wheezy/main xml-core all 0.13+nmu2 [24.2 kB]
Get:38 http://mirrordirector.raspbian.org/raspbian/ wheezy/main xkb-data all 2.5.1-2.1 [647 kB]
Get:39 http://mirrordirector.raspbian.org/raspbian/ wheezy/main xserver-common all 2:1.12.3.902-1 [1,395 kB]
Get:40 http://mirrordirector.raspbian.org/raspbian/ wheezy/main xserver-xorg-core armhf 2:1.12.3.902-1 [1,604 kB]
Get:41 http://ftp.us.debian.org/debian/ wheezy/main libavutil51 armhf 6:0.8.3-7 [94.5 kB]
Get:42 http://ftp.us.debian.org/debian/ wheezy/main libvpx1 armhf 1.1.0-1 [460 kB]
Get:43 http://ftp.us.debian.org/debian/ wheezy/main libesd0 armhf 0.2.41-10+b1 [17.0 kB]
Get:44 http://ftp.us.debian.org/debian/ wheezy/main libflac8 armhf 1.2.1-6+b1 [137 kB]
Get:45 http://ftp.us.debian.org/debian/ wheezy/main libxcomposite1 armhf 1:0.4.3-2+b1 [16.1 kB]
Get:46 http://ftp.us.debian.org/debian/ wheezy/main libxfixes3 armhf 1:5.0-4+b1 [19.3 kB]
Get:47 http://ftp.us.debian.org/debian/ wheezy/main libxdamage1 armhf 1:1.1.3-2+b1 [13.5 kB]
Get:48 http://ftp.us.debian.org/debian/ wheezy/main libxrandr2 armhf 2:1.3.2-2+b1 [29.8 kB]
Get:49 http://ftp.us.debian.org/debian/ wheezy/main libmpc2 armhf 0.9-4+b1 [31.9 kB]
Get:50 http://ftp.us.debian.org/debian/ wheezy/main insserv armhf 1.14.0-4 [62.1 kB]
Get:51 http://ftp.us.debian.org/debian/ wheezy/main apt-utils armhf 0.9.7.5 [363 kB]
Get:52 http://ftp.us.debian.org/debian/ wheezy/main iputils-ping armhf 3:20101006-1+b2 [49.8 kB]
Get:53 http://ftp.us.debian.org/debian/ wheezy/main nano armhf 2.2.6-1+b2 [575 kB]
Get:54 http://ftp.us.debian.org/debian/ wheezy/main rsyslog armhf 5.8.11-1+b1 [488 kB]
Get:55 http://ftp.us.debian.org/debian/ wheezy/main libtext-charwidth-perl armhf 0.04-7+b2 [10.7 kB]
Get:56 http://ftp.us.debian.org/debian/ wheezy/main gcc-4.4-base armhf 4.4.7-2 [126 kB]
Get:57 http://ftp.us.debian.org/debian/ wheezy/main hdparm armhf 9.39-1+b1 [110 kB]
Get:58 http://ftp.us.debian.org/debian/ wheezy/main libalgorithm-diff-xs-perl armhf 0.04-2+b2 [12.3 kB]
Get:59 http://ftp.us.debian.org/debian/ wheezy/main libwebkitgtk-1.0-common all 1.8.1-3.3 [742 kB]
Get:60 http://ftp.us.debian.org/debian/ wheezy/main libwebkitgtk-1.0-0 armhf 1.8.1-3.3 [3,737 kB]
Get:61 http://ftp.us.debian.org/debian/ wheezy/main libjavascriptcoregtk-1.0-0 armhf 1.8.1-3.3 [764 kB]
Get:62 http://ftp.us.debian.org/debian/ wheezy/main libwebkitgtk-3.0-common all 1.8.1-3.3 [742 kB]
Get:63 http://ftp.us.debian.org/debian/ wheezy/main libwebkitgtk-3.0-0 armhf 1.8.1-3.3 [3,732 kB]
Get:64 http://ftp.us.debian.org/debian/ wheezy/main libjavascriptcoregtk-3.0-0 armhf 1.8.1-3.3 [763 kB]
Get:65 http://ftp.us.debian.org/debian/ wheezy/main libnfnetlink0 armhf 1.0.0-1+b1 [12.2 kB]
Get:66 http://ftp.us.debian.org/debian/ wheezy/main linux-libc-dev armhf 3.2.23-1 [767 kB]
Get:67 http://ftp.us.debian.org/debian/ wheezy/main mplayer armhf 2:1.0~rc4.dfsg1+svn34540-1+b2 [2,519 kB]
Get:68 http://ftp.us.debian.org/debian/ wheezy/main openssl armhf 1.0.1c-4 [693 kB]
Get:69 http://ftp.us.debian.org/debian/ wheezy/main pkg-config armhf 0.26-1+b1 [55.6 kB]
Get:70 http://ftp.us.debian.org/debian/ wheezy/main shared-mime-info armhf 1.0-1+b1 [593 kB]
Fetched 47.7 MB in 1min 34s (505 kB/s)
Illegal instruction
(Reading database ... 56355 files and directories currently installed.)
Preparing to replace util-linux 2.20.1-5.1 (using .../util-linux_2.20.1-5.2_armhf.deb) ...
Illegal instruction
dpkg: error processing /var/cache/apt/archives/util-linux_2.20.1-5.2_armhf.deb (--unpack):
 subprocess new pre-installation script returned error exit status 132
Illegal instruction
dpkg: error while cleaning up:
 subprocess new post-removal script returned error exit status 132
Errors were encountered while processing:
 /var/cache/apt/archives/util-linux_2.20.1-5.2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@rpi2dev ~ $
I think I'm spoiled by years of dealing with IBM System Reference Library manuals, where you could just flip to the back and find a *complete* listing of all error messages and return codes to find out what went wrong... "exit status 132" doesn't tell me anything and search the web hasn't found it for me...

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: Error doing apt-get update

Thu Oct 11, 2012 3:31 pm

you have the source; that's as "complete" as it gets.... on a more helpful note, try a fresh install. (to rule out old bugs and sdcard fs corruption)
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

Aydan
Posts: 727
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: Error doing apt-get update

Thu Oct 11, 2012 3:54 pm

W. H. Heydt wrote:I think I'm spoiled by years of dealing with IBM System Reference Library manuals, where you could just flip to the back and find a *complete* listing of all error messages and return codes to find out what went wrong... "exit status 132" doesn't tell me anything and search the web hasn't found it for me...
It looks like you are pulling armhf packages from ftp.us.debian.org.
This should not happen. They won't run on the Pi since they are compiled for armv7.
Check your apt sources.list.

Regards
Aydan

W. H. Heydt
Posts: 12656
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Error doing apt-get update

Thu Oct 11, 2012 6:16 pm

Thanks for the replies. Shortly after my last post I rebuilt the card and was able to update it.

plugwash
Forum Moderator
Forum Moderator
Posts: 3614
Joined: Wed Dec 28, 2011 11:45 pm

Re: Error doing apt-get update

Mon Feb 18, 2013 9:40 pm

AED4B06F473041FA is a debian key

We deliberately do not include the debian keys in raspbian images so that when people who don't read the faq add debian sources to their system they at least get a key warning before they install armv7 packages on their system and therefore create a system that won't run on a Pi.

Return to “Troubleshooting”