1

what I want is way to feed commands to Ubuntu at runtime that is to so that i don not have to wait for resources that gets locked to be free for example during during update

we get this error messsage while trying to execute other commands with sudo access

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

what i want is way to execute my scripts at like batch processing but i could remove any batch jobs any time i want

I would like a dynamic script/program with root access to do all my jobs.

Ahmed Ali
  • 135

1 Answers1

0

The error message you displayed is not shown because some process is using sudo.

This indicates that you are doing some package management for your system (update, upgrade, install....)

So with regard to your demand I'm afraid to say for you that you can't do that in Linux, since the package management always demand the lock to disable other user of using the package management in the time another process is running.

Imagine for example:
user1 is updating the vim package whilst user2 is removing the vim package.

How can you deal with this situation?!

For that and from the basics of the package management I could say you can't do that.

Maythux
  • 87,123