സെന്റ്. ജോൺസ് എച്ച് എസ് എസ് മറ്റം/ഫോമുകൾ

Schoolwiki സംരംഭത്തിൽ നിന്ന്

Removing broken packages in Ubuntu

sudo apt install -f<br>

sudo dpkg --purge --force-all <name of broken package>

grub installation പൂർത്തിയാവാതെ

No പ്രമാണം
1 പ്രമാണം:Relinquishment.pdf

3. ഉബുണ്ടു ഇൻസ്റ്റാൾ ചെയ്യുമ്പോൾ grub installation പൂർത്തിയാവാതെ OS ഇൻസ്റ്റലേഷൻ പരാജയപ്പെടുന്ന കമ്പ്യൂട്ടറുകളിൽ ഉബുണ്ടു ഇൻസ്റ്റാൾ ചെയ്യുന്ന വിധം.


ഇതിൽ ആദ്യം ഗ്രബ് ബൂട്ട് ലോഡർ ഇല്ലാതെ OS ഇൻസ്റ്റാൾ ചെയ്യുകയും അതിനു ശേഷം ഗ്രബ് Manually ഇൻസ്റ്റാൾ ചെയ്യുകയുമാണ് വേണ്ടത്. അതിനായി Try Ubuntu സെലക്ട് ചെയ്ത്  Live സെഷനിൽ ബൂട്ട് ചെയ്യുക. ഗ്രബ് ഇല്ലാതെ OS ഇൻസ്റ്റാൾ ചെയ്യുന്നതിനായി ഒരു ടെർമിനൽ തുറന്ന് sudo ubiquity -b എന്ന കമാന്റ് റൺ ചെയ്യുക ഇപ്പാൾ ഇൻസ്റ്റലേഷൻ ജാലകം പ്രത്യക്ഷപ്പെടും. സാധാരണപോലെ ഇൻസ്റ്റലേഷൻ തുടരാം. ഇൻസ്റ്റലേഷൻ പൂർത്തിയായതിനു ശേഷം 'Continue testing' ക്ലിക്ക് ചെയ്ത് ലൈവ് സെഷനിൽ തന്നെ തുടരുക. Disks എന്ന സോഫ്റ്റ്‍വെയർ ഉപയോഗിച്ച് root partition ഉം  EFI partition ഉം ഏതെന്ന് കണ്ടെത്തുക. (ഉദാഹരണമായി റൂട്ട് പാർട്ടീഷ്യൻ /dev/sda6 ഉം EFI പാർട്ടീഷ്യൻ /dev/sda1 ഉം ആണെന്നിരിക്കട്ടെ.) റൂട്ട് പാർട്ടീഷ്യനെ (ഇവിടെ /dev/sda6 ആണ് ഉദാരണമായി ഉപയോഗിക്കുന്നത്) ലൈവ് സെഷനിലെ /mnt യിലേക്ക് മൗണ്ട് ചെയ്യുക. അതിനായി sudo mount /dev/sda6 /mnt എന്ന കമാന്റ് റൺ ചെയ്യുക. തുടർന്ന് EFI പാർട്ടീഷ്യൻ മൗണ്ട് ചെയ്യുന്നതിനുള്ള ഫോൾഡർ നിർമ്മിക്കുക. അതിനായി  sudo mkdir -p /mnt/boot/efi എന്ന കമാന്റ് റൺ ചെയ്യുക. അതിനു ശേഷം  sudo mount /dev/sda1 /mnt/boot/efi എന്ന കമാന്റ് റൺ ചെയ്യുക തുടർന്ന്  for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done എന്ന കമാന്റ് റൺ ചെയ്യുക. അതിനു ശേഷം sudo modprobe efivars എന്ന കമാന്റ് റൺ ചെയ്യുക. ഇനി grub-efi പാക്കേജ് ഇൻസ്റ്റാൾ ചെയ്യേണ്ടതുണ്ട്. അതിനായി  sudo apt-get install --reinstall grub-efi-amd64 എന്ന കമാന്റ് റൺ ചെയ്യുക. (ഇൻസ്റ്റലേഷൻ തുടരുന്നതിനായി Y അമർത്തുക) തുടർന്ന് ഗ്രബ് ഇൻസ്റ്റാൾ ചെയ്യാം. അതിനായി sudo grub-install --no-nvram --root-directory=/mnt /dev/sda എന്ന കമാന്റ് റൺ ചെയ്യുക. ഇനി ഗ്രബ് അപ്ഡേറ്റ് ചെയ്യുന്നതിനായി ചുവടെ നൽകിയ രണ്ട് കമാന്റുകൾ റൺ ചെയ്യുക sudo chroot /mnt update-grub തുടർന്ന് chroot ൽനിന്ന് പുറത്തുകടക്കുന്നതിനായി exit എന്ന കമാന്റ് റൺ ചെയ്യുക. കമ്പ്യൂട്ടർ റീസ്റ്റാർട്ട് ചെയ്ത് വീണ്ടും ലൈവ് സെഷനിൽ പ്രവേശിക്കുക. Disks എന്ന സോഫ്റ്റ്‍വെയർ ഉപയോഗിച്ച്  EFI partition തുറക്കുക. Boot എന്ന ഫോൾഡറിനെ 1Boot എന്ന പേരിൽ rename ചെയ്യുക. ubuntu എന്ന ഫോൾഡറിനെ copy ചെയ്ത് അവിടെത്തന്നെ paste ചെയ്യുക. ഇപ്പോൾ ubuntu (copy) എന്ന പേരിൽ ഒരു ഫോൾഡർ അവിടെ കാണാം. ഇതിനെ (വലിയ അക്ഷരത്തിൽ) BOOT എന്ന പേരിൽ  rename ചെയ്യുക. ഈ BOOT എന്ന ഫോൾഡർ തുറന്ന് അതിനുള്ളിലെ grubx64.efi എന്ന ഫയൽ copy ചെയ്ത് അവിടെത്തന്നെ paste ചെയ്ത് അതിനെ BOOTX64.efi എന്ന പേരിൽ  rename ചെയ്യുക. കമ്പ്യൂട്ടർ റീസ്റ്റാർട്ട് ചെയ്യുക റീസ്റ്റാർട്ട് ചെയ്യുമ്പോൾ ബൂട്ട് ഓപ്ഷൻ കീ (F12) അമർത്തി ലിനക്സിനെ സൂചിപ്പിക്കുന്ന ബൂട്ട് എൻട്രി വന്നിട്ടുണ്ട് എന്ന് ഉറപ്പ് വരുത്തുക. Windows ഉള്ള കമ്പ്യൂട്ടറാണെങ്കിൽ ചിലപ്പോൾ Windows നു താഴെയായിട്ടായിരിക്കും ലിനക്സ് വന്നിട്ടുണ്ടാവുക. ഇത് സെലക്ട് ചെയ്താൽ ഇപ്പോൾ ഇൻസ്റ്റാൾ ചെയ്ത OS ലേക്ക് ബൂട്ട് ചെയ്യാം.


