0

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?

9
  • 1
    You do know that Ubuntu 19.10 will be released on Oct 17, and it's supposed to come with kernel 5.3. So why are you trying to install it yourself?
    – heynnema
    Oct 6, 2019 at 3:00
  • @heynnema Actually, I updated ubuntu back with apt-get update which resulted in issues of hanging frequently in which the only key that works is hard boot and wifi-adapter not found mo f the times. So some link suggested to move to better kernel with ukuu. After updating to this new kernel I am still facing a lot of issues. I really dont know what needs to be done and what could be better option.
    – Kapil
    Oct 6, 2019 at 3:45
  • 1
    If you still have it, can you boot back to the older/original kernel, and see if the firmware problems go away? Then we can troubleshoot your original problem.
    – heynnema
    Oct 6, 2019 at 9:21
  • I have tried 3 kernels a) 5.3.4-05034 b) 4.18.0-10 and c) 4.15.0-45 On a) and b) it is hanging with only left option is to power off but on c) the thing seems sluggish a few times, that is it seems hangs but after a while mouse starts movement with bit difficulty but then recovers good.
    – Kapil
    Oct 7, 2019 at 0:21
  • Boot to a Ubuntu Live DVD/USB and see if the system behaves normally.
    – heynnema
    Oct 7, 2019 at 1:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.