Raspberry Pi Wifi failed

Hi there,

I try to use a wifi adapter via USB. Dmesg says it’s a RTL8191S WLAN Adapter. When I connect to my wifi the OSMC-App tells me the conecttion failed. Sometimes there is a connect but would be lost within a minute.

Here ist my log:

Maybe somebody could take a look into it? There is an interesting line:
Sep 14 14:46:12 wohnzimmer wpa_supplicant[380]: wlan0: Association request to the driver failed


I had WiFi issues after a dist-upgrade today, which were solved by re-booting the router. This may not be the answer but worth a try.

Also try apt-get update and apt-get dist-upgrade from the commandline to see why you are having problems with gnupg.

Thanks for the advise. I did the upgrade and received gnupg but the connection is still unstable as described. Also reboot of all devices didn’t do the trick.

  1. The error messages suggest either some kind of radio interference or a poor signal. You don’t say if you had success with WiFi on this device in the past but changing the position and/or orientation of the Pi can sometimes improve a marginal signal. Your Pi also has a working cable connection, so is the WiFi connection really necessary?

  2. It looks like you’re using TKIP encryption on the router. If possible, it would be best to use WPA2-PSK/AES.

  3. Your APT log is full of error messages like:

    Log started: 2017-09-14 06:17:35
    dpkg: warning: ‘ldconfig’ not found in PATH or not executable
    dpkg: warning: ‘start-stop-daemon’ not found in PATH or not executable
    dpkg: error: 2 expected programs not found in PATH or not executable
    Note: root’s PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
    Log ended: 2017-09-14 06:17:36
    . These programs should be present on your system if you’re going to run system updates. Please run the following to check if they’re present:

    ls -l which ldconfig
    ls -l which start-stop-daemon

Hallo dillthedog,

thanks for your reply.

  1. I’ve had a gut-feeling like this but didn’t move very far. At a place somewhere else the Wifi-Signal seems solid now. Thanks!

  2. Good point, I deactivated TKIP.

  3. Maybe you can help me with this as well:

osmc@wohnzimmer:~$ ls -l which ldconfig
-rwxr-xr-x 1 root root 387 Jun 19 21:56 /sbin/ldconfig
osmc@wohnzimmer:~$ ls -l which start-stop-daemon
-rwxr-xr-x 1 root root 26820 Jun 5 2016 /sbin/start-stop-daemon

Looks good to me. Do you have any suggestions?

You should try the two commands again, this time prefixed with sudo.

Please also show the output from:

sudo echo $PATH
sudo cat /etc/sudoers
sudo -l

OK, here it is:

osmc@wohnzimmer:~$ sudo echo $PATH
osmc@wohnzimmer:~$ sudo cat /etc/sudoers
# This file MUST be edited with the 'visudo' command as root.
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
# See the man page for details on how to write a sudoers file.
Defaults	env_reset
Defaults	mail_badpass
Defaults	secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification

# Allow members of group sudo to execute any command

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d
osmc@wohnzimmer:~$ sudo -l
Matching Defaults entries for osmc on wohnzimmer:
    env_reset, mail_badpass,
    env_keep+=RPI_UPDATE_UNSUPPORTED, !secure_path

User osmc may run the following commands on wohnzimmer:
    (root) NOPASSWD: ALL

Everything looks fine, so far, though you forgot to do this bit:

You should try the two commands again, this time prefixed with sudo.

but no worries.

I think the next step should be to run:

sudo apt-get update
sudo apt-get dist-upgrade -y

and see what happens. Please post the output from the commands.