Problems installing tp-link WN822N

Asked by John Wilson

I am trying to install a USB wi-fi adapter and have run into problems installing the drivers.
Searched the net and tried various solutions but the links were old and I ran into errors.
Can anyone suggest a solution that works?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What wifi chip does it use please?

If it's USB, then please give the output of:

lsb_release -a; uname -a; lsusb

Thanks

Revision history for this message
John Wilson (jwilsondmartin) said :
#2

Yes it is a USB
Here is the output:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
Linux john-H81M-S2H-GSM 5.0.0-37-generic #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 03f0:bd07 Hewlett-Packard
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 004: ID 046d:0821 Logitech, Inc. HD Webcam C910
Bus 005 Device 003: ID 2357:0108
Bus 005 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 03f0:cd11 Hewlett-Packard
Bus 003 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 005: ID 046d:abd0 Logitech, Inc.
Bus 003 Device 003: ID 0451:2036 Texas Instruments, Inc. TUSB2036 Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3
Revision history for this message
John Wilson (jwilsondmartin) said :
#4

Seemed to run smoothly to the make command.
Have my previous attempts muddied the waters?
Here is the output
john@john-H81M-S2H-GSM:~/rtl8192eu-linux-driver$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.0.0-37-generic/build M=/home/john/rtl8192eu-linux-driver modules
make[1]: Entering directory '/usr/src/linux-headers-5.0.0-37-generic'
  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_cmd.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_cmd.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_cmd.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_security.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_security.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_security.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

/home/john/rtl8192eu-linux-driver/core/rtw_security.c: In function ‘aes_cipher’:
/home/john/rtl8192eu-linux-driver/core/rtw_security.c:1598:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
     for (j = 0; j < 8; j++)
     ^~~
/home/john/rtl8192eu-linux-driver/core/rtw_security.c:1601:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
  payload_index = hdrlen + 8;
  ^~~~~~~~~~~~~
/home/john/rtl8192eu-linux-driver/core/rtw_security.c: In function ‘aes_decipher’:
/home/john/rtl8192eu-linux-driver/core/rtw_security.c:1984:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
     for (j = 0; j < 8; j++)
     ^~~
/home/john/rtl8192eu-linux-driver/core/rtw_security.c:1987:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
  payload_index = hdrlen + 8;
  ^~~~~~~~~~~~~
  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_debug.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_debug.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_debug.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_io.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_io.c:52:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_io.c:52:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_ioctl_query.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_ioctl_query.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_ioctl_query.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_ioctl_set.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_ioctl_set.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_ioctl_set.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_ieee80211.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_ieee80211.c:25:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_ieee80211.c:25:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_mlme.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/include/../hal/phydm/phydm_types.h:176,
                 from /home/john/rtl8192eu-linux-driver/include/../hal/phydm/phydm_precomp.h:24,
                 from /home/john/rtl8192eu-linux-driver/include/hal_data.h:25,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_mlme.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/include/../hal/phydm/phydm_types.h:176,
                 from /home/john/rtl8192eu-linux-driver/include/../hal/phydm/phydm_precomp.h:24,
                 from /home/john/rtl8192eu-linux-driver/include/hal_data.h:25,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_mlme.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_mlme_ext.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

/home/john/rtl8192eu-linux-driver/core/rtw_mlme_ext.c: In function ‘rtw_delba_check’:
/home/john/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:12427:7: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
       else
       ^~~~
/home/john/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:12429:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
        psta->recvreorder_ctrl[i].enable = _FALSE;
        ^~~~
/home/john/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:12430:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
       if (ret != _FAIL)
       ^~