*******************************************************************************************************************************************************************************************

1. Reboot and go to BIOS to make sure wireless network are enabled. And plug laptop into a wired connection.

2. Open terminal either via Ctrl+Alt+T shortcut key or by searching for ‘terminal’ from software launcher.

3.1 Run command to get the newest Realtek rtlwifi codes that includes rtl8192ce, rtl8192cu, rtl8192se, rtl8192de, rtl8188ee, rtl8192ee, rtl8723ae, rtl8723be, and rtl8821ae.:

git clone https://github.com/lwfinger/rtlwifi_new.git

And then check out extended branch for rtl8822be or rtl8723de:

cd rtlwifi_new/ && git checkout origin/extended -b extended

3.2 You may install the building tools first via command:

sudo apt-get install linux-headers-generic build-essential git

4. In this terminal window, install the drivers via command:

sudo make install

Type your password (no asterisks feedback) when it prompts and hit Enter.

5. If the installation success, run 2 commands load the new driver:

sudo modprobe -r rtl8723desudo modprobe rtl8723de

The wireless network starts working in my case:

6. If that does not work, you may remove and blacklist the broadcom drivers and restart:

sudo apt purge bcmwl-kernel-sourcesudo sed -i '/blacklist bcma/ d' /etc/modprobe.d/blacklist.confsudo sed -i '/blacklist brcmsmac/ d' /etc/modprobe.d/blacklist.conf

