데비안 / 테스트 시스템에서 apt-get upgrade를 실행했는데 위의 오류가 발생합니다. 이 문제를 어떻게 해결할 수 있습니까? 쉘 성적표는 다음과 같습니다.
136 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.
1 not fully installed or removed.
Need to get 182kB/143MB of archives.
After this operation, 3671kB disk space will be freed.
Do you want to continue [Y/n]?
Get:1 http://ftp.us.debian.org testing/main libtiff4 3.9.4-3 [182kB]
Fetched 182kB in 0s (318kB/s)
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another p
rocess: Resource temporarily unavailable
Setting up sysv-rc (2.88dsf-12) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another p
rocess: Resource temporarily unavailable
dpkg: error processing sysv-rc (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
sysv-rc
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB
Total disk space freed by localepurge: 0 KiB
E: Sub-process /usr/bin/dpkg returned an error code (1)
답변
다음을 사용하여 파일을 잠그는 프로세스를 확인할 수 있습니다.
fuser -v /var/cache/debconf/config.dat
프로그램에 따라 다음과 같이 종료하려고 할 수 있습니다 kill -15
.
데비안 fuser
에서는 psmisc 패키지에서 찾을 수 있습니다 . ‘fuser : command not found’오류가 발생하면이 패키지를 설치하십시오.