Chinaunix首页 | 论坛 | 博客
  • 博客访问: 205050
  • 博文数量: 43
  • 博客积分: 2067
  • 博客等级: 上尉
  • 技术积分: 455
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-05 23:09
文章分类

全部博文(43)

文章存档

2012年(1)

2011年(5)

2010年(37)

分类:

2010-05-20 16:46:08

/var/lib/dpkg/status的重要性

给我的感觉就是:status中保存着的所有的软件包必不可少的相互依赖关系,即是它其中的有一处信息被删除,侧其他

的也会受影响,甚至是不可挽回的后果。

可以说/var/lib/dpkg下的每一个文件都很重要,特别是status和lock,我个人感觉

对于status这个文件,虽然有一个status.old的备份,但是好像无济于事。

我在虚拟机下做了实验,就是将/var/的挂载文件的容量降至最小,分了150M,结果到了最后却发现增到了142M的时候,什么东西也安装不了了,提示 的是设备空间不足,无法拷贝文件到status,然后我试图删去status中的一些内容,


【我里面的内容是:

Package: python-pkg-resources
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 208
Maintainer: Ubuntu Developers
Architecture: all
Source: distribute
Version: 0.6.10-4ubuntu1
Replaces: python2.3-setuptools, python2.4-setuptools
Provides: python2.6-setuptools
Depends: python (>= 2.6), python (<< 2.7), python-central (>= 0.6.11)
Suggests: python-distribute, python-distribute-doc
Conflicts: python-setuptools (<< 0.6c8-3), python2.3-setuptools (<< 0.6b2), python2.4-setuptools (<< 0.6b2)
Description: Package Discovery and Resource Access using pkg_resources
The pkg_resources module provides an API for Python libraries to
access their resource files, and for extensible applications and
frameworks to automatically discover plugins.  It also provides
runtime support for using C extensions that are inside zipfile-format
eggs, support for merging packages that have separately-distributed
modules or subpackages, and APIs for managing Python's current
"working set" of active packages.
Original-Maintainer: Matthias Klose
Homepage:
Python-Version: 2.6

Package: tcpd
Status: install ok installed
Priority: standard
Section: net
Installed-Size: 184
Maintainer: Ubuntu Developers
Architecture: i386
Source: tcp-wrappers
Version: 7.6.q-18
Replaces: libwrap0 (<< 7.6-8)
Depends: libc6 (>= 2.4), libwrap0 (>= 7.6-4~)
Description: Wietse Venema's TCP wrapper utilities
Wietse Venema's network logger, also known as TCPD or LOG_TCP.
.
These programs log the client host name of incoming telnet,
ftp, rsh, rlogin, finger etc. requests.
.
Security options are:
- access control per host, domain and/or service;
- detection of host name spoofing or host address spoofing;
- booby traps to implement an early-warning system.
Original-Maintainer: Marco d'Itri

Package: mysql-client-core-5.1
Status: install ok installed
Priority: optional
Section: database
Installed-Size: 332
Maintainer: Ubuntu Developers
Architecture: i386
Source: mysql-dfsg-5.1
Version: 5.1.41-3ubuntu12.1
Replaces: mysql-client (<< 5.1.41-3ubuntu12.1), mysql-client-5.0, mysql-client-5.1 (<< 5.1.41-3ubuntu12)
Depends: libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libmysqlclient16 (>= 5.1.41-3ubuntu12.1), libncurses5 (>= 5.6+20071006-3), libreadline6 (>= 6.0), libstdc++6 (>= 4.1.1), zlib1g (>= 1:1.1.4)
Conflicts: mysql-client (<< 5.1.41-3ubuntu12.1), mysql-client-5.0
Description: MySQL database core client binaries
MySQL is a fast, stable and true multi-user, multi-threaded SQL database
server. SQL (Structured Query Language) is the most popular database query
language in the world. The main goals of MySQL are speed, robustness and
ease of use.
.
This package includes the core client files, as used by Akonadi.
Homepage: http://dev.mysql.com/
Original-Maintainer: Debian MySQL Maintainers

Package: libclutter-1.0-0
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 976
Maintainer: Ubuntu Developers
Architecture: i386
Source: clutter-1.0
Version: 1.2.4-0ubuntu1
Depends: libc6 (>= 2.7), libcairo2 (>= 1.4.10), libgl1-mesa-glx | libgl1, libglib2.0-0 (>= 2.23.5), libgtk2.0-0 (>= 2.8.0), libpango1.0-0 (>= 1.20.0), libx11-6 (>= 0), libxcomposite1 (>= 1:0.3-1), libxdamage1 (>= 1:1.1), libxext6 (>= 0), libxfixes3 (>= 1:4.0.1)
Description: Open GL based interactive canvas library
Clutter is an Open GL based interactive canvas library, designed for creating
fast, mainly 2D single window applications such as media box UIs,
presentations, kiosk style applications and so on.
Original-Maintainer: Ross Burton
。。。。。
在这列举了status内容的0.5%左右。】


结果发现越删的多,不但容量没有下降,而且结果很糟糕,就是却来却坏。

我于是想了一个很好笑的方法,就是

到最后我直接把status文件删之,

然后再安装依然如此,然后一命呼呼。
而且是什么也不可能再被安装,也不可能再被卸载,所以就这样,崩了。
怎么办阿?试图status.old想办法,但是无济于事阿,最后是什么也打不开,就连终端和浏览器都打不开了。
不过关机还有用。

于是这一个系统就这样完了。
所以以后在对待status时一定要慎重啊啊!!!

还有就是lock文件,他对计算机的资源利用安全性都有很大的帮助作用,如果删之,系统的运行速度会明显下降,我试验了,呵呵。

比如我们卸载和安装一个软件时,则会提示着样的错误,这样可以加快运行速度阿。
阅读(4239) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~