I am writing it as an experience as I found most of the answers are too detailed for a newbie and hoping that it will clarify two different aspects.
I was installing 5.3.4 kernel with UKUU and was getting lot of warnings on Ubuntu 18.04 which says
Possible missing firmware for module i915
and same problem for nouveau. That is
Possible missing firmware for module nouveau
On the top of it I got a problem which says your dpkg is used by some other application.
error: dpkg is locked by another process
error: dpkg status database is locked by another process
I found at dpkg: error: dpkg status database is locked by another process that it is inadvisable to remove lock files using commands like
sudo rm /var/lib/dpkg/lock
or
sudo rm /var/lib/dpkg/lock-frontend
or
sudo rm /var/cache/apt/archives/lock
rather we should find the right process which is keeping the lock
maybe by using
lsof /var/lib/dpkg/lock
Actually, I do not remember by which command I got to know but I found that some unattended thing is actually kept the lock. But this was not shown anywhere in the lock files and when I was trying
ps cax | grep PID
it was not helping me, as the grep command shows only those lines which are related to that PID, I dropped grep PID instead used
ps cax | grep un*
This gave me right PID I killed that process by
sudo kill -9 PID
then I didn't removed any lock file just reconfigured the dpkg by
sudo dpkg --configure -a
This helped me for my first part of the problem
Then I got to know that I have some problem with graphic drivers because of which I am getting
Possible missing firmware for module i915
and same problem for nouveau. That is
Possible missing firmware for module nouveau
I found that below link actually works for me without trying to understand much about graphic drivers and their details.
https://linoxide.com/linux-how-to/install-nvidia-drivers-ubuntu/
My question related to lock file is - What kind of locks are there in what all files they are listed and how the processes are divided to put their entry in lock files? In my case I didn't get the PID in the lock files, (as I do not remember fully this part) is it possible that two PIDs are there related to same lock. What is such a case?
cat /etc/fstab
andsudo blkid
andcat /etc/initramfs-tools/conf.d/resume
. What happened when you booted from a Ubuntu Live DVD/USB? Did the wireless work? – heynnema Oct 11 '19 at 19:22