整理来自百度
1.ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
通过终端安装程序sudo apt-get install xxx时出错: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?
出现这个问题可能是有另外一个程序正在运行,导致资源被锁不可用。而导致资源被锁的原因可能是上次运行安装或更新时没有正常完成,进而出现此状况,解决的办法其实很简单:
在终端中敲入以下两句
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
2.在安装完交叉编译器后,执行excuse arm-linux-gcc -v前需要安装lsb-core,执行sudo apt-get install lsb-core即可。
3.stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now 原因:该源码包在下载过程中被破坏. 换个地址下载(有可能在另一个地址下载也不行,可能他们都是同 有时用tar解压.错误如下:
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
原因:该源码包在下载过程中被破坏.
4.tar -xzvf XXXXXXXXXX
5.VMWARE 调频
在虚拟机安装目录新建一个“config.ini”文本文件。
打开文件输入以下文字并保存: host.cpukHz = "1600000" host.noTSC = "TRUE" ptsc.noTSC = "TRUE"
上面的“1600000”代表CPU主频。以我的电脑为例,我的电脑的CPU主频是1.6G,因此就用 1.6 * 1000000。大家可根据自已电脑CPU的主频来计算此值。