当我尝试使用 apt 或 apt-get 安装任何东西(Ubuntu 16.04)时,我得到以下信息:
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?
Run Code Online (Sandbox Code Playgroud)
这是以下的输出ps aux | grep apt:
root 23906 0.0 0.0 4504 784 ? Ss Feb20 0:00 /bin/sh /usr/lib/apt/apt.systemd.daily install
root 23912 0.0 0.0 4504 1640 ? S Feb20 0:00 /bin/sh /usr/lib/apt/apt.systemd.daily lock_is_held install
Run Code Online (Sandbox Code Playgroud)
但这些是子流程:
root 23906 0.0 0.0 4504 784 ? Ss Feb20 0:00 /bin/sh /usr/lib/apt/apt.systemd.daily install …Run Code Online (Sandbox Code Playgroud)