From 7621b6ca2f94bc0b6b889bf001f906076755e404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=93=E5=8F=91=E5=8F=97=E9=95=BF=E7=94=9F?= Date: Mon, 25 Jun 2018 16:03:11 +0800 Subject: [PATCH] =?UTF-8?q?apt=E8=A2=AB=E5=85=B6=E4=BB=96=E8=BF=9B?= =?UTF-8?q?=E7=A8=8B=E5=8D=A0=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_posts/linux/1.1、linux常用命令与技巧(1).md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/_posts/linux/1.1、linux常用命令与技巧(1).md b/source/_posts/linux/1.1、linux常用命令与技巧(1).md index 369ef84..eff9f99 100644 --- a/source/_posts/linux/1.1、linux常用命令与技巧(1).md +++ b/source/_posts/linux/1.1、linux常用命令与技巧(1).md @@ -108,3 +108,13 @@ ls -l | wc -l ``` 因为`ls -l`的输出是逐行输出当前目录下每个文件的详细信息 , 所以统计出的行数实际上就是文件数量了 +#### apt被其他进程占用 +( 限于ubuntu系统 ) +使用apt进行包的管理时出现 +**无法锁定管理目录(/var/lib/dpkg/)** +可以执行 +```bash +rm /var/cache/apt/archives/lock +rm /var/lib/dpkg/lock +``` +解除锁定 \ No newline at end of file