Linux某些软件无法卸载问题
前几天更新ubuntu的时候,突然失败,仔细一看,是卸载老版本的gzip时候出了问题。错误信息:
install-info: No dir file specified; try --help for more information.
试了多个常用的手动卸载方法都没法搞定,于是求助google,很快找到答案。是GNU版的install-info代替了debian版的install-info造成的问题,覆盖回来就OK了。
不过作者分析问题的方法很值得学习,原文在blogspot上,所以全文转载之。
http://naveendageek.blogspot.com/2009/03/install-info-no-dir-file-specified-try.html
First, the problem.
I was trying to do sudo apt-get upgrade when it stopped on me giving this error
Setting up findutils (4.4.0-3) ...
install-info: No dir file specified; try --help for more information.
dpkg: error processing findutils (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
findutils
W: No priority (or zero) specified for pin
E: Sub-process /usr/bin/dpkg returned an error code (1)
Well, I tried googling it up, without considerable success. Finally, I found this on Debian Bug report logs.
Apparently, there are packages named install-info. One, a GNU version, another, a Debian provided package.
The-Matrix% whereis install-info
install-info: /usr/sbin/install-info /usr/local/bin/install-info /usr/share/man/man8/install-info.8.gz
The-Matrix% /usr/sbin/install-info --version
Debian install-info version 1.14.25.
Copyright (C) 1994,1995 Ian Jackson.
This is free software; see the GNU General Public Licence version 2 or
later for copying conditions. There is NO warranty.
The-Matrix% /usr/local/bin/install-info --version
install-info (GNU texinfo) 4.13
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
And they have problems. The idea of replacing the Debian's version with the GNU's has been forwarded, but I'm not sure of the progress. For all I care, t
相关文档:
Unix中的函数select和poll用来,支持Unix中I/O复用的功能,在Unix中I/O模型可以分为以一几种:
(1)阻塞I/O
(2)非阻塞I/O
(3)I/O复用(select和poll)
(4)信号驱动I/O(SIGIO)
(5)异步I/O
其中,现在比较流行的I/O模型是阻塞I/O模型.阻塞I/O是当应用程序和内核交换数据时,由于内核还没有准备好 ......
LINUX(运行在VWMARE)上自带的SVN,Windows上装的是TortoiseSVN-1.6.7.18415-win32-svn-1.6.9.msi。
在Linux上配置SNV。
1、创建repository。
> svnadmin create /myhome/svnhome/project
其中svnhome是放svn的目录,下一级是不同的repository名。
2、准备好源代码。按下列目录排好。
project/branches
project/ ......
1,串口操作需要的头文件
#include <stdio.h> /* 标准输入输出定义 */
#include <stdlib.h> /* 标准函数库定义 */
#include <unistd.h> /* Unix 标准函数定义 */
#include <sys/types.h>
#include <sys/stat.h>
#incl ......
今天装了个RHCL5,不能加载网卡就更别说驱动了,用以下命令查看下网卡信息:
一、找硬件
[root@localhost
~]# kudzu --probe --class=network
class: NETWORK
bus: PCI
detached: 0
device: eth0
desc: "Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet
"
vendorId: 10ec
dev ......