some other process automatically locks /var/lib/dpkg/lock for few minutes when restarting my system.
I am running Debian buster a.k.a. Debian testing. From the last couple of weeks, whenever I reboot the sytem i.e. going to CTRL+ALT+F1 and run
$ sudo reboot
it reboots the systems as normally but when it comees to on the desktop after logging in, I always get -
$ sudo aptitude autoclean
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?
Freed 0 B of disk space
and I have to wait around 5 minutes before I can run the command. It can't be memory or system constraints as free shows -
$ free -h
total used free shared buff/cache available
Mem: 7.7G 634M 6.3G 94M 726M 6.8G
Swap: 59G 0B 59G
and can't be the chip as it's a pretty new Skylake i5 5400
debian apt dpkg lock
add a comment |
I am running Debian buster a.k.a. Debian testing. From the last couple of weeks, whenever I reboot the sytem i.e. going to CTRL+ALT+F1 and run
$ sudo reboot
it reboots the systems as normally but when it comees to on the desktop after logging in, I always get -
$ sudo aptitude autoclean
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?
Freed 0 B of disk space
and I have to wait around 5 minutes before I can run the command. It can't be memory or system constraints as free shows -
$ free -h
total used free shared buff/cache available
Mem: 7.7G 634M 6.3G 94M 726M 6.8G
Swap: 59G 0B 59G
and can't be the chip as it's a pretty new Skylake i5 5400
debian apt dpkg lock
add a comment |
I am running Debian buster a.k.a. Debian testing. From the last couple of weeks, whenever I reboot the sytem i.e. going to CTRL+ALT+F1 and run
$ sudo reboot
it reboots the systems as normally but when it comees to on the desktop after logging in, I always get -
$ sudo aptitude autoclean
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?
Freed 0 B of disk space
and I have to wait around 5 minutes before I can run the command. It can't be memory or system constraints as free shows -
$ free -h
total used free shared buff/cache available
Mem: 7.7G 634M 6.3G 94M 726M 6.8G
Swap: 59G 0B 59G
and can't be the chip as it's a pretty new Skylake i5 5400
debian apt dpkg lock
I am running Debian buster a.k.a. Debian testing. From the last couple of weeks, whenever I reboot the sytem i.e. going to CTRL+ALT+F1 and run
$ sudo reboot
it reboots the systems as normally but when it comees to on the desktop after logging in, I always get -
$ sudo aptitude autoclean
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?
Freed 0 B of disk space
and I have to wait around 5 minutes before I can run the command. It can't be memory or system constraints as free shows -
$ free -h
total used free shared buff/cache available
Mem: 7.7G 634M 6.3G 94M 726M 6.8G
Swap: 59G 0B 59G
and can't be the chip as it's a pretty new Skylake i5 5400
debian apt dpkg lock
debian apt dpkg lock
edited Mar 19 '18 at 23:08
Gilles
530k12810621590
530k12810621590
asked Mar 19 '18 at 22:16
shirishshirish
3,68862983
3,68862983
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
See what process has the file open with lsof /var/lib/dpkg/lock
or fuser /var/lib/dpkg/lock
.
Chances are that it's the apt-daily service, which normally runs once a day to run apt-get update
and notify the user of available updates. If you don't like this, see How to disable `apt-daily.service` on Ubuntu cloud VM image?
add a comment |
This denotes that your package installer is being used by some another process.
Simplest way to get rid of this is to kill the init process i.e.
kill -9 -1
Warning
This will log you out killing all the processes, So Save for your current work
Not a efficient method but works..
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f432197%2fsome-other-process-automatically-locks-var-lib-dpkg-lock-for-few-minutes-when-r%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
See what process has the file open with lsof /var/lib/dpkg/lock
or fuser /var/lib/dpkg/lock
.
Chances are that it's the apt-daily service, which normally runs once a day to run apt-get update
and notify the user of available updates. If you don't like this, see How to disable `apt-daily.service` on Ubuntu cloud VM image?
add a comment |
See what process has the file open with lsof /var/lib/dpkg/lock
or fuser /var/lib/dpkg/lock
.
Chances are that it's the apt-daily service, which normally runs once a day to run apt-get update
and notify the user of available updates. If you don't like this, see How to disable `apt-daily.service` on Ubuntu cloud VM image?
add a comment |
See what process has the file open with lsof /var/lib/dpkg/lock
or fuser /var/lib/dpkg/lock
.
Chances are that it's the apt-daily service, which normally runs once a day to run apt-get update
and notify the user of available updates. If you don't like this, see How to disable `apt-daily.service` on Ubuntu cloud VM image?
See what process has the file open with lsof /var/lib/dpkg/lock
or fuser /var/lib/dpkg/lock
.
Chances are that it's the apt-daily service, which normally runs once a day to run apt-get update
and notify the user of available updates. If you don't like this, see How to disable `apt-daily.service` on Ubuntu cloud VM image?
answered Mar 19 '18 at 23:07
GillesGilles
530k12810621590
530k12810621590
add a comment |
add a comment |
This denotes that your package installer is being used by some another process.
Simplest way to get rid of this is to kill the init process i.e.
kill -9 -1
Warning
This will log you out killing all the processes, So Save for your current work
Not a efficient method but works..
New contributor
add a comment |
This denotes that your package installer is being used by some another process.
Simplest way to get rid of this is to kill the init process i.e.
kill -9 -1
Warning
This will log you out killing all the processes, So Save for your current work
Not a efficient method but works..
New contributor
add a comment |
This denotes that your package installer is being used by some another process.
Simplest way to get rid of this is to kill the init process i.e.
kill -9 -1
Warning
This will log you out killing all the processes, So Save for your current work
Not a efficient method but works..
New contributor
This denotes that your package installer is being used by some another process.
Simplest way to get rid of this is to kill the init process i.e.
kill -9 -1
Warning
This will log you out killing all the processes, So Save for your current work
Not a efficient method but works..
New contributor
New contributor
answered 2 days ago
Manas KinkarManas Kinkar
11
11
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f432197%2fsome-other-process-automatically-locks-var-lib-dpkg-lock-for-few-minutes-when-r%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown