=======================================================

在使用 apt-get 安装工具时,无论安装什么软件都会遇到这样子的错误:

dpkg: warning: files list file for package `tex-common' missing, assuming package has no files currently installed.
(Reading database ... 150177 files and directories currently installed.)
Preparing to replace tex-common 2.06ubuntu0.1 (using .../tex-common_2.06ubuntu0.1_all.deb) ...
Unpacking replacement tex-common ...
Processing triggers for doc-base ...
Processing 2 changed doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
Setting up tex-common (2.06ubuntu0.1) ...
Running mktexlsr. This may take some time... done.
No packages found matching texlive-base.
dpkg: error processing tex-common (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 tex-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

解决方法:

sudo apt-get purge tex-common
sudo apt-get install tex-common

其实就是将 tex-common 清除后,重装。


=======================================================

ubuntu 无法解析主机的解决方法



sudo  vi   /etc/hosts

2 将下行修改为: 

127.0.1.1   现在的主机名

如下图所示:             

Linux常见错误解决_Linux


=======================================================


有 1 个软件包没有被完全安装或卸载。 

E: 无法获得锁 /var/cache/apt/archives/lock - open (11: 资源暂时不可用)

E: 无法对目录 /var/cache/a  .....



打开终端,输入: ps -aux ,列出进程, 如果类似有如下进程

root      3382  0.0  0.1   8292  1684 pts/0    T    08:12   0:00 sudo apt-get install flashplugin-installer
直接杀死进程
sudo  kill  3382

如果不行就强制杀死进程

sudo  kill -9  3382