1、 Ubuntu终端出现Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? 通过终端安装程序sudo apt-get install ***时出错: 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、 Error were encountered while processing: usb-creator-common usb-creator-gtk E: Sub-process /usr/bin/dpkg returned an error code (1) 安装usb-creator-common
sudo apt-get install usb-creator-common
3、 Reading package lists… Done E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/
sudo rm /var/lib/apt/lists/lock
4、 调试内核的时候在虚拟机重新编译内核安装后重启提示出现标题的提示:Gave up waiting for root device
sudo make modules_install sudo make install
进入编译目录重新安装了一下解决了问题
5、 安装libssl-dev 的时候提示错误 sudo apt-get install libssl-dev Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies: libssl-dev : Depends: libssl1.0.0 (= 1.0.1t-1+deb7u2) but 1.0.1t-1+deb8u6 is to be installed Recommends: libssl-doc but it is not going to be installed E: Unable to correct problems, you have held broken packages linux的版本依赖问题很令人纠结,不过我们可以通过使用aptitude软件包管理器来解决这个依赖问题,aptitude是可以选择合适的版本与匹配软件安装。
首先安装aptitude工具
sudo apt-get install aptitude再利用aptitude来安装libssl-dev
sudo aptitude install libssl-dev(n y y)
参考 1、安装libssl-dev 的时候提示错误: https://blog.csdn.net/menghuanbeike/article/details/78052317