# dpkg 명령어
# sudo dpkg --configure -a
# 오류/var/lib/dpkg/info/*.list 오류 ???
# sudo dpkg --configure -a 오류 해결
->
ubuntu:/etc/apt/sources.list.d$ sudo dpkg --configure -a
dpkg: `/var/lib/dpkg/available' 파일 4335번 줄 근처에서 파싱 오류 꾸러미 `libgnome2-canvas-perl':
`Depends' 필드, 꾸러미 이름(`
ubuntu:/etc/apt/sources.list.d$ cd /var/lib/dpkg
위와 같은 에러가 발생할 경우
ubuntu:/var/lib/dpkg$ ls
alternatives cmethopt info statoverride status-old
available diversions lock statoverride-old triggers
available-old diversions-old parts status updates
ubuntu:/var/lib/dpkg$ sudo vi available
ubuntu:/var/lib/dpkg$ sudo dpkg --configure -a
편집기로 available를 불러낸 다음 에러가 발생한 4335번 줄로 가서 4335줄을 포함하고 있는 모든 Package 라인을 삭제한 다음 sudo dpkg --configure -a 를 실행한다.(다음 에러 발생시 똑같이 반복한다.)
삭제는 다음과 같다.
Package: xserver-xorg-input-vmmouse
Priority: optional
Section: x11
Installed-Size: 92
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Version: 1:12.4.3-1ubuntu1
Replaces: xserver-xorg (<< 6.8.2-35)
Provides: xserver-xorg-input-2
Depends: libc6 (>= 2.7-1), xserver-xorg-core (>= 2:1.4)
Size: 14676
Description: X.Org X server -- VMMouse input driver to use with VMWare
This package provides the driver for the X11 vmmouse input device.
.
The VMMouse driver enables support for the special VMMouse protocol
that is provided by VMware virtual machines to give absolute pointer
positioning.
.
The vmmouse driver is capable of falling back to the standard "mouse"
driver if a VMware virtual machine is not detected. This allows for
dual-booting of an operating system from a virtual machine to real hardware
without having to edit xorg.conf every time.
.
More information about X.Org can be found at:
<URL:http://www.X.org>
<URL:http://xorg.freedesktop.org>
<URL:http://lists.freedesktop.org/mailman/listinfo/xorg>
.
This package is built from the X.org xf86-input-vmmouse driver module.
Original-Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Package: libexempi3
...
삭제시
Package: xserver-xorg-input-vmmouse 부터
...
Package: libexempi3 사이에 있는 모든 라인을 삭제한다.
참고
dpkg 패키지 관리 툴
http://wiki.kldp.org/KoreanDoc/debpkg.txt