I've already solved my initial wifi problem here: Wifi drops after ~ 5 minutes with RTL8821AE | Ask Ubuntu but I've tried to optimize it (because anytime there was a kernel update I have to execute all the commands of the solution again) and I've messed up something.
To solve the kernel update problem I tried
sudo dkms add ./rtlwifi_new-master
just before an update. I ran the command in the Desktop folder but I got this output:
Error! Could not find module source directory.
Directory: /usr/src/.-rtlwifi_new-master does not exist.
So I thought that I should have run the given command while in /usr/src/
folder, so I did so, but after doing that my wifi problem got worse and now every time I reboot the PC I need to execute the whole solution again, whereas before this process was necessary only after a kernel update.
Also, on the main screen I see something like
there is an error! rtlwifi_new-master is an external package. Please remove it
In summary:
I got a notification of a system update
I executed
sudo dkms add ./rtlwifi_new-master
in src folderI didn't reboot
I executed the update
I rebooted
Worse problem than before
I thought of running
rm -R rtlwifi-new-0.10
in the /src folder but I don't have the permission and I've already messed up with that one time. You can see it here:
Ubuntu 16.04 lts lost administrator rights bash: /etc/profile: Permission denied | Ask Ubuntu
Suggestions??
ls | grep rtlwifi
You likely have it in your /home – Jeremy31 Aug 07 '17 at 20:11rtlwifi-new-0.10 rtlwifi-new-0.6
Both of the 2 lines have a red color(guess for the permissions) – Zeno Raiser Aug 07 '17 at 20:32ls /var/lib/dkms | grep rtlwifi
Were you compiling the new driver every time in /usr/src/ before? – Jeremy31 Aug 07 '17 at 21:16/home/zenoraiser/Scrivania/RisoluzioneProbPC/Mega-svarione-wifi-risolto/rtlwifi_new-master
which are some folders that i've created in desktop to track the pc issues that i've solved. With last command requested i've got this output: rtlwifi-new (rtlwifi again red) – Zeno Raiser Aug 07 '17 at 21:40