ubuntu常见问题

Ubuntu上进行wget -qO- get.docker.com | bash后出现
E: dpkg was interrupted, you must manually run ‘dpkg –configure -a’ to correct the problem

输入:sudo dpkg –configure -a后没有作用

dpkg status database is locked by anotherprocess

原因是包管理器没有正确关闭。需要重启计算机或者重新打开终端输入:
sudo rm /var/lib/dpkg/lock
sudo dpkg –configure -a

然后继续
E;Could not get lock /var/cache/apt/archives/lock. It is held by process 1213 (apt)
E: Unable to lock directory /var/cache/apt/archives/

sudo rm /var/cache/apt/archives/lock

然后再wget -qO- get.docker.com | bash就好了

 

 

 

------本页内容已结束,喜欢请分享------

感谢您的来访,获取更多精彩文章请收藏本站。

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容