In addition, (thanks to jeremy31) if you notice weak signal try command:

sudo modprobe -r rtl8723de && sleep 5 && sudo modprobe rtl8723de ant_sel=1

and see if it is better, if not run:

sudo modprobe -r rtl8723de && sleep 5 && sudo modprobe rtl8723de ant_sel=2

Or write the rule into the configuration. Replace X with whatever setting worked best

echo "options rtl8723de ant_sel=X" | sudo tee /etc/modprobe.d/rtl8723de.conf

***************************************************************************************************************************************

No WiFi adapter issue

First try to update the system by open terminal and type the following command:

1. Turn on the laptop and connect it to the internet via LAN wired connection.

1.1  Open terminal either via Ctrl+Alt+T shortcut key or by searching for ‘terminal’ from software launcher.

1.2  type the following command command:

sudo apt-get update

Let the system finish, then type:

sudo apt-get upgrade

In case the software asks you what type of packaging to install, choose the default options by pressing ENTER.

1.3  Open the update manager, refresh it and install all available updates.

You can see how to do it in this video:

* The video is for Linux Mint, but the process will be the same for Ubuntu.


After completing all the updates restart your computer and check if you can connect to the WiFi.

If Ubuntu still does not recognize the WiFi, move to stage 2:


2. Turn on the laptop and connect it to the internet via LAN wired connection.

2.1  Open terminal either via Ctrl+Alt+T shortcut key or by searching for ‘terminal’ from software launcher.

2.2 type the following command command, in this order, one after the other finish:

sudo apt remove rtl8821ce-dkms
sudo apt install git
git clone https://github.com/tomaspinho/rtl8821ce.git
cd rtl8821ce
sudo ./dkms-install.sh 


If Ubuntu still does not recognize the WiFi, move to stage 3:


3. Open terminal either via Ctrl+Alt+T shortcut key or by searching for ‘terminal’ from software launcher.



3.1 Run the command bellow to get the newest Realtek rtlwifi codes that includes rtl8192ce, rtl8192cu, rtl8192se, rtl8192de, rtl8188ee, rtl8192ee, rtl8723ae, rtl8723be, and rtl8821ae.:

git clone https://github.com/lwfinger/rtlwifi_new.git

And then check out extended branch for rtl8822be or rtl8723de:

cd rtlwifi_new/ && git checkout origin/extended -b extended



3.2 You may install the building tools first via command:

sudo apt-get install linux-headers-generic build-essential git

4. In this terminal window, install the drivers via command:

sudo make install

Type your password (no asterisks feedback) when it prompts and hit Enter.



5. . If the installation success, run 2 commands load the new driver:

sudo modprobe -r rtl8723de 
sudo modprobe rtl8723de

Wireless network should starts working now, but if it doesn't move to stage 6:


6. Remove and blacklist the broadcom drivers and restart:

sudo apt purge bcmwl-kernel-source 
sudo sed -i '/blacklist bcma/ d' /etc/modprobe.d/blacklist.conf 
sudo sed -i '/blacklist brcmsmac/ d' /etc/modprobe.d/blacklist.conf


In addition if you notice weak signal try command:

sudo modprobe -r rtl8723de && sleep 5 && sudo modprobe rtl8723de ant_sel=1

and see if it is better, if not run:

sudo modprobe -r rtl8723de && sleep 5 && sudo modprobe rtl8723de ant_sel=2

Or write the rule into configuration. Replace X with whatever setting worked best

echo "options rtl8723de ant_sel=X" | sudo tee /etc/modprobe.d/rtl8723de.conf


If this does not work try the following:

Remove the settings you made.

sudo rm /etc/modprobe.d/rtl8723be.conf

If you do not have this file, nothing is wrong.

Then install a good driver

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms