Apt's unable to acquire lock message isn't user friendly
Bug #74134 reported by
Joseph Garvin
This bug affects 9 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Papercuts |
Confirmed
|
Medium
|
Unassigned | ||
apt (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: apt
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?
99% of the time when a user sees this message, it's because they also have synaptic open, or the add/remove applications applet, or another apt-get going. The message should be changed to warn the user about this. As is, the user is just going to double check they're running it as sudo, notice that they are, and likely not be able to figure out the problem without external help.
Changed in apt: | |
importance: | Undecided → Wishlist |
status: | Unconfirmed → Confirmed |
Changed in hundredpapercuts: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in hundredpapercuts: | |
milestone: | none → round-5 |
Changed in hundredpapercuts: | |
status: | New → Confirmed |
To post a comment you must log in.
I just realized I should explain this a bit more. The error message does ask if another process is using the lock, but this could be better explained. Here's a proposal for what it could say instead, that would be much much more useful:
"Apt was unable to lock the package database. This means that either you don't have permission to install/remove packages (check that you are root or are using sudo), or that another program is currently using the database. If you have Adept, Synaptic, or Add/Remove Programs, or another instance of Apt open, you must close them before using apt.
If you are absolutely sure that no program is currently using that database, it is possible that a program crashed while using the database. To remove this program's lock on the database, delete the file /var/lib/ dpkg/lock. "
This is a lot less likely to confuse and informs the user of their options.