2

I have a custom built package I'm trying to install on my device.

It returns this error:

nvidia@tegra-ubuntu:~$ sudo dpkg -i MyPackage.deb 
(Reading database ... 181574 files and directories currently installed.)
Preparing to unpack .../MyPackage.deb ...
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
dpkg: error processing archive MyPackage.deb (--install):
 subprocess new pre-installation script returned error exit status 100

I already tried all the traditional ways to remove a lock:

None of those worked for me. I do not find any running process related to lock or lock-frontend files. I tried "ps", "fuser", "lsof" .. I also noticed this problem is related to this specific package. Any other version of this same package or any other package is installed correctly and does not trigger any error.

Any idea ?

6
  • 1
    I used ps -aux | grep apt to find the offender. Aug 3, 2019 at 2:06
  • Have you tried installing the package by clicking on the package and selecting the software center to open and install the package? Also, how did you try to determine if there is a process using the lock file? Did you use htop or did you use ps or something else?
    – mchid
    Aug 3, 2019 at 3:01
  • Also, what package are you trying to install?
    – mchid
    Aug 3, 2019 at 3:07
  • Could you please share file-list from your MyPackage.deb package?
    – N0rbert
    Aug 3, 2019 at 10:04
  • 3
    Possible duplicate of What process created the /var/lib/dpkg/lock-frontend file in Ubuntu?
    – N0rbert
    Aug 3, 2019 at 10:06

1 Answer 1

1

Finally solved this problem.

One of the install scripts was corrupted into MyPackage.deb (the package I was trying to install). As a result, the install was exiting creating this confusing message.

Thanks for your help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.