This can be Solved by the following Commands.
I have installed LUbuntu on my old desktop and I got an issue when I tried to download a
UNRAR file.
Error Occurred as
pavan_surya@lakshmi-SuryaNarayanaMurthy:~$ sudo apt-get install unrar
[sudo] password for pavan_surya:
Bus errorackage lists... 0%
then i tried to do in the following way
sudo fuser -vvv /var/lib/dpkg/lock
sudo rm /var/lib/apt/lists/lock
sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo rm /var/cache/apt/*.bin
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo apt-get clean
LANG=C;sudo apt-get autoclean
LANG=C;sudo apt-get --purge autoremove
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo apt-get -f install
LANG=C;sudo apt-get --fix-missing install
and after that again i tried to download the UNrar file
i got error as
pavan_surya@lakshmi-SuryaNarayanaMurthy:~$ sudo apt install rar
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package rar
so then i got an idea to update my packages and
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
And finally Succeded with the installation
pavan_surya@lakshmi-SuryaNarayanaMurthy:~$ sudo apt install rar
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
unrar
The following NEW packages will be installed:
rar
0 upgraded, 1 newly installed, 0 to remove and 53 not upgraded.
Need to get 304 kB of archives.
After this operation, 829 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu bionic/multiverse i386 rar i386 2:5.5.0-1 [304 kB]
Fetched 304 kB in 2s (142 kB/s)
Selecting previously unselected package rar.
(Reading database ... 164268 files and directories currently installed.)
Preparing to unpack .../rar_2%3a5.5.0-1_i386.deb ...
Unpacking rar (2:5.5.0-1) ...
Setting up rar (2:5.5.0-1) ...
Processing triggers for man-db (2.8.3-2) ...
Thanks for the patience and if you found useful upvote and comment if you found mistake comment i will rectify