/home/john/rtl8192eu-linux-driver/core/rtw_mlme_ext.c:12432:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
        rtw_reset_continual_no_rx_packet(psta, i);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_wlan_util.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_wlan_util.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_wlan_util.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_vht.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_vht.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_vht.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_pwrctrl.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_pwrctrl.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_pwrctrl.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_rf.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_rf.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_rf.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_recv.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_recv.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_recv.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_sta_mgt.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_sta_mgt.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_sta_mgt.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_ap.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_ap.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_ap.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_xmit.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_xmit.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_xmit.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_p2p.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_p2p.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_p2p.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_tdls.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_tdls.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_tdls.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_br_ext.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_br_ext.c:32:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_br_ext.c:32:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_iol.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_iol.c:21:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_iol.c:21:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_sreset.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_sreset.c:21:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_sreset.c:21:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_btcoex.o
  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_beamforming.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_beamforming.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_beamforming.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/rtw_odm.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/include/rtw_odm.h:23,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_odm.c:21:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/include/rtw_odm.h:23,
                 from /home/john/rtl8192eu-linux-driver/core/rtw_odm.c:21:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/core/efuse/rtw_efuse.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/core/efuse/rtw_efuse.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/core/efuse/rtw_efuse.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/os_dep/osdep_service.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/os_dep/osdep_service.c:24:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/os_dep/osdep_service.c:24:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/os_dep/linux/os_intfs.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/os_intfs.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/os_intfs.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/os_dep/linux/usb_intf.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/usb_intf.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/usb_intf.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/os_dep/linux/usb_ops_linux.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/usb_ops_linux.c:21:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/usb_ops_linux.c:21:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/os_dep/linux/ioctl_linux.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/ioctl_linux.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/ioctl_linux.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/os_dep/linux/xmit_linux.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/xmit_linux.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/xmit_linux.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/os_dep/linux/mlme_linux.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/mlme_linux.c:24:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/mlme_linux.c:24:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/os_dep/linux/recv_linux.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/recv_linux.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/recv_linux.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /home/john/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.o
In file included from /home/john/rtl8192eu-linux-driver/include/drv_types.h:35:0,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c:22:
/home/john/rtl8192eu-linux-driver/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /home/john/rtl8192eu-linux-driver/include/osdep_service_linux.h:84:0,
                 from /home/john/rtl8192eu-linux-driver/include/osdep_service.h:45,
                 from /home/john/rtl8192eu-linux-driver/include/drv_types.h:32,
                 from /home/john/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

/home/john/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_spt_band_free’:
/home/john/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c:288:20: warning: comparison between ‘enum nl80211_band’ and ‘enum ieee80211_band’ [-Wenum-compare]
  if(spt_band->band == IEEE80211_BAND_2GHZ)
                    ^~
/home/john/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c:294:25: warning: comparison between ‘enum nl80211_band’ and ‘enum ieee80211_band’ [-Wenum-compare]
  else if(spt_band->band == IEEE80211_BAND_5GHZ)
                         ^~
/home/john/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_get_systime_us’:
/home/john/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c:362:2: error: implicit declaration of function ‘get_monotonic_boottime’; did you mean ‘getboottime’? [-Werror=implicit-function-declaration]
  get_monotonic_boottime(&ts);
  ^~~~~~~~~~~~~~~~~~~~~~
  getboottime
