I'm trying to work with opencv on the Raspberry Pi using elements from a couple of tutorials on your site. After following the directions on installing opencv, which seemed to go alright, I discovered I couldn't compile C++ programs. After some searching, I discovered a site that listed all the modules I needed to install in order to get opencv and C++ working on the Pi.
Problem is that every time I try to do apt-get, I get a message saying that apt-get encountered a section with no package header installed.
I found another site, that said the way to fix this is to use: sudo rm /var/lib/apt/lists/* -vf
Now I have a new problem, When I try apt-get update, I get: E: GPG error: http://raspberrypi.collabora.com wheezy Release: The following signatures were invalid: NODATA 1 NODATA 2
Any Ideas?
Thanks,
Ray
Apt-Get stopped working on Raspberry Pi
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- rben13
- Posts: 74
- Joined: Mon May 23, 2011 3:36 pm
Re: Apt-Get stopped working on Raspberry Pi
I did fix the NODATA part, but am still having the original problem.
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Apt-Get stopped working on Raspberry Pi
If you do a "sudo apt-get update" does it try to update your apps?
- rben13
- Posts: 74
- Joined: Mon May 23, 2011 3:36 pm
Re: Apt-Get stopped working on Raspberry Pi
I have run sudo apt-get update many times.
I tried using the directions here: http://BANNED/1hLzctR
But when I try to build C++ program from Geany, I still get errors on stdlibc++ stuff. (Yes, I am using the namespace std.)
Any more ideas?
Ray
I tried using the directions here: http://BANNED/1hLzctR
But when I try to build C++ program from Geany, I still get errors on stdlibc++ stuff. (Yes, I am using the namespace std.)
Any more ideas?
Ray
- dpitchfo
- Posts: 4
- Joined: Fri Feb 05, 2016 10:27 am
Re: Apt-Get stopped working on Raspberry Pi
Hi,
I have a similar issue. I am following the instructions on updating the PI to support the PiTFT 2.8" screen and get GPG Error when
> curl -SLs https://apt.adafruit.com/add-pin | sudo bash.
W: GPG error: http://apt.adafruit.com wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C24E6D5378661FA5
I have tried sudo apt-get --allow-unauthenticated update, but does no good.
Thoughts?
I have a similar issue. I am following the instructions on updating the PI to support the PiTFT 2.8" screen and get GPG Error when
> curl -SLs https://apt.adafruit.com/add-pin | sudo bash.
W: GPG error: http://apt.adafruit.com wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C24E6D5378661FA5
I have tried sudo apt-get --allow-unauthenticated update, but does no good.
Thoughts?
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Apt-Get stopped working on Raspberry Pi
I just ran it on a RasPi of my own and it worked without any problems. My guess is a glitch in your network connection.
- nope_why
- Posts: 1
- Joined: Sun Jul 30, 2017 11:23 am
Re: Apt-Get stopped working on Raspberry Pi
What do you mean "a glitch in your network connection"
I'm having the same problem and that's not helpful info
I'm having the same problem and that's not helpful info
- gregrhunter
- Posts: 2
- Joined: Wed Dec 21, 2016 10:33 pm
Re: Apt-Get stopped working on Raspberry Pi
nope_why,
I was having the same problem. It appears that the certificate for https://apt.adafruit.com has expired so the script or command that installs if fails. You can install the GPG certificate with the following command:
wget -O - -q --no-check-certificate https://apt.adafruit.com/apt.adafruit.com.gpg.key | sudo apt-key add -
the --no-check-certificate will ignore that the site cert has expired.
Good luck.
I was having the same problem. It appears that the certificate for https://apt.adafruit.com has expired so the script or command that installs if fails. You can install the GPG certificate with the following command:
wget -O - -q --no-check-certificate https://apt.adafruit.com/apt.adafruit.com.gpg.key | sudo apt-key add -
the --no-check-certificate will ignore that the site cert has expired.
Good luck.
nope_why wrote:What do you mean "a glitch in your network connection"
I'm having the same problem and that's not helpful info
- adafruit2
- Posts: 22200
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Apt-Get stopped working on Raspberry Pi
woops will check it out!
- tom540
- Posts: 1
- Joined: Sun Aug 20, 2017 10:43 am
Re: Apt-Get stopped working on Raspberry Pi
I am having the same problem when running sudo apt-get update after I added de adafruit repository. I am also unable to download the required packages to setup my PiTFT 2.8 inch. I do hope this gets fixed, because I just bought this display from you guys and I cannot use it.
Code: Select all
pi@raspberrypi:~ $ sudo apt-get update
Get:1 http://apt.adafruit.com/raspbian wheezy InRelease [2,093 B]
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Ign:1 http://apt.adafruit.com/raspbian wheezy InRelease
Fetched 2,093 B in 1s (1,075 B/s)
Reading package lists... Done
W: GPG error: http://apt.adafruit.com/raspbian wheezy InRelease: The following signatures were invalid: 58A1FE78D61C7C13E28B92A7C24E6D5378661FA5
W: The repository 'http://apt.adafruit.com/raspbian wheezy InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Apt-Get stopped working on Raspberry Pi
This line says you're using Wheezy:
Wheezy has been deprecated by the RasPi Foundation, and all of our recent PiTFT code has been written for Jessie.
Code: Select all
W: GPG error: http://apt.adafruit.com/raspbian wheezy InRelease: The following signatures were invalid: 58A1FE78D61C7C13E28B92A7C24E6D5378661FA5
- huaierg
- Posts: 1
- Joined: Tue Sep 26, 2017 5:06 pm
Re: Apt-Get stopped working on Raspberry Pi
@adafruit_support_mike This has nothing to do with wheezy. Your certs or signatures or something are invalid - probably expired. You need to sort this ASAP, people can't use your apt repo to install stuff. Viz also viewtopic.php?f=24&t=122970 for someone else with the same problem on stretch.
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Apt-Get stopped working on Raspberry Pi
The first-ever version of Raspbian Stretch was released about two weeks ago, which created a new and completely different set of problems.
Our RasPi development team is still working on porting our code to Stretch, and at the moment the best advice we can give anyone is to drop back to a late version of Jessie. You can find the older OS images here:
http://downloads.raspberrypi.org/raspbian/images/
Anyone who finds this thread in the future, looking for information about problems with `apt-get` updates: check the Linux version you're using.. as of late September 2017, the possible options are Wheezy, Jessie, and Stretch. The only version with mature PiTFT support as of this date is Jessie.
Our RasPi development team is still working on porting our code to Stretch, and at the moment the best advice we can give anyone is to drop back to a late version of Jessie. You can find the older OS images here:
http://downloads.raspberrypi.org/raspbian/images/
Anyone who finds this thread in the future, looking for information about problems with `apt-get` updates: check the Linux version you're using.. as of late September 2017, the possible options are Wheezy, Jessie, and Stretch. The only version with mature PiTFT support as of this date is Jessie.
- adafruit2
- Posts: 22200
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Apt-Get stopped working on Raspberry Pi
we're also looking into the key mismatch issue but its a rare occurance so we have to first verify that we can reproduce the issue!
- elijahlord
- Posts: 6
- Joined: Sun Oct 01, 2017 8:53 pm
Re: Apt-Get stopped working on Raspberry Pi
getting the same issue. tried --allow-unauthenticated and tried adding the gpg key but neither worked. im running kali linux 2017.2. am i just out of luck for a product i paid $40 for because you decided to stop supporting wheezy or is there any way i can fix this?
Please be positive and constructive with your questions and comments.