Ubuntu 10.04 軟體包問題

Ubuntu 10.04 軟體包問題

我剛剛碰壁了,經過大量搜索後,還沒有找到解決方案。

root@server:# apt-get remove libapache2-mod-geoip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  libapache2-mod-geoip
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 115kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 64325 files and directories currently installed.)
Removing libapache2-mod-geoip ...
ERROR: Module geoip does not exist!
dpkg: error processing libapache2-mod-geoip (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 libapache2-mod-geoip
E: Sub-process /usr/bin/dpkg returned an error code (1)

libapache2-mod-geoip 軟體包也未正確安裝,我無法使用 dpkg-reconfigure 重新安裝它或使用 dpkg -P libapache2-mod-geoip 清除它。它給了我同樣的錯誤。

答案1

我已經解決了這個問題。我需要從 /var/lib/dpkg/info 中刪除定義,然後卸載順利。

root@server:/var/lib/dpkg/info# rm libapache2-mod-geoip.*
root@server:~# sudo apt-get purge libapache2-mod-geoip
root@server:~# sudo apt-get install libapache2-mod-geoi

以及已安裝的軟體包。

相關內容