You are not logged in.

#26 2018-01-12 00:54

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,096
Website

Re: Installing drivers for TP-Link Dual Band USB Wireless Adaptor

I can't see how apt could have removed your driver as you compiled it yourself, but that's not to say it isn't possible. Have you checked the /var/log/apt/history.log to see exactly what was updated/installed/removed?

Offline

#27 2018-01-12 01:10

crosscourt
Member
Registered: 2017-05-07
Posts: 1,475

Re: Installing drivers for TP-Link Dual Band USB Wireless Adaptor

Also try restarting network manager.

Offline

#28 2018-01-12 18:20

system5
Member
From: London
Registered: 2017-05-10
Posts: 46

Re: Installing drivers for TP-Link Dual Band USB Wireless Adaptor

The problem was not the router and so I tried to reinstall the drivers using the steps above which have always worked in the past.

The problem occurs after I type the make command as shown in the output below:

system5@q4osdesktop:~/MEGA/My System/TP-Link USB Adaptor/rtl8812AU_8821AU_linux-master$ sudo apt-get install linux-headers-$(uname -r) build-essential git
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.3).
git is already the newest version (1:2.11.0-3+deb9u2).
linux-headers-4.9.0-5-686-pae is already the newest version (4.9.65-3+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
system5@q4osdesktop:~/MEGA/My System/TP-Link USB Adaptor/rtl8812AU_8821AU_linux-master$ make
make ARCH=i386 CROSS_COMPILE= -C /lib/modules/4.9.0-5-686-pae/build M=/home/system5/MEGA/My System/TP-Link USB Adaptor/rtl8812AU_8821AU_linux-master  modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.0-5-686-pae'
make[3]: *** No rule to make target 'System/TP-Link'.  Stop.
Makefile:150: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-5-686-pae'
Makefile:1570: recipe for target 'modules' failed
make: *** [modules] Error 2
system5@q4osdesktop:~/MEGA/My System/TP-Link USB Adaptor/rtl8812AU_8821AU_linux-master$

My adaptor stopped working as soon as I rebooted my system following the general upgrade and I am now unsure as to what steps to take to get my adaptor working again.

Any advice would be greatly appreciated.

Offline

#29 2018-01-12 18:35

system5
Member
From: London
Registered: 2017-05-10
Posts: 46

Re: Installing drivers for TP-Link Dual Band USB Wireless Adaptor

Dai_trying wrote:

I can't see how apt could have removed your driver as you compiled it yourself, but that's not to say it isn't possible. Have you checked the /var/log/apt/history.log to see exactly what was updated/installed/removed?

I tried to view the log but access was denied as shown below:

system5@q4osdesktop:~$ /var/log/apt/history.log
bash: /var/log/apt/history.log: Permission denied
system5@q4osdesktop:~$ su
Password:
root@q4osdesktop:/home/system5# /var/log/apt/history.log
bash: /var/log/apt/history.log: Permission denied

Offline

#30 2018-01-12 19:19

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,096
Website

Re: Installing drivers for TP-Link Dual Band USB Wireless Adaptor

That looks like you are trying to run the log file, try

cat var/log/apt/history.log

This with list the file contents, alternatively you could load the file into your favourite text editor if that is easier to view.

And I don't know if it will make a difference, but I noticed the use of spaces in your directory names, I have found this to cause problems (with Linux in general) and I always use underscores instead, I don't know if it will make a difference in this case but might be worth trying.

Offline

#31 2018-01-12 20:01

system5
Member
From: London
Registered: 2017-05-10
Posts: 46

Re: Installing drivers for TP-Link Dual Band USB Wireless Adaptor

I tried the command but it produced the following:

system5@q4osdesktop:~$ cat var/log/apt/history.log
cat: var/log/apt/history.log: No such file or directory
system5@q4osdesktop:~$

I also read the thread from the top again and there was mention of using configure before the make command  - could this be worth trying?

Offline

#32 2018-01-12 20:20

system5
Member
From: London
Registered: 2017-05-10
Posts: 46

Re: Installing drivers for TP-Link Dual Band USB Wireless Adaptor

I note that the last time my adaptor failed to work followed me inadvertently upgrading to an unstable kernel. Do you think something similar has happened with yesterday's upgrade where new packages were installed and  others were upgraded?

Offline

#33 2018-01-12 21:45

system5
Member
From: London
Registered: 2017-05-10
Posts: 46

Re: Installing drivers for TP-Link Dual Band USB Wireless Adaptor

Well after all that effort I managed to resolve the issue by changing the directory to my memory stick which contained my original source code and the make command worked just fine!

I only wish I knew why yesterday's system upgrade deleted my wireless adaptor driver in the first place and why the make command  would not work with the directory into which I had copied my original source code.

It is all too bizarre but at least I am back up and running!!

Offline

#34 2018-01-12 22:19

crosscourt
Member
Registered: 2017-05-07
Posts: 1,475

Re: Installing drivers for TP-Link Dual Band USB Wireless Adaptor

The most recent kernel included a patch to protect against the meltdown and spectre cpu flaw issues so its possible it may have caused the issue.  Ive got it installed on many systems since released and havent had any issues, but problems have been reported with other distros.

Offline

#35 2018-01-13 00:26

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,096
Website

Re: Installing drivers for TP-Link Dual Band USB Wireless Adaptor

system5 wrote:

I tried the command but it produced the following:

system5@q4osdesktop:~$ cat var/log/apt/history.log
cat: var/log/apt/history.log: No such file or directory

Sorry, I missed the / at the beginning, the correct command should be

cat /var/log/apt/history.log

This might help to find out what was updated/installed/removed. smile

You would need to use the "configure" command before "making" the source and the reason it worked from your usb stick is because you had previously configured it already, so it didn't need to be done again. But as you are now "up and running" I posted this just for reference.

Offline

Board footer

Powered by FluxBB