cc1: some warnings being treated as errors
scripts/Makefile.build:284: recipe for target '/home/john/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.o' failed
make[2]: *** [/home/john/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.o] Error 1
Makefile:1614: recipe for target '_module_/home/john/rtl8192eu-linux-driver' failed
make[1]: *** [_module_/home/john/rtl8192eu-linux-driver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-37-generic'
Makefile:1700: recipe for target 'modules' failed
make: *** [modules] Error 2
john@john-H81M-S2H-GSM:~/rtl8192eu-linux-driver$ sudo make install
install -p -m 644 8192eu.ko /lib/modules/5.0.0-37-generic/kernel/drivers/net/wireless/
install: cannot stat '8192eu.ko': No such file or directory
Makefile:1706: recipe for target 'install' failed
make: *** [install] Error 1
john@john-H81M-S2H-GSM:~/rtl8192eu-linux-driver$ sudo modprobe 8192eu
modprobe: FATAL: Module 8192eu not found in directory /lib/modules/5.0.0-37-generic
john@john-H81M-S2H-GSM:~/rtl8192eu-linux-driver$

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

There are different repositories with the driver, and it seems that the one you use has not been adapted to work also on the 5.0 version of the kernel.

I suggest that you try https://github.com/clnhub/rtl8192eu-linux

(Disclaimer: It has been adapted for kernel versions up to 5.4, but I cannot guarantee that it works with your device.)

Revision history for this message
John Wilson (jwilsondmartin) said :
#6

Things seemed to work well until the final step 'Make' when I was told the binary code for rtl8192eu was not found.
That occurred in the directory rtl8192eu-linux-driver and also in the directory rtl8192eu where I could see the binary file.
Here is the make.log file from my attempt to make in the rtl8192eu directory:
DKMS make.log for rtl8192eu-1.0 for kernel 5.0.0-37-generic (x86_64)
Tue Jan 14 13:46:46 PST 2020
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.0.0-37-generic/build M=/var/lib/dkms/rtl8192eu/1.0/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.0.0-37-generic'
  CC [M] /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_cmd.o
In file included from /var/lib/dkms/rtl8192eu/1.0/build/include/drv_types.h:35:0,
                 from /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_cmd.c:22:
/var/lib/dkms/rtl8192eu/1.0/build/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /var/lib/dkms/rtl8192eu/1.0/build/include/osdep_service_linux.h:84:0,
                 from /var/lib/dkms/rtl8192eu/1.0/build/include/osdep_service.h:45,
                 from /var/lib/dkms/rtl8192eu/1.0/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_cmd.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

  CC [M] /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_security.o
In file included from /var/lib/dkms/rtl8192eu/1.0/build/include/drv_types.h:35:0,
                 from /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_security.c:22:
/var/lib/dkms/rtl8192eu/1.0/build/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /var/lib/dkms/rtl8192eu/1.0/build/include/osdep_service_linux.h:84:0,
                 from /var/lib/dkms/rtl8192eu/1.0/build/include/osdep_service.h:45,
                 from /var/lib/dkms/rtl8192eu/1.0/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_security.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100

/var/lib/dkms/rtl8192eu/1.0/build/core/rtw_security.c: In function ‘aes_cipher’:
/var/lib/dkms/rtl8192eu/1.0/build/core/rtw_security.c:1598:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
     for (j = 0; j < 8; j++)
     ^~~
/var/lib/dkms/rtl8192eu/1.0/build/core/rtw_security.c:1601:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
  payload_index = hdrlen + 8;
  ^~~~~~~~~~~~~
/var/lib/dkms/rtl8192eu/1.0/build/core/rtw_security.c: In function ‘aes_decipher’:
/var/lib/dkms/rtl8192eu/1.0/build/core/rtw_security.c:1984:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
     for (j = 0; j < 8; j++)
     ^~~
/var/lib/dkms/rtl8192eu/1.0/build/core/rtw_security.c:1987:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
  payload_index = hdrlen + 8;
  ^~~~~~~~~~~~~
  CC [M] /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_debug.o
In file included from /var/lib/dkms/rtl8192eu/1.0/build/include/drv_types.h:35:0,
                 from /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_debug.c:22:
/var/lib/dkms/rtl8192eu/1.0/build/include/wifi.h:1019:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /var/lib/dkms/rtl8192eu/1.0/build/include/osdep_service_linux.h:84:0,
                 from /var/lib/dkms/rtl8192eu/1.0/build/include/osdep_service.h:45,
                 from /var/lib/dkms/rtl8192eu/1.0/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_debug.c:22:
:

Revision history for this message
John Wilson (jwilsondmartin) said :
#7

I am beginning to think there is a problem with my computer's OS.
In Recovery mode I cannot run fsck.
I get the following messages:
/lib/recovery-mode/recovery-menu: line 80: etc/default/reS: no such file or directory
fsck from util-linux 2.31.1
dev/sda1 is mounted
e2fsck: cannot continue, aborting

Could this be why I cannot install rtl8192eu and if so how do I fix it?

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

fsck (file system check) requires that the file system is completely idle, i.e. it must not be mounted. So you cennot run fsck on your root file system when you boot from it, not even in recovery mode.

To run fsck on your root file system you have to boot an Ubuntu installer in the "Try Ubuntu without installing" mode and then issue the appropriate command.

And the output from building the driver:
It shows only warnings. I do not see a problem.
If you want us to check, then please provide the full output.

Revision history for this message
John Wilson (jwilsondmartin) said :
#9

Booted up with a USB installer but could not get fsck to run.
Didn't get very far trying to install github's driver as there were missing dependencies etc.
 Jeremy and Manfred have pointed me to different ways that should work and my machine fails at the make stage
How can I check my machine or what do I need to reinstall?

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

Basic checks:

File system status:
When booting your system, you should see for a short moment a line on top of the screen that looks like
/dev/sda1 clean, 12345/23456 files, 123456/234567 blocks
If you see the word "clean", then this confirms that the root file system is in a consistent status and running fsck is not required.

Package management system:
Execute the commands

sudo apt update
sudo apt full-upgrade
sudo dpkg --audit

If there are warnings or error messages on the first two, or any output on the third command, then you have an inconsistency in the package management system (e.g. Issing dependencies).

What are the results of these checks on your system?

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

Typo
** e.g. missing dependencies **

Revision history for this message
John Wilson (jwilsondmartin) said :
#12

Thank you for your help.
No file system status message on booting up.
It would be nice to have one.

Here is the output of sudo-apt-update:
john@john-H81M-S2H-GSM:~$ sudo apt-get update
[sudo] password for john:
Ign:1 http://linux.dropbox.com/ubuntu bionic InRelease
Get:2 http://linux.dropbox.com/ubuntu bionic Release [6,600 B]
Hit:3 https://deb.opera.com/opera-stable stable InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Ign:6 http://ppa.launchpad.net/openlp-core/release/ubuntu bionic InRelease
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Err:8 http://ppa.launchpad.net/openlp-core/release/ubuntu bionic Release
  404 Not Found [IP: 91.189.95.83 80]
Get:9 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [830 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [629 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [295 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [73.8 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [143 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,038 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1,000 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [264 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [194 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [449 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:22 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [7,976 B]
Get:23 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [606 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-security/main i386 Packages [417 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [38.5 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [17.6 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [41.5 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic-security/universe i386 Packages [607 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [633 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42.1 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [16.4 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [116 kB]
Get:33 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/openlp-core/release/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
john@john-H81M-S2H-GSM:~$

john@john-H81M-S2H-GSM:~$ sudo apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  gir1.2-snapd-1 libsnapd-glib1
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 98.4 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 gir1.2-snapd-1 amd64 1.49-0ubuntu0.18.04.1 [12.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsnapd-glib1 amd64 1.49-0ubuntu0.18.04.1 [85.5 kB]
Fetched 98.4 kB in 1s (92.7 kB/s)
(Reading database ... 221536 files and directories currently installed.)
Preparing to unpack .../gir1.2-snapd-1_1.49-0ubuntu0.18.04.1_amd64.deb ...
Unpacking gir1.2-snapd-1:amd64 (1.49-0ubuntu0.18.04.1) over (1.49-0ubuntu0.18.04.0) ...
Preparing to unpack .../libsnapd-glib1_1.49-0ubuntu0.18.04.1_amd64.deb ...
Unpacking libsnapd-glib1:amd64 (1.49-0ubuntu0.18.04.1) over (1.49-0ubuntu0.18.04.0) ...
Setting up libsnapd-glib1:amd64 (1.49-0ubuntu0.18.04.1) ...
Setting up gir1.2-snapd-1:amd64 (1.49-0ubuntu0.18.04.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

sudo dpkg --audit did not appear to run
john@john-H81M-S2H-GSM:~$ sudo dpkg --audit
john@john-H81M-S2H-GSM:~$ sudo dpkg --audit

Revision history for this message
John Wilson (jwilsondmartin) said :
#13

john@john-H81M-S2H-GSM:~$ sudo dpkg --audit missing dependencies
[sudo] password for john:
dpkg: package 'missing' is not installed
dpkg: package 'dependencies' is not installed
john@john-H81M-S2H-GSM:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#14

1. That file system check information line is shown only for a rather short time. If your system boots very fast, then it might be hard to notice.

2. If "sudo dpkg --audit" does not produce any output (as seen on your system), then this is a good sign, because there are no problems with broken dependencies or other inconsistencies in the package management system.

3. There is one (minor) problem in the package management system:
Err:8 http://ppa.launchpad.net/openlp-core/release/ubuntu bionic Release 404 Not Found
E: The repository 'http://ppa.launchpad.net/openlp-core/release/ubuntu bionic Release' does not have a Release file.

There is no version for bionic in the openlp-core PPA. Since the current version of openlp is available in the standard Ubuntu repositories, you do not need that PPA.

What is the output of the command
grep openlp-core /etc/apt/sources.list /etc/apt/sources.list.d/*.list

Revision history for this message
John Wilson (jwilsondmartin) said :
#15

Have removed openlp-core PPA from my software sources

Here is the output:
john@john-H81M-S2H-GSM:~$ grep openlp-core /etc/apt/sources.list /etc/apt/sources.list.d/*.list
john@john-H81M-S2H-GSM:~$

john@john-H81M-S2H-GSM:~$ sudo grep openlp-core /etc/apt/sources.list /etc/apt/sources.list.d/*.list
[sudo] password for john:
john@john-H81M-S2H-GSM:~$

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#16

ok. The command "sudo apt update" should now no more show lines with "Err:", "E:", "W:" or "N:" at the beginning.

Now let's go back to the driver for the tp-link WN822N device.

I suggest that you clean up your system and remove all source directories that you have created in your installation attempts for the driver from the https://github.com/jeremyb31/rtl8192eu-linux-driver and https://github.com/clnhub/rtl8192eu-linux source repositories.

Then execute the commands

sudo apt install dkms git build-essential linux-headers-$(uname -r)
cd
mkdir wlan-drv
cd wlan-drv
git clone https://github.com/clnhub/rtl8192eu-linux
cd rtl8192eu-linux
./install_wifi.sh

and report what the results are. (Remark: you can of course name the working directory different from "wlan-drv")

Revision history for this message
Jeremy (wa113y3s) said :
#17

The rtl8xxxu driver in the kernel should support that device but there have been reports of poor performance

Revision history for this message
John Wilson (jwilsondmartin) said :
#18

sudo apt-update:
john@john-H81M-S2H-GSM:~$ sudo apt update
Hit:1 https://deb.opera.com/opera-stable stable InRelease
Ign:2 http://linux.dropbox.com/ubuntu bionic InRelease
Get:3 http://linux.dropbox.com/ubuntu bionic Release [6,600 B]
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [629 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [830 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,038 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1,000 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [7,472 B]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [9,500 B]
Get:15 http://archive.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [4,284 B]
Get:16 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [6,116 B]
Fetched 3,782 kB in 4s (1,022 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.

sudo apt install dkms git build-essential linux-headers-$(uname -r):
john@john-H81M-S2H-GSM:~$ sudo apt install dkms git build-essential linux-headers-$(uname -r)
[sudo] password for john:
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
dkms is already the newest version (2.3-3ubuntu9.7).
git is already the newest version (1:2.17.1-1ubuntu0.5).
linux-headers-5.0.0-37-generic is already the newest version (5.0.0-37.40~18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

and the rest of it:
john@john-H81M-S2H-GSM:~$ cd wlan-drv
john@john-H81M-S2H-GSM:~/wlan-drv$ git clone https://github.com/clnhub/rtl8192eu-linux
Cloning into 'rtl8192eu-linux'...
remote: Enumerating objects: 18, done.
remote: Counting objects: 100% (18/18), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 653 (delta 6), reused 4 (delta 0), pack-reused 635
Receiving objects: 100% (653/653), 2.45 MiB | 1.62 MiB/s, done.
Resolving deltas: 100% (230/230), done.
john@john-H81M-S2H-GSM:~/wlan-drv$ cd rtl8192eu-linux
john@john-H81M-S2H-GSM:~/wlan-drv/rtl8192eu-linux$ ./install_wifi.sh
rmmod: ERROR: Module 8192eu is not currently loaded
rmmod: ERROR: Module rtl8xxxu is not currently loaded

------------------------------
Deleting module version: 1.0
completely from the DKMS tree.
------------------------------
Done.

Creating symlink /var/lib/dkms/rtl8192eu/1.0/source ->
                 /usr/src/rtl8192eu-1.0

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' all KVER=5.0.0-37-generic.........................
cleaning build area...

DKMS: build completed.

8192eu.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.0.0-37-generic/updates/dkms/

depmod...

Backing up initrd.img-5.0.0-37-generic to /boot/initrd.img-5.0.0-37-generic.old-dkms
Making new initrd.img-5.0.0-37-generic
(If next boot fails, revert to initrd.img-5.0.0-37-generic.old-dkms image)
update-initramfs......

DKMS: install completed.

Now let's see if it worked
It does!
Thank you for all your help

Revision history for this message
John Wilson (jwilsondmartin) said :
#19

Thanks Manfred Hampl, that solved my question.

Revision history for this message
John Wilson (jwilsondmartin) said :
#20

Thank you Jeremy for your comment.
When I got the USB adapter it seemed to work out of the box, just.
After a day or two it just stopped working and then I had to find a solution.
Once again, thank you for your help.