Thursday, September 16, 2021

"apt full-upgrade" returns "1 not fully installed or removed."

1. find the issue.
     sudo dpkg -C


test@test:/var/lib/dpkg$ sudo dpkg -C

The following packages are in a mess due to serious problems during

installation.  They must be reinstalled for them (and any packages

that depend on them) to function properly:

 libreoffice-common   office productivity suite -- arch-independent files

3. Remove the broken package via the following command:

    sudo dpkg --remove --force-remove-reinstreq  libreoffice-common  

4. Install the package again:

    sudo apt-get install  libreoffice-common  


Thursday, September 2, 2021

Wifi setup from command line on linux

 1. find the wireless interface (starting with w)


ip a


2. To check the configuration of the wireless interface


sudo iwconfig


2. make sure the wireless interface is up


sudo ip link set w___ up


3. find the ESSID of available for connection


sudo iwlist w___ scan | grep ESSID


4.1 Connect to the ESSID of your choice ( yyy )


sudo iwconfig w___ essid yyy


4.2 If it's password-protected then use


sudo iwconfig w___ essid yyy key s:zzz


(Here "s:" is used for string, while "zzz" is your key)


5. Setting up dhcp


sudo dhclient w___


6. check the connection to the internet


ping 8.8.8.8