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:
- E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
- Permission denied, are you root?
- Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?
- What process created the /var/lib/dpkg/lock-frontend file in Ubuntu?
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 ?
ps -aux | grep apt
to find the offender.htop
or did you useps
or something else?MyPackage.deb
package?