時間:2024-03-07 21:27作者:下載吧人氣:22
前言
最近在卸載PostgreSQL數據庫的出錯了,無奈只能一步步的進行排查分析解決,下面將解決的過程分享出來,給同樣遇到這個問題的朋友們參考學習,下面話不多說了,來一起看看詳細的介紹吧。
出錯輸出:
Removing postgresql-9.1 (9.1.18-0ubuntu0.12.04) …
/var/lib/dpkg/info/postgresql-9.1.prerm: 9: .: Can’t open /usr/share/postgresql-common/maintscripts-functions
dpkg: error processing package postgresql-9.1 (–remove):
子進程 已安裝 pre-removal 腳本 返回了錯誤號 2
dpkg: postgresql-client-9.1: dependency problems, but removing anyway as you requested:
postgresql-9.1 依賴于 postgresql-client-9.1.
Removing postgresql-client-9.1 (9.1.18-0ubuntu0.12.04) …
/var/lib/dpkg/info/postgresql-client-9.1.prerm: 10: .: Can’t open /usr/share/postgresql-common/maintscripts-functions
dpkg: error processing package postgresql-client-9.1 (–remove):
子進程 已安裝 pre-removal 腳本 返回了錯誤號 2
/var/lib/dpkg/info/postgresql-client-9.1.postinst: 7: .: Can’t open /usr/share/postgresql-common/maintscripts-functions
dpkg:清理時出錯:
子進程 已安裝 post-installation 腳本 返回了錯誤號 2
在處理時有錯誤發生:
postgresql-9.1
postgresql-client-9.1
E: Sub-process /usr/bin/dpkg returned an error code (1)
網友評論