Ubuntu最常见的包问题

工作环境换成Ubuntu18.04小记:https://www.cnblogs.com/dunitian/p/9773214.html

Ubuntu不得不说的就是这个apt出问题的处理 :(换源就不说了/etc/apt/sources.list

# 一般删除这几个锁文件,然后再重新配置下就可以了
sudo rm /var/lib/dpkg/lock
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
# 简写(千万注意空格,不然你就是rm -rf / + 跑路了)
# sudo rm /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend

# 重新配置下
sudo dpkg --configure -a
posted @ 2019-02-13 13:16  鲲逸鹏  阅读(316)  评论(0编辑  收藏  举报