On 13/05/2019 22:51, Andrej Shadura wrote:

> Could you please provide more details?

# l /etc/hostapd
ls: cannot access '/etc/hostapd': No such file or directory


# apt policy hostapd
hostapd:
  Installed: (none)
  Candidate: 2:2.7+git20190128+0c1e29f-5
  Version table:
     2:2.7+git20190128+0c1e29f-5 500
        500 https://deb.debian.org/debian buster/main amd64 Packages


# apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 400 https://deb.debian.org/debian buster-proposed-updates/main amd64
Packages
     release
o=Debian,a=testing-proposed-updates,n=buster-proposed-updates,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 https://deb.debian.org/debian-security buster/updates/main amd64
Packages
     release o=Debian,a=testing,n=buster,l=Debian-Security,c=main,b=amd64
     origin deb.debian.org
 500 https://deb.debian.org/debian buster/non-free amd64 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=non-free,b=amd64
     origin deb.debian.org
 500 https://deb.debian.org/debian buster/contrib amd64 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=contrib,b=amd64
     origin deb.debian.org
 500 https://deb.debian.org/debian buster/main amd64 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=main,b=amd64
     origin deb.debian.org
Pinned packages:


# apt install hostapd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  hostapd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 778 kB of archives.
After this operation, 2082 kB of additional disk space will be used.
Get:1 https://cdn-aws.deb.debian.org/debian buster/main amd64 hostapd
amd64 2:2.7+git20190128+0c1e29f-5 [778 kB]
Fetched 778 kB in 1s (700 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package hostapd.
(Reading database ... 42783 files and directories currently installed.)
Preparing to unpack .../hostapd_2%3a2.7+git20190128+0c1e29f-5_amd64.deb ...
Unpacking hostapd (2:2.7+git20190128+0c1e29f-5) ...
Setting up hostapd (2:2.7+git20190128+0c1e29f-5) ...
Created symlink /etc/systemd/system/hostapd.service → /dev/null.
Created symlink
/etc/systemd/system/multi-user.target.wants/hostapd.service →
/lib/systemd/system/hostapd.service.
Job for hostapd.service failed because the control process exited with
error code.
See "systemctl status hostapd.service" and "journalctl -xe" for details.
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for systemd (241-3) ...
Scanning processes...

Scanning candidates...

Scanning processor microcode...

Scanning linux images...


Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

Restarting services...

Service restarts being deferred:
 systemctl restart libvirtd.service

No containers need to be restarted.

No user sessions are running outdated binaries.

# tail -f /var/log/syslog | grep hostap
systemd[1]: hostapd.service: Service RestartSec=2s expired, scheduling
restart.
systemd[1]: hostapd.service: Scheduled restart job, restart counter is
at 71.
hostapd[24428]: Configuration file: /etc/hostapd/hostapd.conf
hostapd[24428]: Could not open configuration file
'/etc/hostapd/hostapd.conf' for reading.
hostapd[24428]: Failed to set up interface with /etc/hostapd/hostapd.conf
hostapd[24428]: Failed to initialize interface
systemd[1]: hostapd.service: Control process exited, code=exited,
status=1/FAILURE
systemd[1]: hostapd.service: Failed with result 'exit-code'.
systemd[1]: hostapd.service: Service RestartSec=2s expired, scheduling
restart.
systemd[1]: hostapd.service: Scheduled restart job, restart counter is
at 72.
hostapd[24429]: Configuration file: /etc/hostapd/hostapd.conf
hostapd[24429]: Could not open configuration file
'/etc/hostapd/hostapd.conf' for reading.
hostapd[24429]: Failed to set up interface with /etc/hostapd/hostapd.conf
hostapd[24429]: Failed to initialize interface
systemd[1]: hostapd.service: Control process exited, code=exited,
status=1/FAILURE
systemd[1]: hostapd.service: Failed with result 'exit-code'.



> The postinst is set up in a way so that if /etc/hostapd/hostapd.conf
> is not readable or missing, the hostapd.service is masked during the
> package installation unless it was already running.

Looks like it's not masked.


> From what you wrote it sounds like the package hasn’t been installed
> before, but then it wouldn’t run by default.

The package was installed before, than purged, configs were removed.


-- 
sergio.

Reply via email to