博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
阅读量:3947 次
发布时间:2019-05-24

本文共 443 字,大约阅读时间需要 1 分钟。

安装软件包时dpkg进程被锁死

安装软件包时出现了以下报错:

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?

安装进程已经被锁死,这时只需与删掉apt下的生成的死锁文件就好了。

$ sudo rm /var/lib/apt/lists/lock$ sudo rm /var/cache/apt/archives/lock

这时就可以去处理 [Waiting for headers]的问题,这是之前某次安装不成功遗留下的问题,只需要

$ sudo rm -rf /var/cache/apt/archives/

最后更新一下软件包就可以了

$ sudo apt update

转载地址:http://uxhwi.baihongyu.com/

你可能感兴趣的文章
Determining and Monitoring the Docking State and Type 判断并监测设备的停驻状态与类型
查看>>
Determining and Monitoring the Connectivity Status 根据网络连接状况去省电
查看>>
Manipulating Broadcast Receivers On Demand 按需操控广播接收
查看>>
Creating a View Class 创建一个视图类
查看>>
Custom Drawing 自定义绘制
查看>>
Making the View Interactive 视图互动
查看>>
Optimizing the View 优化视图
查看>>
Setting Up the Search Interface 设置搜索界面
查看>>
Storing and Searching for Data 数据存储和搜索
查看>>
Remaining Backward Compatible 保持向后兼容
查看>>
Remembering Your User 记住你的用户
查看>>
Authenticating to OAuth2 Services 验证OAuth2服务
查看>>
Creating a Custom Account Type 创建自定义帐户类型
查看>>
Sending Content to Other Apps 将内容发送到其他应用程序
查看>>
Receiving Content from Other Apps 接收来自其他应用程序的内容
查看>>
Adding an Easy Share Action 添加一个简单的共享行动
查看>>
Taking Photos Simply 简单地拍摄照片
查看>>
Recording Videos Simply 简单录制视频
查看>>
Controlling the Camera 控制相机
查看>>
Creating Multiple APKs for Different API Levels 创建多个不同的API级别的APK
查看>>