Severian
Posts: 49
Joined: Wed Jul 10, 2013 6:22 am

Unable to locate package hostapd on stretch

Wed Apr 04, 2018 7:15 pm

Howdy,
I started from the latest download at this time(april 2, 2018) I did the apt update and upgrade. Then I tried to install the software to make my Zero W an access point.
sudo apt install dnsmasq hostapd

and I get an error "E: Unable to locate package hostapd"

I see an announcement about new wireless drivers recently. Has hostapd been removed until a newer, compatible version is available? Do I need to add another source to sources.list? I have just the one active source.
Have a good day,
Ralph

User avatar
B.Goode
Posts: 8581
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Unable to locate package hostapd on stretch

Wed Apr 04, 2018 8:29 pm

I can see you've done it, but try

Code: Select all

sudo apt update
again, before retrying

Code: Select all

sudo apt install dnsmasq hostapd

Severian
Posts: 49
Joined: Wed Jul 10, 2013 6:22 am

Re: Unable to locate package hostapd on stretch

Wed Apr 04, 2018 11:19 pm

Howdy,
I successfully installed hostapd after running update again. I can see 2 possible reasons.
1. Th epackage got added in the last couple of hours.
2. I ggot a bad repo update before without showing any errors.
This is not that important now, because I got the package. But, I am curious. Why do you think it worked now?
Thank you for your help.
Ralph

klricks
Posts: 6593
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Unable to locate package hostapd on stretch

Thu Apr 05, 2018 2:07 am

Severian wrote:
Wed Apr 04, 2018 11:19 pm
Howdy,
I successfully installed hostapd after running update again. I can see 2 possible reasons.
1. Th epackage got added in the last couple of hours.
2. I ggot a bad repo update before without showing any errors.
This is not that important now, because I got the package. But, I am curious. Why do you think it worked now?
Thank you for your help.
Ralph
Normally running apt update is good for hours or up to a day or two.
For some reason recently apt update must be done again after apt upgrade before installing anything else.
I normally always do sudo apt update before installing anything.
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5968
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Unable to locate package hostapd on stretch

Thu Apr 05, 2018 6:30 am

A recent update modified /etc/apt/sources.list, which made it necessary to run apt update again afterwards.

cliquot22
Posts: 1
Joined: Thu Apr 19, 2018 6:56 pm

Re: Unable to locate package hostapd on stretch

Thu Apr 19, 2018 7:00 pm

I am having the same problem. I can't install the hostapd package (package not found). I've tried

Code: Select all

sudo apt-get update
and

Code: Select all

sudo apt update
but neither solved the issue.

Is there something else I can try?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5968
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Unable to locate package hostapd on stretch

Thu Apr 19, 2018 9:16 pm

cliquot22 wrote:
Thu Apr 19, 2018 7:00 pm
I am having the same problem. I can't install the hostapd package (package not found). I've tried

Code: Select all

sudo apt-get update
and

Code: Select all

sudo apt update
but neither solved the issue.

Is there something else I can try?
What's the output of 'apt-cache policy'?

tinkerbell18
Posts: 1
Joined: Thu Apr 26, 2018 10:43 am

Re: Unable to locate package hostapd on stretch

Thu Apr 26, 2018 10:51 am

Hi,
I'm having the same problem.
the output I get is:
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://archive.raspberrypi.org/debian stretch/ui armhf Packages
release o=Raspberry Pi Foundation,a=stable,n=stretch,l=Raspberry Pi Foundation,c=ui,b=armhf
origin archive.raspberrypi.org
500 http://archive.raspberrypi.org/debian stretch/main armhf Packages
release o=Raspberry Pi Foundation,a=stable,n=stretch,l=Raspberry Pi Foundation,c=main,b=armhf
origin archive.raspberrypi.org
Pinned packages:

Does this help?

LucaVino
Posts: 1
Joined: Tue Sep 04, 2018 8:37 am

Re: Unable to locate package hostapd on stretch

Tue Sep 04, 2018 8:43 am

Hi,
did anyone solve this issue? I'm having the same problem. I did update and upgrade, nothing helps. The output of "apt-cache policy" is the same as above.
Thanks

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5968
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Unable to locate package hostapd on stretch

Tue Sep 04, 2018 12:25 pm

if your 'apt policy' output is the same as posted above, you've messed up your /etc/apt/sources.list file.

Return to “General discussion”