Linux问题

1.Makefileubuntu

mkdir -p build/{bin/,certs/,db/,scripts/,log/}ui

Linux command:mkdir -p build/{bin,certs,db,scripts,log}ip

2.sudo apt-get install资源

ubuntu常见错误--Could not get lock /var/lib/dpkg/lock解决get

经过终端安装程序sudo apt-get install xxx时出错:it

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 itio

出现这个问题多是有另一个程序正在运行,致使资源被锁不可用。而致使资源被锁的缘由多是上次运行安装或更新时没有正常完成,进而出现此情况,解决的办法其实很简单:file

在终端中敲入如下两句终端

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

sudo rm /var/lib/dpkg/lock

相关文章
相关标签/搜索