Ubuntu 升級意外中斷的解決方法

問題描述

主要是意外退出後會出現各種dpkg被佔用:

debconf: DbDriver “config”: /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing linux-base (—configure):
subprocess installed post-installation script returned error exit status 1
Setting up memtest86+ (5.01-2) …
debconf: DbDriver “config”: /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing memtest86+ (—configure):
subprocess installed post-installation script returned error exit status 1
 

解決方法

找到 佔用該文件的進程:

fuser /var/cache/debconf/config.dat

終止掉:

  • kill 進程號
  • apt-get update
  • apt-get upgrade
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章